FFMPEG: Converting RMVB to X264 MP4 (BASH)
If I'm honest, I'd forgot that Real Media Variable Bitrate was even a thing. Which is probably for the best as it's best left buried in the shrouds of time
Unfortunately, whilst sorting some old files, I found a bunch that were in RMVB format, so wanted to convert them to something a little more sane (and more widely supported) without sacrificing quality
This snippet details how to convert a directory of RMVB format files to X264 MP4's with MP3 Audio
Details
- Language: BASH
Snippet
for i in `ls *.rmvb`
do
newfname=$(echo $i | sed 's/\.rmvb/\.mp4/')
ffmpeg -i $i -c:v h264 -c:a mp3 $newfname
done