jriker1
3rd August 2023, 14:27
I have some decent workflows for 1080p content, 4k HDR10 content and Dolby Vision content (low grain). What I'm struggling with is 4k HDR10 and maybe Dolby Vision content that is super grainy.
For 1080p content I open the material in Premiere and run NeatVideo on it to reduce the grain and sharpen a bit. Then export DNxHR HQ. Then process it thru x265 in ffmpeg.
If it's just 4k clean and HDR10 or Dolby Vision I just encode with x265 in ffmpeg with the appropriate HDR10 and Dolby Vision data as part of the command.
Question first. Is it fair to say that HDR10 and Dolby Vision is strictly metadata either respectively on the header of the video or applied to each frame? So for example if using a non 4k or HDR/Dolby Vision supported monitor, the video would look the same with or without that data? So the video itself is what it is and the HDR10 and Dolby Vision information tells the TV how to display it properly?
Let me know on the above. That said, to date I have tried to leave HDR10/Dolby Vision content as much as I can as is as wasn't sure if any extra processing would damage the data provided from HDR10/Dolby Vision. Does anyone have any recommendations without ending up with a HEVC file as big or bigger than the source, how to deal with this?
Here is an example of what I'm doing normally:
ffmpeg -i <input>.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - | x265-10b - --input-depth 10 --output-depth 10 --y4m --preset slow --hdr10 --hdr10-opt --high-tier --repeat-headers --crf 19 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,401" --chromaloc 2 --no-sao --range limited --keyint 24 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --vbv-bufsize 160000 --vbv-maxrate 160000 <output>.hevc
Let's look at a disk of mine. Bad Boys from 1995. Guessing it's been remastered as has HDR10 metadata and thinking that wasn't a thing in 1995? i started encoding this with crf 17 as wanted to preserve the video as much as possible. Ran all night which is odd for my system and wasn't done and already over 40GB. Source currently is 77GB with the audio and sub tracks. Assuming I either need to set a higher CRF number or do some cleanup.
Any thoughts? I could open the video in Premiere and use NeatVideo on it to reduce the grain then process it as normal but long story longer, was concerned I can't do that with content that has HDR10 or Dolby Vision metadata but wasn't sure.
For 1080p content I open the material in Premiere and run NeatVideo on it to reduce the grain and sharpen a bit. Then export DNxHR HQ. Then process it thru x265 in ffmpeg.
If it's just 4k clean and HDR10 or Dolby Vision I just encode with x265 in ffmpeg with the appropriate HDR10 and Dolby Vision data as part of the command.
Question first. Is it fair to say that HDR10 and Dolby Vision is strictly metadata either respectively on the header of the video or applied to each frame? So for example if using a non 4k or HDR/Dolby Vision supported monitor, the video would look the same with or without that data? So the video itself is what it is and the HDR10 and Dolby Vision information tells the TV how to display it properly?
Let me know on the above. That said, to date I have tried to leave HDR10/Dolby Vision content as much as I can as is as wasn't sure if any extra processing would damage the data provided from HDR10/Dolby Vision. Does anyone have any recommendations without ending up with a HEVC file as big or bigger than the source, how to deal with this?
Here is an example of what I'm doing normally:
ffmpeg -i <input>.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - | x265-10b - --input-depth 10 --output-depth 10 --y4m --preset slow --hdr10 --hdr10-opt --high-tier --repeat-headers --crf 19 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,401" --chromaloc 2 --no-sao --range limited --keyint 24 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --vbv-bufsize 160000 --vbv-maxrate 160000 <output>.hevc
Let's look at a disk of mine. Bad Boys from 1995. Guessing it's been remastered as has HDR10 metadata and thinking that wasn't a thing in 1995? i started encoding this with crf 17 as wanted to preserve the video as much as possible. Ran all night which is odd for my system and wasn't done and already over 40GB. Source currently is 77GB with the audio and sub tracks. Assuming I either need to set a higher CRF number or do some cleanup.
Any thoughts? I could open the video in Premiere and use NeatVideo on it to reduce the grain then process it as normal but long story longer, was concerned I can't do that with content that has HDR10 or Dolby Vision metadata but wasn't sure.