Open end2endzone opened 2 years ago
Tried it myself, looks like ffmpeg now properly recognize and copy DV side data:
Side data:
DOVI configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
The actual video is converted correctly to a non HDR colorspace. However, keeps the side data. Not sure if it messes it up at all or not.
Need to figure out how to remove just a side data stream, don't see any quick references online for it, so may be "fun" to figure out.
Hi. Why does using options Remove HDR, does fully not remove the "HDR Format" flag in the output file?
I am trying to convert an HDR sample file to SDR. However the output file I get is still identified as HDR by Jellyfin or Emby. I think this is because the output file has the
HDR Format
set toDolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible
according to MediaInfo.When I am checking the Remove HDR, my assumptions are that all HDR metadata should be removed. Pixel brightness should be corrected according to a tone mapping rule as if we would be burning-in the HDR metadata to the output pixels. After this process, we end up with a H.264/H.265 stream that is 8 bit or 10 bit and not identified as "HDR" anymore.
I suspect that I might not be using FastFlix as intended. Please feel free to correct me or indicate me what I should be doing to remove the "HDR Format" flag in the output file.
I tried to convert the source file to the following output formats.
All of the above have the output file with the flag
HDR format
set toDolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible
.I am using FastFlix 4.10.0 and ffmpeg 5.1.2 :
Here is the command line I used:
"D:\Apps\ffmpeg\ffmpeg-5.1.2-full_build\bin\ffmpeg.EXE" -y -i "E:\Recordings\HDR to SDR tests\source.mkv" -max_muxing_queue_size 1024 -filter_complex "[0:0]scale=1920:-8:flags=lanczos,format=p010,hwupload,tonemap_opencl=tonemap=hable:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,hwdownload,format=nv12[v]" -map "[v]" -c:v libx264 -pix_fmt yuv420p -init_hw_device opencl=ocl -filter_hw_device ocl -crf:v 20 -preset:v medium -map_metadata -1 -map_chapters 0 -map 0:1 -metadata:s:1 title="" -metadata:s:1 handler="" -c:1 copy -default_mode infer_no_subs "E:\Recordings\HDR to SDR tests\source - fastflix.H264.1080p.8bit-hable.mkv"
Source file:
Output file (H.264 8bit one) :