In trying to convert an avi to a flv I end up with an flv with only video and no audio. -bash-3.00$ ffmpeg -i GearsOfWarMadWorld.avi -ar 44100 -sameq -y gow1.flv FFmpeg version SVN-r8197, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.36.0 libavformat version: 51.10.0 built on Mar 4 2007 19:12:21, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3) Seems stream 0 codec frame rate differs from container frame rate: 2997.00(2997/1) -> 29.97 (30000/1001) Input #0, avi, from 'GearsOfWarMadWorld.avi': Duration: 00:01:00.5, start: 0.000000, bitrate: 1058 kb/s Stream #0.0: Video: mpeg4, yuv420p, 480x270, 29.97 fps(r) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s Output #0, flv, to 'gow1.flv': Stream #0.0: Video: flv, yuv420p, 480x270, q=2-31, 200 kb/s, 29.97 fps(c) Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. Do not report crashes to FFmpeg developers. frame= 1813 q=0.0 Lsize= 12854kB time=60.5 bitrate=1740.7kbits/s video:12826kB audio:0kB global headers:0kB muxing overhead 0.222295% I am not sure whether the libavcodec compiler warning is the cause of this. The gcc options are pretty standard. -bash-3.00$ gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-3) I further tried to convert other file types like mpeg, wmv, etc. with the same results. Any help in resolving this situation is much appreciated. Thanks, Avilay
avilay parekh wrote:
In trying to convert an avi to a flv I end up with an flv with only video and no audio.
-bash-3.00$ ffmpeg -i GearsOfWarMadWorld.avi -ar 44100 -sameq -y gow1.flv FFmpeg version SVN-r8197, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.36.0 libavformat version: 51.10.0 built on Mar 4 2007 19:12:21, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Seems stream 0 codec frame rate differs from container frame rate: 2997.00(2997/1) -> 29.97 (30000/1001) Input #0, avi, from 'GearsOfWarMadWorld.avi': Duration: 00:01:00.5, start: 0.000000, bitrate: 1058 kb/s Stream #0.0: Video: mpeg4, yuv420p, 480x270, 29.97 fps(r) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s Output #0, flv, to 'gow1.flv': Stream #0.0: Video: flv, yuv420p, 480x270, q=2-31, 200 kb/s, 29.97 fps(c) Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding [snip]
I further tried to convert other file types like mpeg, wmv, etc. with the same results.
Please clarify: *FROM* ,peg, wmv, etc or *TO* mpeg, wmv, etc? HaND, -- 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/
In all cases it is converting FROM - avi, wma, mpeg TO - flv On 3/5/07, Michel Bardiaux <mbardiaux at mediaxim.be> wrote:
In trying to convert an avi to a flv I end up with an flv with only video and no audio.
-bash-3.00$ ffmpeg -i GearsOfWarMadWorld.avi -ar 44100 -sameq -y gow1.flv FFmpeg version SVN-r8197, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.36.0 libavformat version: 51.10.0 built on Mar 4 2007 19:12:21, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Seems stream 0 codec frame rate differs from container frame rate: 2997.00(2997/1) -> 29.97 (30000/1001) Input #0, avi, from 'GearsOfWarMadWorld.avi': Duration: 00:01:00.5, start: 0.000000, bitrate: 1058 kb/s Stream #0.0: Video: mpeg4, yuv420p, 480x270, 29.97 fps(r) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s Output #0, flv, to 'gow1.flv': Stream #0.0: Video: flv, yuv420p, 480x270, q=2-31, 200 kb/s, 29.97fps(c) Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding [snip]
I further tried to convert other file types like mpeg, wmv, etc. with
avilay parekh wrote: the
same results.
Please clarify: *FROM* ,peg, wmv, etc or *TO* mpeg, wmv, etc?
HaND, -- 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/ _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
avilay parekh wrote:
Please dont top-post.
In all cases it is converting FROM - avi, wma, mpeg TO - flv
Then there is something very weird in your installation. I have just tried conversion from mpeg to flv using your own command line, apart from the addition of the audio bitrate: ../ffmpeg -i utc_1434.mpg -ar 44100 -sameq -y -ab 32000 gow1.flv FFmpeg version SVN-r8258, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libgsm --enable-gpl --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.38.0 libavformat version: 51.10.0 built on Mar 5 2007 15:01:56, gcc: 3.3.5 (Debian 1:3.3.5-13) Input #0, mpeg, from 'utc_1434.mpg': Duration: 00:00:57.0, start: 92564.370489, bitrate: 668 kb/s Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 104857 kb/s, 25.00 fps(r) Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, mono, 32 kb/s Output #0, flv, to 'gow1.flv': Stream #0.0: Video: flv, yuv420p, 352x288, q=2-31, 200 kb/s, 25.00 fps(c) Stream #0.1: Audio: mp3, 44100 Hz, mono, 32 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. Do not report crashes to FFmpeg developers. frame= 1501 q=0.0 Lsize= 13080kB time=60.0 bitrate=1785.0kbits/s video:12783kB audio:234kB global headers:0kB muxing overhead 0.481701% (The -ab 32000 is OK with that exact svn; the change of unit for -ab is currently discussed in -devel and could change back to -ab 32 without any prior notice!) -- 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/
Michel Bardiaux wrote:
(The -ab 32000 is OK with that exact svn; the change of unit for -ab is currently discussed in -devel and could change back to -ab 32 without any prior notice!)
well, to be sure, you can set -ab 32k, it should work in all cases... Ben
In order to enable mp3, do I need both libmp3lame.a _and_ libmp3lame.so? Currently the installation I am using seems to have only libmp3lame.so but no libmp3lame.a. I do have /usr/include/lame.h. This causes audio-less flvs (my original problem) which in turn is indicative of the fact that even though --enable-libmp3lame shows up in ffmpeg output, it still does not support mp3 encoding. -bash-3.00$ ffmpeg -formats FFmpeg version SVN-r8197, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.36.0 libavformat version: 51.10.0 built on Mar 4 2007 19:12:21, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3) File formats: ::::: D A mp3 D A mp3adu D A mp3on4 ::: So it seems that libavcodec.a is somehow unable to talk to the lame mp3 library. Please let me know whether I have completely mis-read the problem. Thanks a lot for the help.
Hi, avilay parekh wrote:
In order to enable mp3, do I need both libmp3lame.a _and_ libmp3lame.so?
you need header file(s) and dynamic library
Currently the installation I am using seems to have only libmp3lame.so but no libmp3lame.a. I do have /usr/include/lame.h.
i should be ok
This causes audio-less flvs (my original problem) which in turn is indicative of the fact that even though --enable-libmp3lame shows up in ffmpeg output, it still does not support mp3 encoding.
if configure didn't failed, you should have all that is necessary to use lame for mp3 encoding
-bash-3.00$ ffmpeg -formats FFmpeg version SVN-r8197, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.36.0 libavformat version: 51.10.0 built on Mar 4 2007 19:12:21, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3) File formats: ::::: D A mp3 D A mp3adu D A mp3on4 :::
i tried exactly the same build here, and what i got is: [mmedia_bfo_lin:ffmpeg]$./ffmpeg -formats | grep mp3 FFmpeg version SVN-r8335, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.3.0 libavcodec version: 51.38.0 libavformat version: 51.10.0 built on Mar 12 2007 09:20:16, gcc: 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) DE mp3 MPEG audio layer 3 DEA mp3 D A mp3adu D A mp3on4
So it seems that libavcodec.a is somehow unable to talk to the lame mp3 library. Please let me know whether I have completely mis-read the problem.
Thanks a lot for the help. Ben
Thanks a lot for the help. As expected it was an installation problem. I was able to get everything to work after re-installing lame and ffmpeg.
participants (3)
-
avilay@gmail.com -
benoit.fouet@purplelabs.com -
mbardiaux@mediaxim.be