MKV to MP4 batch conversion
I found a good method for batch converting mkv to mp4. VLC wasnāt doing the job for me (it stopped batching entirely, and its encoding was slow, and it was doing something weird to the files so they were coming up garbled when Iād open them in photoshop). And handbrake is hard! I want a one-click solution, so I went with this method that uses ffmpeg.Ā Ā
https://community.adobe.com/t5/premiere-pro/problem-with-mkv-format/td-p/10248788
Hereās a link to the original comment on the adobe forum, but since thatās probably impermanent I also grabbed the text.Ā Credit goes to adobe forumite basil1891, who is obviously a mensch. The link they provided to get ffmpeg has gone away, so I snipped it, but you can get the sources at ffmpeg.org, and I got a good .exe atĀ https://www.gyan.dev/ffmpeg/builds/
[quote]-----------------------------------------------
basil1891Ā Ā EnthusiastĀ ,Ā Jun 02, 2019
Maybe converting is the easiest, but hardly the best way, imho. I'd just remux files instead of converting.Ā ffmpeg can do it nicelyĀ
place the .mkv's in a separate folder along with ffmpeg.exe
Ā in notepad create a pair of .bat files there:
StartRemux.batĀ with a string:
forĀ %%FĀ inĀ (*.mkv)Ā doĀ remux_settings_.batĀ "%%F"
remux_settings_.batĀ with a string:
ffmpeg.exeĀ -iĀ %~d1%~p1%~n1.mkvĀ -c:vĀ copyĀ -c:aĀ copyĀ %~d1%~p1%~n1.mp4
Now you can just run theĀ StartRemux.bat, and in a minute you'll get your videos in .mp4 container, without losing quality and time. If you like, you can change .mp4 to .mov in the settings. Sometimes it's needed ( as in case when .mp4 does not allow uncompressed audio).
p.s. Important note - those .mkv filenames should not have spaces, or wont work.
------------------------------------------------[end quote]
Iāll add that I got an error in my original directory, but when I created a root-level directory with no spaces in the name, it worked fine there.Ā I just converted 30+ mkvās cleanly with this method and am a happy camper :)Ā