[FFmpeg-user] convert mkv to mp4

Vincent Deconinck vdeconinck at gmail.com
Fri Feb 14 02:10:23 EET 2025


We are almost there. I have two notes:
> - the output file has different permissions (this way Plex could not read
> it just after I modified perissions like other files have)
> - my tv only plays it as HDR10+ instead of Dolby Vision, this is the main
> point of converting. mk4s are played in HDR10+, if I change container it
> played as Dolby Vision (with my win software, XMediaRecode).
>

Hi,

I'm going to answer in general, with several pointers:
- First, please avoid top-posting on this mailing-list - see
https://ffmpeg.org/mailing-list-faq.html#What-is-top_002dposting_003f-1
- Second regarding file permissions, again, this is not ffmpeg related.
Please google "changing unix file permissions" and/or "setting default unix
permissions for new files"
- Finally, regarding the ffmpeg part, your command line specifically
includes "-c copy" which is means "don't do any reencoding", so the output
obviously uses the same codecs as the source. Only the "enveloppe"
(wrapper) changes from mkv to mp4, but the actual streams it contains are
untouched.
To reencode video probably requires a combination of "-c:a copy" (meaning:
avoid any *audio* reencoding) and "-c:v xxxx" (meaning reencode video with
codec xxxx).

Now admittedly I don't know which exact expression is required for HDR10+
encoding, or even if it is supported at all. Unfortunately, a quick Google
search for this question leads to
https://superuser.com/questions/1651568/how-to-convert-dolby-vision-hdr-to-hdr10
which starts with
"Update January 2025: This remains an open question. Current answers below
do not solve the issue."

So I'll let more knowledgeable people answer on this specific point.

KR,

Vincent


More information about the ffmpeg-user mailing list