[Ffmpeg-devel] FLV files have no sound

Alexander Mitev alexmi
Sun Feb 26 14:15:18 CET 2006


Hello! 
I just built ffmpeg for myself under Windows, and tried to convert an AVI file with sound
to FLV. The video is OK, but there is no sound in the resulting file. 
Here are the results that ffmpeg produces: 



 ffmpeg -i test.avi -ab 128 -ar 44100 -b 500 -r 15 -s 320x240 test.flv
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard

 configuration:
 --enable-memalign-hack --enable-mingw32 --enable-mp3lame --ena
ble-a52 --enable-gpl --enable-xvid --extra-cflags=-I/local/include --extra-ldfla
gs=-L/local/lib

 libavutil version: 49.0.0

 libavcodec version: 51.7.0

 libavformat version: 50.3.0

 built o n Feb 26 2006 13:13:55, gcc: 3.2.3 (mingw special 20030504-1)
Input #0, avi, from 'test.avi':

 Duration: 00:00:18.7, start: 0.000000, bitrate: 7860 kb/s

 Stream #0.0, 15.00 fps(r): Video: mjpeg, yuvj422p, 640x480

 Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
Output #0, flv, to 'test.flv':

 Stream #0.0, 15.00 fps(c): Video: flv, yuv420p, 320x240, q=2-31, 500 kb/s

 Stream #0.1: Audio: mp3, 44100 Hz, mono, 128 kb/s
Stream mapping:

 Stream #0.0 -> #0.0

 Stream #0.1 -> #0.1
[flv @ 00782300]removing common factors from framerate
frame=
 281 q=11.4 Lsize=


 1539kB time=18.7 bitrate= 673.0kbits/s
video:1230kB audio:293kB global headers:0kB muxing overhead 1.026463% 

If I try to copy the original audio, it produces the following results: 




 ffmpeg -i test.avi -acodec copy test.flv
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard

 configuration:
 --enable-memalign-hack --enable-mingw32 --enable-mp3lame --ena
ble-a52 --enable-gpl --enable-xvid --extra-cflags=-I/local/include --extra-ldfla
gs=-L/local/lib

 libavutil version: 49.0.0

 libavcodec version: 51.7.0

 libavformat version: 50.3.0

 built o n Feb 26 2006 13:13:55, gcc: 3.2.3 (mingw special 20030504-1)
Input #0, avi, from 'test.avi':

 Duration: 00:00:18.7, start: 0.000000, bitrate: 7860 kb/s

 Stream #0.0, 15.00 fps(r): Video: mjpeg, yuvj422p, 640x480

 Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
Output #0, flv, to 'test.flv':

 Stream #0.0, 15.00 fps(c): Video: flv, yuv420p, 640x480, q=2-31, 200 kb/s

 Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
Stream mapping:

 Stream #0.0 -> #0.0

 Stream #0.1 -> #0.1
[flv @ 00782300]removing common factors from framerate
[NULL @ 00782300]flv doesnt support that sample rate, choose from (44100, 22050,

11025)
Could not write header for output file #0 (incorrect codec parameters ?) 

Can you please help me? 
I can send you the original AVI file for testing purposes.
Regards, Alex 

-----------------------------------------------------------------
http://mm.music.gbg.bg/ - ??????? ????????? ??????? ?? ????????? ?? - ?????? ???????????? ??????? ONLINE



More information about the ffmpeg-devel mailing list