Replies: 4 comments 2 replies
-
No. It should either be added to the first Assuming you're reencoding a UHD BD, you also need to convert using mode 2. |
Beta Was this translation helpful? Give feedback.
-
Simply extract the RPU with this command, as @quietvoid says, and you don't worry about anything else.
Although if the source has a variable size of black bars, for example movies that include imax scenes, then it is not so simple in case you plan to resize the video resolution, if you are going to keep it at 4K then it is as easy as not cropping the source and not cropping the RPU. |
Beta Was this translation helpful? Give feedback.
-
thanks for the replies. How does the -m 2 and --crop work in this case? So the black bars still exist in the source running dovi_tool against, and the black bar removal size could vary per video. Does dovi_tool identify the black bars like ffplay -i myfile -vf cropdetect calculates? |
Beta Was this translation helpful? Give feedback.
-
Not when using crop. The metadata only stores the letterbox bars size (with values for left, right, top, bottom). If the file still has letterbox bars of different size, then the metadata should be adjusted accordingly. |
Beta Was this translation helpful? Give feedback.
-
With the crop function, I am looking to take 4k HDR10/Dolby Vision content and re-encode it and crop off the black bars. Below was my workflow and thinking it's now inaccurate after some conversations elsewhere:
demux original video track to HEVC (let's say it's 3840 x 2160 with 280 of black bars on top and bottom.)
Run: dovi_tool extract-rpu
Run: ffplay -i myfile -vf cropdetect to find the crop marks in this case 280 top and bottom.
Run to convert:
NVEncC64.exe --avhw --input <input_filename>.mkv --output <output_filename>.hevc --codec h265 --tier high --level 5.1 --output-depth 10 --cqp 19 --preset quality --vbv-bufsize 15000 --lookahead 32 --bframes 4 --aq-temporal --aud --repeat-headers --chromaloc 2 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --colorrange limited --max-cll 413,65 --master-display copy --video-metadata copy --crop 0,280,0,280 --gop-len 0 --ref 3 --profile main10 --bref-mode middle --mv-precision Q-pel
Run: dovi_tool inject-rpu -i video.hevc --rpu-in RPU.bin -o injected_output.hevc
I assume the above is incorrect however is it as simple as adding the -c option on the last inject step above?
Beta Was this translation helpful? Give feedback.
All reactions