Friday, July 1, 2011

Batch convert youtube flv files to .mp3 audio (linux)

The following command will convert all .flv files in a directory into .mp3 files (keeping the filename). Make sure you have ffmpeg installed.
for i in *.flv; do ffmpeg -i "$i" -ab 128k "`basename "$i" .flv`".mp3; done
You can replace 128k with another bitrate. Keep in mind, however, that the conversion won't improve the quality beyond that of the bitrate of the original audio track of the .flv video file, which can be found with the command:
ffmpeg -i filename

Apply cool effects to your webcam with