r3mux is a simple batch file that will scan an INPUT folder and remux all Matroska files to MPEG-4 files using ffmpeg
The reason I wrote it is because some of my personal devices have problems direct playing/streaming Matroska container type files from my Plex server and I wanted to simplify the process of remuxing my MKV's.
The script will scan a specific folder for MKV files, will validate them using mkvalidator, copy the video stream to the MP4 container and encode the audio stream to stereo AAC. Various settings can be tweaked inside settings.ini file, like Audio language tag and Audio bitrate.
Using an MP4 container with stereo AAC has the best chances of being direct played/streamed by a media server such as Plex Media Server and not forcing your server to transcode the media for your various clients.
- Download the zip file and extract the r3mux-master to your hard drive. You can rename it to whatever name you want.
- Edit the file settings.ini inside Program subfolder. Defaults should work right out of the box.
- Copy your MKV file(s) to the Jobs subfolder.
- Inside Program subfolder execute/double click the remux-MKV-MP4.bat file
- If everything goes well, your remuxed MP4 file(s) will be available in the Completed subfolder.
- set-LNG.bat can be used to batch set the audio language tag of all matching files inside INPUT folder.
It can set the language tag for MKV or MP4 files inside INPUT folder. Just change A-LNG setting in settings.ini to match the file type. - clean.bat can be used to batch strip out unwanted characters from files names inside OUTPUT folder. Edit the bat file to suit your needs.
r3mux makes use of the folowing 3rd party programs:
- ffmpeg
- mkvalidator
- cecho
All executables must be present in Program\tools subfolder for r3mux to work.
Q: My MP4 file is still being transcoded by my Plex Media Server
A: Make sure you setup Burn Subtitles to Automatic (if using subtitles) and Remote Quality to Original in Plex Player settings if you are using Plex Web.
Make sure you set the Remote Quality to maximum available if you are using a Smart TV.