[Ffmpeg-devel] 3gp audio corrupt

Aaron Williams aaronw
Tue Oct 24 09:43:50 CEST 2006


Hi, more info below from valgrind.

Aaron Williams wrote:
> Hi,
>
> Aaron Williams wrote:
>   
>> I am trying to transcode a 3gp video and am having problems with the
>> audio coming out corrupt.  Are there any known issues that would cause
>> this?  The audio is reported as Stream #0.0(und): Audio: amr_nb, 8000
>> Hz, mono
>>
>> I compiled this with the amr_nb floating point library.  The fixed point
>> library does not seem to compile and I get unexplained errors.
>>
>> This is running on Linux compiled for an Athlon64.
>>
>> I see the problem when both transcoding and just playing back.  The
>> video looks fine.
>>
>> FFmpeg version SVN-r6280, Copyright (c) 2000-2006 Fabrice Bellard, et al.
>>   configuration:  --enable-libogg --enable-vorbis --enable-faad
>> --enable-faac --enable-xvid --enable-x264 --enable-a52 --enable-dts
>> --enable-dc1394 --enable-gpl --enable-mp3lame --enable-swscaler
>> --enable-pp --extra-cflags=-march=athlon64 -g --extra-ldflags=-g
>>   libavutil version: 49.0.1
>>   libavcodec version: 51.20.0
>>   libavformat version: 50.6.0
>>   built on Oct 21 2006 13:02:17, gcc: 4.1.0 (SUSE Linux)
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.3gp':
>>   Duration: 00:03:28.4, start: 0.000000, bitrate: 223 kb/s
>>   Stream #0.0(und): Audio: amr_nb, 8000 Hz, mono
>>   Stream #0.1(und): Video: h263, yuv420p, 352x288, 29.97 fps(r)
>> Assuming NTSC for target.
>> File 'test.vob' already exists. Overwrite ? [y/N] y
>> Output #0, dvd, to 'test.vob':
>>   Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 6000 kb/s,
>> 29.97 fps(c)
>>   Stream #0.1: Audio: mp2, 48000 Hz, mono, 128 kb/s
>> Stream mapping:
>>   Stream #0.1 -> #0.0
>>   Stream #0.0 -> #0.1
>>
>>   
>>     
> I forgot to provide a link:
>
> http://updat.free.fr/CreatedWithSUPER/video/1/h263+amrNb.3GP
>
> This video fails with just periodic noise for the audio.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
>
> !DSPAM:453dbd2d42881532753262!
>
>
>   
If I run ffplay_g in valgrind I am seeing uninitialized data warnings:

==17523== Thread 4:
==17523== Use of uninitialised value of size 8
==17523==    at 0x7B2665: dtx_dec (sp_dec.c:568)
==17523==    by 0x7B801E: Decoder_amr (sp_dec.c:4655)
==17523==    by 0x7B9A94: Speech_Decode_Frame (sp_dec.c:5677)
==17523==    by 0x79AF76: Decoder_Interface_Decode (interf_dec.c:817)
==17523==    by 0x79AAA5: amr_nb_decode_frame (amr.c:438)
==17523==    by 0x46D495: avcodec_decode_audio (utils.c:924)
==17523==    by 0x41A808: sdl_audio_callback (ffplay.c:1493)
==17523==    by 0x572BF49: SDL_RunAudio (in /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x576F576: SDL_RunThread (in /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x576F918: (within /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x58B6192: start_thread (in /lib64/libpthread-2.4.so)
==17523==    by 0x5A8545C: clone (in /lib64/libc-2.4.so)
==17523==
==17523== Use of uninitialised value of size 8
==17523==    at 0x7B266D: dtx_dec (sp_dec.c:569)
==17523==    by 0x7B801E: Decoder_amr (sp_dec.c:4655)
==17523==    by 0x7B9A94: Speech_Decode_Frame (sp_dec.c:5677)
==17523==    by 0x79AF76: Decoder_Interface_Decode (interf_dec.c:817)
==17523==    by 0x79AAA5: amr_nb_decode_frame (amr.c:438)
==17523==    by 0x46D495: avcodec_decode_audio (utils.c:924)
==17523==    by 0x41A808: sdl_audio_callback (ffplay.c:1493)
==17523==    by 0x572BF49: SDL_RunAudio (in /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x576F576: SDL_RunThread (in /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x576F918: (within /usr/lib64/libSDL-1.2.so.0.7.2)
==17523==    by 0x58B6192: start_thread (in /lib64/libpthread-2.4.so)
==17523==    by 0x5A8545C: clone (in /lib64/libc-2.4.so)





More information about the ffmpeg-devel mailing list