2025-09-29, 12:11 PM
(2025-09-27, 12:26 AM)Andy Brown Wrote: I'm looking into doing this to my media due to Firestick 4K Max's having the issue where some files result in a purple or blank screen. But I am wondering if there is a way to use the command to batch process my media rather than me having to go 1 by 1 through every media file I have?
This is what is happening to me! I dont know how to code or use ffmpeg. All what i found out is that the ffmpeg version doesnt work. Chatgpt (sorry like i said, i dont know how to do all this - just a dumb win11 user). I had to get dovi_tool, and put it in the ffmpeg folder. Then Chatgpt gave me new codes. The movie stutters now and does not run smoothly. But the colors are right and the screen doesnt tun black now. Probably someone can help with some "fine tuning".
Extract the HEVC stream
Code:
ffmpeg -y -hide_banner -loglevel error -stats -i "/path/to/dv_video.mkv" -dn -c:v copy -bsf:v hevc_mp4toannexb -f hevc "/path/to/output_video.hevc"
- /path/to/dv_video.mkv
→ your original Dolby Vision video
- /path/to/output_video.hevc
→ temporary HEVC stream file (no container)
Code:
dovi_tool remove "/path/to/output_video.hevc" -o "/path/to/output_hdr10.hevc"
- /path/to/output_hdr10.hevc
→ HEVC file with Dolby Vision removed
Pack into an MP4 container
Code:
ffmpeg -hide_banner -loglevel error -stats -y -fflags +genpts -i "/path/to/output_hdr10.hevc" -c:v copy "/path/to/output_hdr10.mp4"
- /path/to/output_hdr10.mp4
→ MP4 container with the clean HDR10 video
Remux with original audio/subtitles into a new MKV
Code:
ffmpeg -hide_banner -loglevel error -stats -y -fflags +genpts+igndts -i "/path/to/output_hdr10.mp4" -i "/path/to/dv_video.mkv" -map_chapters 1 -map 0:v -map 1:a -map 1:s -c:v copy -c:a copy -c:s copy -max_muxing_queue_size 2048 -avoid_negative_ts disabled -max_interleave_delta 0 "/path/to/final_hdr10_video.mkv"
- /path/to/final_hdr10_video.mkv
→ final HDR10 file, ready to play