2024-03-05, 06:33 PM
(This post was last modified: 2024-03-07, 05:23 PM by Cannikin. Edited 3 times in total.)
Solved! See below
Every search on Google for this topic seems to return the opposite problem: someone with an MKV with DV trying to turn it into an MP4.
I've got plenty of MKV files with Dolby Vision, ripped with MakeMKV. But now I've got an MP4 file with DV and want to turn it into an MKV to go with the rest of my collection. When I run a typical ffmpeg command to change containers, I get an error:
I've seen that when doing the opposite people are using a
The stream identifier looks like:
Thanks for any help!
Solved!
Turns out MKVToolNix can work with MP4 files! Opening the .mp4 in the GUI and then just hitting "Start Multiplexing" actually worked: the resulting .mkv file plays with Dolby Vision on the Nvidia Shield and my LG G1. Opening the file in VLC shows a green tint, but I don't watch them in VLC!
Every search on Google for this topic seems to return the opposite problem: someone with an MKV with DV trying to turn it into an MP4.
I've got plenty of MKV files with Dolby Vision, ripped with MakeMKV. But now I've got an MP4 file with DV and want to turn it into an MKV to go with the rest of my collection. When I run a typical ffmpeg command to change containers, I get an error:
Code:
ffmpeg -i movie.mp4 -map 0 -c copy movie.mkv
[standard ffmpeg verbose output...]
[matroska @ 0x11e028400] Tag dvh1 incompatible with output codec id '173' ([0][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Error initializing output stream 0:2 --
I've seen that when doing the opposite people are using a
-strict unofficial
flag, but that didn't make a difference for me.The stream identifier looks like:
Code:
Stream #0:0(und): Video: hevc (Main 10) (dvh1 / 0x31687664), yuv420p10le(pc), 1920x1080 [SAR 1:1 DAR 16:9], 6829 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 23.98 tbc (default)
Metadata:
creation_time : 2024-03-02T05:05:29.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : DOVI Coding
Side data:
DOVI configuration record: version: 1.0, profile: 5, level: 3, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 0
Thanks for any help!
Solved!
Turns out MKVToolNix can work with MP4 files! Opening the .mp4 in the GUI and then just hitting "Start Multiplexing" actually worked: the resulting .mkv file plays with Dolby Vision on the Nvidia Shield and my LG G1. Opening the file in VLC shows a green tint, but I don't watch them in VLC!