Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow FFmpeg to hardcode subtitles to Dolby Vision video track to be muxed with tsMuxeR #4533

Open
wants to merge 5 commits into
base: v14
Choose a base branch
from

Conversation

SubJunk
Copy link
Member

@SubJunk SubJunk commented Mar 16, 2024

I have not verified that FFmpeg supports this yet so this is pending testing

@SubJunk SubJunk changed the title Allow FFmpeg to hardcode subtitles before video track is muxed with tsMuxeR Allow FFmpeg to hardcode subtitles to Dolby Vision video track to be muxed with tsMuxeR Mar 16, 2024
@SubJunk
Copy link
Member Author

SubJunk commented Apr 1, 2024

This is difficult because FFmpeg does not automatically output the same format metadata as the input file, so we need to detect and add a lot of flags like:

-pix_fmt yuv420p10le 
-x265-params colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:range=limited:master-display="G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,50)"
-bsf:v hevc_metadata=colour_primaries=9:transfer_characteristics=16:matrix_coefficients=9

and that is just for HDR, not even Dolby Vision yet.
I hope FFmpeg make it more simple but there is a big arguing thread that makes it seem like they won't do it https://trac.ffmpeg.org/ticket/7037 :(

I also started a Q&A at this link https://superuser.com/questions/1835560/how-can-i-transcode-a-dolby-vision-video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant