[Re: Mp3 from Radio]

Andy Bircumshaw andy at networkned.co.uk
Tue Jan 4 10:53:39 EST 2011


On 4/1/2011, at 3:06pm, Jimmy Aitken wrote:
> ...
> e.g.:
> get_iplayer 11070 -g -c 'ffmpeg -i "<filename>" -vn -acodec libmp3lame -ac 2 -ab 128k -y "<filename>.mp3"'
> 
> would convert yesterday's "I'm sorry...." from aac to mp3 after get_iplayer has done the work.
> ...
> The disadvantage of this is that any tags that were created by get_iplayer are lost in the conversion.  The patches I submitted don't have this limitation.

This is easily overcome by putting the `ffmpeg` in a wrapper script and putting the ID3 tag handling in that. They can be passed in as `get_iplayer 11070 -g -c 'my_ffmpeg_wrapper.sh -i "<filename> <title> <channel> ..."`

This site has spammy pop-ups (sorry), but it also has some excellent examples of how to handle conversions and ID3 tags:
http://gimpel.gi.funpic.de/wiki/index.php?title=Howto:convert_aac/mp4_to_wav/mp3/ogg_on_Linux
http://tinyurl.com/owhh8

aB. 


More information about the get_iplayer mailing list