You want to grab a Twitch video in mp3. For instance, you want to listen to it offline.
You need two programs for it:
ffmpeg. Let’s take a concrete example:
$ youtube-dl -g "https://www.twitch.tv/wearethevr/v/115335579" https://vod067-ttvnw.akamaized.net/v1/AUTH_system/vods_c631/wearethevr_24261824064_585034506/chunked/index-dvr.m3u8 $ ffmpeg -i "https://vod067-ttvnw.akamaized.net/v1/AUTH_system/vods_c631/wearethevr_24261824064_585034506/chunked/index-dvr.m3u8" -f mp3 out.mp3
Where https://www.twitch.tv/wearethevr/v/115335579 is the URL of this particular Twitch video.
I wrote a script for it to automate the whole process: twitch2mp3.
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.
-p stands for “play”. The script requires
“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 “
ffmpeg -i input.avi -f mp3 output.mp3
This thing stopped working for me under Ubuntu 12.04. However, I had luck with “soundconverter” to extract mp3 from flv files.
If you have problems with ffmpeg, try to compile it yourself.