I noticed for a lot of my clients mp4 files play a whole lot smoother and with less problems and wanted to convert my 2.5TB library of stuff all to MP4 from MKV (and a couple AVIs) what would be the best way to batch convert this on a mac (and hopefully not create any corrupted files)
I’ve been looking at Handbrake as an option, anyone know what the best universal settings would be for Plex with Handbrake? I stream to a variety of different clients via Plex (PS4, XBox One, Xbox 360, Apple TV 4, PlexWeb Chrome, Chromecast, LG-TV, iPhone, iPad)
ffmpeg.exe
At least, it works flawlessly on Windows. I’m not at all familiar with the syntax of a MAC, but…
ffmpeg.exe -i “FileToConvert.mkv” -c copy “NewMP4File.mp4”
You can use a FOR loop to process the entire directory.
Should of said flawless for me. It will copy the first video track, first audio track, and chapters. Stripping out any additional tracks and subtitles. Works for me because I don’t use the MP4 container if it has multiple tracks or SUB’s anyways.
What NewPlaza said. If you don’t want to strip out any of the subtitles, and want the files changed from MKV to MP4 with all of your existing streams, use this:
The “-map 0” tells it to copy all streams, and the “-movflags +faststart -f mp4” tells it to move the atoms to the begining of the file, add the “faststart” flag to accommodate faster streaming, and force the format to mp4, though it should do that based on the output filename already.
Also, using the “-map 0” flag assumes that all of the stream are compatible with the mp4 format.