[Ffmpeg-devel] Re: [PATCH] ADTS muxer

Baptiste COUDURIER baptiste.coudurier
Thu Feb 9 22:39:50 CET 2006


Hi

Erik Slagter wrote:
> On Thu, 2006-02-09 at 16:48 +0100, Baptiste COUDURIER wrote:
>> Here is an ADTS muxer. I think it will solve Erik Slagter problem with
>> gpac. Does it worker for you Erik ?
> 
> Hmmm, maybe I am doing something wrong here?
> 
> artemis erik:/var/tv/misc/bewaren/mp4 $ ffmpeg -i input.mp4 -vn -acodec
> copy -f adts test.aac
> FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  --extra-cflags=-mtune=athlon-mp -finline-functions
> --prefix=/usr --enable-mp3lame --enable-faad --enable-faadbin
> --enable-faac --enable-x264 --enable-a52 --enable-a52bin --enable-pp
> --enable-shared --enable-pthreads --disable-audio-oss --disable-v4l
> --disable-bktr --disable-dv1394 --disable-debug --enable-gpl
>   libavutil version: 49.0.0
>   libavcodec version: 51.2.0
>   libavformat version: 50.1.0
>   built on Feb  9 2006 21:17:11, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
> Input #0, mov,mp4,m4a,3gp,3g2, from 'input.mp4':
>   Duration: 00:37:16.4, start: 0.000000, bitrate: 352 kb/s
>   Stream #0.0(eng), 29.97 fps(r): Video: h264, yuv420p, 320x240
>   Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
> File 'test.aac' already exists. Overwrite ? [y/N] y
> Output #0, adts, to 'test.aac':
>   Stream #0.0: Audio: aac, 44100 Hz, stereo
> Stream mapping:
>   Stream #0.1 -> #0.0
> Press [q] to stop encoding
> size=   34937kB time=2236.1 bitrate= 128.0kbits/s
> video:0kB audio:34937kB global headers:0kB muxing overhead 0.000000%
> 
> artemis erik:/var/tv/misc/bewaren/mp4 $ file test.aac
> test.aac: data
> 
> artemis erik:/var/tv/misc/bewaren/mp4 $ MP4Box -info test.aac
> Import probing results for test.aac:
> File has 1 tracks
>         Track 1 type: Audio
> 
> artemis erik:/var/tv/misc/bewaren/mp4 $ MP4Box -add test.aac test.mp4
> AAC import - sample rate 24000 - MPEG-2 audio - 5 channels
> Converting to ISMA Audio-Video MP4 file...
> Saving to test.mp4: 0.500 secs Interleaving
> 
> This is the same as I got before.

Humm did you clean your source tree ? Maybe libavformat needs to be
cleaned, raw.o still registering old aac output format ?

Here gpac properly import the output

MP4Box -add test2.aac test.mp4

AAC import - sample rate 48000 - MPEG-4 audio - 2 channels

Can you share your sample ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312





More information about the ffmpeg-devel mailing list