On Fri, Jul 25, 2008 at 08:25:24PM -0700, Chris Kuethe wrote:
> only tried on i386 so far... at least ffmpeg doesn't generate broken
> video any more, but the flags pspvc calls ffmpeg with don't produce
> psp-playable videos any more.

well, it appears to me that ffmpeg can't really make a 24kHz aac stream
and lies about it in the aac header:

$ file song30.wav
song30.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit 44100 
Hz
$ ffmpeg -y -i song30.wav -ar 24000 -ac 2 -ab 128kb song30.aac
$ file song30.aac
song30.aac: MPEG ADTS, AAC, v4 LC, 24 kHz, stereo
$ ffplay song30.aac
(plays 2x too slowly)
$ mplayer -identify song30.aac
...
ID_AUDIO_BITRATE=90000
ID_AUDIO_RATE=24000
ID_AUDIO_NCH=2
...
Opening audio decoder: [faad] ...
AUDIO: 48000 Hz 2 ch s16le, 90.0 kbit/5.86% (ratio: 11250->192000)
ID_AUDIO_BITRATE=90000
ID_AUDIO_RATE=24000
ID_AUDIO_NCH=2
Selected audio codec: [faad] ...
...
AO: [sun] 48000Hz 2ch s16le (2 bytes per sample)
...

and it plays correctly, which strongly suggests it's really 48kHz
instead of 24kHz.

interestingly, even if I start with a 24kHz file, it still ends up
encoded at 48kHz :(


> On Wed, Jul 23, 2008 at 6:44 AM, Jacob Meuser <[EMAIL PROTECTED]> wrote:
> >
> > attached are some patches and a new port.  sorry, I could not break this
> > up much because these are all intertwined.
> >
> > faad (faad.diff):
> > * update to faad2-2.6.1.
> > * greatly simplified patches for type mismatch issues in libfaad.
> > * libmp4v2 is no longer part of faad2 distribution.  attached is a
> >  new port for a standalone libmp4v2.
> >
> > faac (faac.diff):
> > * update to faac-1.26.
> > * depends on libmp4v2 instead of faad.
> >
> > libmp4v2 (libmp4v2-1.5.0.1-port.tgz):
> > This is the standalone version of the mp4v2 library. This library
> > provides functions to read, create, and modify mp4 files.  It is derived
> > from the mpeg4ip source tree but for licensing reasons it has been
> > adapted to this form.
> >
> > faad.ports.diff.gz:
> > * simplified patches for type mismatches in libfaad for faad dependent
> >  ports.
> > * ports using libmp4v2 now depend on libmp4v2 instead of faad.
> > * faa{c,d} LIB_DEPENDS and PKGNAME bumps.
> > * @bin markers and other "while here" changes.
> >
> >
> > basic functionality can be tested with just faad and faac and a WAV
> > file:
> >
> > $ faac -o <song>.m4a <song>.wav
> > $ faad -w <song>.m4a | aucat -e s16le -i -
> >
> > please test (preferably on something other than i386 or amd64 as I have
> > tested there) and let me know how it goes ...
> >
> > --
> > [EMAIL PROTECTED]
> > SDF Public Access UNIX System - http://sdf.lonestar.org
> >
> 
> 
> 
> -- 
> GDB has a 'break' feature; why doesn't it have 'fix' too?
> 

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to