RE: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-15 Thread bat guano
rtmpdump produces FLV files, which have nowhere to put a value for the average bit rate. So this isn't something that rtmpdump could fix. I think ffmpeg is the right place to handle this. When ffmpeg runs (using -acodec copy), it displays a

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-15 Thread richard
On Fri Apr 15 bat guano wrote: Simon wrote: rtmpdump produces FLV files, which have nowhere to put a value for the average bit rate. So this isn't something that rtmpdump could fix. I think ffmpeg is the right place to handle this. When ffmpeg runs (using -acodec copy), it displays a

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-14 Thread richard
On Tue Apr 12 11:20:00 EDT 2011 dinkypumpkin wrote: I see that bufferSizeDB (max sample size) is also zero. That would be a bit unfortunate if either of those fields is the cause. I don't think ffmpeg will ever fill in those fields in this case, as you're just copying streams (i.e., using

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-14 Thread Andy Bircumshaw
On 14/4/2011, at 2:15pm, richard wrote: ... when the avgBitrate (average bit rate) in the DecoderConfigDescriptor of the esds atom is zero, a m4a file will not play in the Marantz CD6003. Both EasyTag and mp4tags makes a m4a file playable by changing the average bitrate from zero to a non

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-14 Thread richard
On Tue Apr 12 17:38 dinkypumpkin wrote: If you're on ubuntu and you have mp4tags, then you've probably installed the mpeg4ip-utils package (or similar - that's what it's called on Maverick). If so, you'll have utility called mp4dump which can print out a more-or-less readable

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-13 Thread Simon Nash
dinkypumpkin wrote: On 12/04/2011 21:40, richard wrote: I'm struggling to understand all this analysis of atoms etc. What software are you using to carry out your tests and determine what is going on? If you're on ubuntu and you have mp4tags, then you've probably installed the mpeg4ip-utils

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-13 Thread richard
On Tue Apr 12 Simon Nash wrote: dinkypumpkin wrote: When mp4tags rewrites the MP4 metadata on save, the underlying MP4 library does the arithmetic to calculate the necessary values and fill in the esds atom. From perusing the ffmpeg code, it looks like the required logic could be added,

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-12 Thread richard
On Tue Apr 12 Simon Nash wrote: I'm puzzled by this. There is definitely no video in this file, and it plays OK on my Linn DS. Have you tried renaming the file to test1.m4a? When I renamed the test1.mp4 file with a .m4a extension it plays OK on the Marantz. The file has to have a .m4a

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-12 Thread dinkypumpkin
On 12/04/2011 21:40, richard wrote: I'm struggling to understand all this analysis of atoms etc. What software are you using to carry out your tests and determine what is going on? If you're on ubuntu and you have mp4tags, then you've probably installed the mpeg4ip-utils package (or similar -

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-12 Thread Andy Bircumshaw
On 12/4/2011, at 5:08pm, Simon Nash wrote: I'm puzzled by this. There is definitely no video in this file, and it plays OK on my Linn DS. The Linn DS is happy with both .mp4 and .m4a file extensions so I had been thinking that these are equivalent for MPEG-4 files with audio and no video.

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-10 Thread Simon Nash
richard wrote: On Sat Apr 9 10:08 Simon Nash wrote: There has been a recent change to ffmpeg to use the 4-byte length format(see http://ffmpeg.org/pipermail/ffmpeg-cvslog/2011-March/035858.html). This is included in the 0.6.90-rc0 release of ffpmeg, according to the changelog

Re: Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-10 Thread richard
On Sun Apr 10 02 Simon Nash wrote: I would be interested in trying these on my Linn DS. I will send you three m4a files off list of Bells on Sunday (2.8Mb each) downloaded with get_iplayer for you to try. The 3 files are: Bells1_noscript.m4a This file does not use Jon's script. The file does

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-10 Thread Simon Nash
richard wrote: On Sun Apr 10 02 Simon Nash wrote: I would be interested in trying these on my Linn DS. I will send you three m4a files off list of Bells on Sunday (2.8Mb each) downloaded with get_iplayer for you to try. The 3 files are: Bells1_noscript.m4a This file does not use Jon's

Re: Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-09 Thread Simon Nash
Jon Davies wrote: dinkypumpkin did some great work putting together a patch which makes mpeg4/m4a the default file format for aac sources, rather than raw aac. This works for most people but ... On 1 April 2011 21:15, richard rich...@richsim900.plus.com wrote: The m4a file did not play in the

Workaround for broken(?) m4a files from ffmpeg, was Re: [PATCH] Output AAC as M4A for iTunes with metadata tags

2011-04-08 Thread Jon Davies
dinkypumpkin did some great work putting together a patch which makes mpeg4/m4a the default file format for aac sources, rather than raw aac. This works for most people but ... On 1 April 2011 21:15, richard rich...@richsim900.plus.com wrote: The m4a file did not play in the Marantz CD