Archive

Posts Tagged ‘mp3’

grab a Twitch video in mp3

January 17, 2017 Leave a comment

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

Solution
You need two programs for it: youtube-dl and 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.

Advertisements
Categories: bash, python Tags: , ,

A simple command-line media player

Problem

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.

Solution

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:

./alarm.py -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)

Installation:

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: , , , ,