[PATCH] Output AAC as M4A with metadata tags

Shevek shevek at shevek.co.uk
Fri Apr 1 03:36:43 EDT 2011


On 1 April 2011 08:26, Shevek <shevek at shevek.co.uk> wrote:
> On 1 April 2011 08:20, Shevek <shevek at shevek.co.uk> wrote:
>> On 31 March 2011 21:40, Shevek <shevek at shevek.co.uk> wrote:
>>> A new patch -
>>
>> Hold fire - this breaks video downloads.
>>
>> It looks like video downloads also have the ext set to AAC for some
>> reason so changing it to M4A has broken it :(
>>
>
> I've done some debugging.
>
> Not sure what is happening
>
> Video EXT is set to mp4
>
> but this line is changing it to m4a:
>
> $prog->{ext} = 'm4a' if $prog->{ext} = 'aac';
>
> why?
>

I have tried this:

	main::logger("BEFORE: File ext = $prog->{ext}\n");
	if ( $prog->{ext} == 'aac' ) {
		$prog->{ext} = 'm4a'
	};
	main::logger("AFTER: File ext = $prog->{ext}\n");

and the ouput is this:

BEFORE: File ext = mp4
AFTER: File ext = m4a

??????



More information about the get_iplayer mailing list