FFMPEG: Converting RMVB to X264 MP4



Published: 2018-09-22 15:01:02 +0000
Categories: BASH,

Language

BASH

Description

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

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

Requires

Keywords

ffmpeg, RMVB, RealMedia, Convert, Transcode,

Latest Posts


Copyright © 2022 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk, http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion and http://snippets.bentasker.i2p
hit counter