Selur's Little Message Board

Full Version: HDR10+ (with NVEnc)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,
simple question : how to encode a movie in hdr10+ with NVEnc ?
thanks for your help
NVEnc doesn't support encoding any type of HDR itselfm tools like NVEncC or ffmpeg with nvenc encoding add HDR-10 encoding by adding the HDR-10 meta data to the encoded stream.
'hdr10plus_parser' allows to extract HDR-10+ meta data to a .json representation.
Thus reencoding a HDR-10+ atm. can be done by:
  1. extracting the meta-data
  2. reencoding the stream using x265 and adding the extracted meta data using x265s '--dhdr10-info' option.

What you want would need:
a. a tool which uses NVEnc and either supports extracting and adding HDR-10+ meta data
or
b. a tool which uses NVEnc and can add HDR-10+ meta data during encoding (then meta data would have to be presented separately; i.e. directly from the color grading tool used or by extracting it from an existing source and reusing it)
or
c. a tool which would allow to add HDR-10+ metadata to an already encoded stream.

Problem is I don't know of any tool which can do a., b. or c., so atm. I don't think there is a way to 'how to encode a movie in hdr10+ with NVEnc'.

You best hope is probably to hope that the author of NVEncC (https://github.com/rigaya/NVEnc) can and will add support for adding HDR-10+ meta data. (There's already a request for this over at https://github.com/rigaya/NVEnc/issues/119.)

Cu Selur
Hello,

i need to encode a movie in HDR10+ with Nvenc.
i have create hdr10+ json file with the last version of hdr10_parser but when add the file in hybrid with "dynamic hdr-10+" case, it's impossible, error : "NVEnc Model doSet->found no field: dhdr10-info"

if in command line add manualy: --dhdr10-info "F:\downloads\Film 4k UHD\Godzilla KoM.json"  and NVEnc crash




NVEnc --y4m -i - --fps 23.976 --codec h265 --profile main10 --level 5.1 --tier high --sar 1:1 --lookahead 32 --output-depth 10 --vbrhq 18674 --max-bitrate 40000 --gop-len 0 --ref 3 --bframes 0 --no-b-adapt --mv-precision Q-pel --preset quality --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --max-cll 1998,414 --master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50) --cuda-schedule sync --keyfile GENERATED_KEY_FILE --output "D:\Temp\Godzilla Roi des Monstres 2019 Atmos 2.265"


what is the problem ?
Would need a debug output level 9 of the job processing to be sure but:
Quote:if in command line add manualy: --dhdr10-info "F:\downloads\Film 4k UHD\Godzilla KoM.json" and NVEnc crash
Sounds like there is either a problem with the decoding or with the json file.

Cu Selur
Hello, I tested with other .json files, as well as others downloaded from the net and it's the same, the NVEnc encoder does not want to support them.
I manually updated the version of NVEnc (5.02) and it's still the same.
if it works for you, what are your settings in "hybrid" to add HDR10+ metadata with NVEnc please.
No special settings, I would use the same command line you use.
I would use https://github.com/quietvoid/hdr10plus_parser/releases to extract the json info.
i'm tested with the .json file to the site "https://bitbucket.org/multicoreware/x265/downloads/" and it's the same result.
i'm use the last version of hdr10+ parser with this command line :
F:\ffmpeg\bin\ffmpeg.exe -i "F:\downloads\Film 4k UHD\The.Dead.Dont.Die.2019.4K.MULTI.2160p.HDR.WEB.DTS.x265-EXTREME_wWw.Extreme-Down.Ninja.mkv" -c:v copy -vbsf hevc_mp4toannexb -f hevc - | F:\ffmpeg\hdr10plus_parser.exe - -o "F:\downloads\Film 4k UHD\The dead DD.json"

my graphic card is the gtx 1070

With the last version of your "hybrid" in MP, i'm not the error message but i'ts impossible to add the file .json
Since I have no clue what the cause of your problem is, I would suggest to try using x265 instead of NVEncC to test whether x265 accepts your json file.
Are you even sure that you got a HDR+ source and not a normal HDR source? (juding by the naming of your file it's a illegal and be not hdr)

Cu Selur
sure, my source is hdr10+ , i' have tested with x265 and it's ok but the encode is very low in 4K, my processor is a Xeon E5 2697v3  14 core,
 NVEnc is more faster  Wink

my source in last message is just an example and test, and is not hdr 10 +



i'm tested to add in command line "--dhdr10-info" and NVEnc crash to encode:

NVEnc --y4m -i - --fps 23.976 --codec h265 --profile main10 --level 5.1 --tier high --sar 1:1 --lookahead 32 --output-depth 10 --vbrhq 16382 --max-bitrate 40000 --gop-len 0 --ref 3 --bframes 0 --no-b-adapt --mv-precision Q-pel --preset quality --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --max-cll 1998,414 --master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50) --cuda-schedule sync --keyfile GENERATED_KEY_FILE --dhdr10-info "F:\downloads\Film 4k UHD\Godzilla KoM.json" --output "D:\Temp\Godzilla Roi des Monstres 2019 Atmos 2.265"





finished after 00:00:16.487 with exitCode -1073741819
Crashed with exit status 1
-> 16_22_06_5110_03_video crashed: Crashed with exit status 1



smpte 2084 or 2094 is the possible problem ?
Quote:smpte 2084 or 2094 is the possible problem ?
if you are referring to your colorprimn/transfer/colormatrix settings, those are just flags and as long as the names are correct they should not cause a problem.
see: https://github.com/rigaya/NVEnc/blob/mas...ions.en.md

Quote:finished after 00:00:16.487 with exitCode -1073741819
Crashed with exit status 1
-> 16_22_06_5110_03_video crashed: Crashed with exit status 1
that does not say anything and comes from a log which starts with:
Quote:This log is only intended for user information. It should not be part of a bug/problem report!!
so no surprise there.
Pages: 1 2