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

Friday, June 17, 2011

Edit "places" menu entries in Gnome

Just edit the (hidden) file .gtk-bookmarks in your home folder. Each line of the file represents one shortcut in the menu, like this:

s Network_Shortcut_Name

This is the only way I have found to remove, for example, the shortcuts made by the "Connect to Server" option.