[Ffmpeg-user] Audio lost when convert mpeg to flv

Michel Bardiaux mbardiaux at mediaxim.be
Thu Oct 20 16:54:01 CEST 2005


Xiaogang Zhang wrote:
> When I am trying to convert a mpeg video to flash video, but  audio 
> seems not be converted into the flv file. What did I do wrong? Many thanks.
> 
> \ffmpeg_CVS\ffmpeg.exe -i T:\testdata\Movies\microshaft.mpeg -sameq -y 
> .\microshaft.flv
> ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
>  configuration:  --enable-memalign-hack
>  built on Oct 17 2005 19:36:48, gcc: 3.4.2 (mingw-special)
> Input #0, mpeg, from 'T:\testdata\Movies\microshaft.mpeg':
>  Duration: 00:01:08.7, start: 0.909167, bitrate: 366 kb/s
>  Stream #0.0[0x1e0], 30.00 fps: Video: mpeg1video, yuv420p, 240x176, 300 
> kb/s
>  Stream #0.1[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s
> Output #0, flv, to '.\microshaft.flv':
>  Stream #0.0, -1.#J fps: Video: flv, yuv420p, 240x176, q=2-31, 200 kb/s
> Stream mapping:
>  Stream #0.0 -> #0.0
> frame= 2230 q=0.0 Lsize=    4674kB time=74.3 bitrate= 515.1kbits/s
> video:4639kB audio:0kB global headers:0kB muxing overhead 0.751378%
> 
> Best regards
> 
> Xiaogang
> 
By default flv selects mp3 audio but that is not configured in your 
ffmpeg. Install lame, make distclean, add --enable-mp3lame to configure 
command, make, retry.

This is becoming a FAQ but is not in the FAQ. Besides, this is a general 
problem: some containers select default codecs that may not be 
installed, and do so silently!

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-user mailing list