[Re: Mp3 from Radio]
Jimmy Aitken
jimmy.aitken at gmail.com
Tue Jan 4 10:06:41 EST 2011
I've sent my patches along. However, you raise another possibility: Use the '-c' flag to post process the file. I use something similar currently to get the mp4 files converted to work with my Apple TV.
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.
In the above example, it's 128kbs (-ab) and 2 audio channels(-ac) , but this could be changed to be greater or lesser as required. The "<filename>" (is the name of the file finally produced by get_iplayer. The quotes are needed in case the filename contains spaces. The final filename would be the name of the program, but with '.aac.mp3' as the extension rather than just '.mp3'
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.
Also, I've not tried this under anything other that Mac OSX. Any Unix variant should work, but I don;t know about windows or the cgi version.
Jimmy
On 4 Jan 2011, at 14:41, Steve Anderson wrote:
> On 4 January 2011 13:53, David Woodhouse <dwmw2 at infradead.org> wrote:
>
>> There are plenty of tools out there which will convert files from one
>> format to another, transcode them to DVD-compatible MPEG format, let you
>> add your own subtitles, or do whatever else you can think of.
>>
>> I believe that get_iplayer should do *one* thing, and do it well.
>
> At one point I would have disagreed with you; however since joining my
> current employer and seeing some of the awful Swiss Army Knife code
> that my predecessors have created to attempt to do everything (and,
> like a Swiss Army Knife, every tool is inferior to a proper single-use
> tool), I'd now agree wholeheartedly. Having been through the code for
> get_iplayer myself to hack in rtmpdump support back when it wasn't
> present, I know it's already on the verge of trying to do too much.
>
> Given that there's already ffmpeg et al being used, I'd be more in
> favour of a companion script that works with the files downloaded;
> maybe scanning the downloads directory when invoked and transcoding
> the files that match criteria. I should also mention at this point
> that I have absolutely no spare time to develop this - it's just an
> idea!
>
> Steve
>
> --
> Irregular Shed - http://www.twindx.co.uk
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer
Jimmy Aitken
jimmy.aitken at gmail.com
ph: 0794 105 4141
More information about the get_iplayer
mailing list