Posts Tagged ‘mp3’

grab a Twitch video in mp3

January 17, 2017 Leave a comment

You want to grab a Twitch video in mp3. For instance, you want to listen to it offline.

You need two programs for it: youtube-dl and ffmpeg. Let’s take a concrete example:

$ youtube-dl -g ""
$ ffmpeg -i "" -f mp3 out.mp3

Where is the URL of this particular Twitch video.

I wrote a script for it to automate the whole process: twitch2mp3.

Categories: bash, python Tags: , ,

A simple command-line media player


You have a folder on your hard drive where you store your MP3s. You would like to play these songs in a random order from the command-line with a simple command.


I have an alarm script with the exact same function; available here. Just modify the configuration part in the header to point to your MP3 folder; then launch it like this:

./ -p

Where -p stands for “play”. The script requires mplayer.

Categories: bash Tags: , ,

mp3 tag editor

February 26, 2011 Leave a comment

EasyTAG is a utility for viewing and editing tags for MP3, MP2, MP4/AAC, FLAC, Ogg Vorbis, MusePack, Monkey’s Audio and WavPack files. Its simple and nice GTK+ interface makes tagging easier under GNU/Linux or Windows.” (source)


sudo apt-get install easytag

With EasyTAG you can process your mp3 files in batch mode. For instance, you can set the album name for several files with just one click.

Tip: if you want to edit the MP3s in the current directory, launch the application with “easytag .“.

Categories: ubuntu, windows Tags: , , ,

Extract mp3 from avi

October 2, 2010 Leave a comment
ffmpeg -i input.avi -f mp3 output.mp3

Update (20120908)
This thing stopped working for me under Ubuntu 12.04. However, I had luck with “soundconverter” to extract mp3 from flv files.

Update (20130408)
If you have problems with ffmpeg, try to compile it yourself.

Categories: bash Tags: , , , ,