Portal Home > Knowledgebase > Articles Database > ffmpeg mp3 encoder


ffmpeg mp3 encoder




Posted by howsthat, 11-04-2007, 03:24 AM
whenever i try to convert a file using -acodec mp3 it says Unknown encoder 'mp3' Kindly help me out

Posted by ub3r, 11-04-2007, 06:08 AM
install lame.

Posted by whmcsguru, 11-05-2007, 05:45 AM
That's the short answer: The long answer (and this should probably be in programming issues) A> install lame B> where you would call something like change that to Of course this all depends on how you're calling the codec, but that should at least get you going.

Posted by howsthat, 11-10-2007, 11:49 AM
still its not working.. i tried both.. have reconfigured ffmpeg with lame.. have checked lame is working.. And i tried converting avi to mobile format avi files but the video doesnt plays, audio is working.. am using -vcodec mpeg4

Posted by howsthat, 11-10-2007, 11:52 AM
i get this error FFmpeg version SVN-r10676, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-shared --enable-libmp3lame --enable-libxvid --enable-libogg --enable-libvorbis --enable-gpl libavutil version: 49.5.0 libavcodec version: 51.44.0 libavformat version: 51.14.0 built on Nov 10 2007 00:57:32, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) Input #0, avi, from 'Jaane.avi': Duration: 00:03:20.7, start: 0.000000, bitrate: 179 kb/s Stream #0.0: Video: mpeg4, yuv420p, 208x150, 23.98 fps(r) Stream #0.1: Audio: mp3, 22050 Hz, stereo, 32 kb/s Unknown encoder 'mp3'

Posted by howsthat, 11-11-2007, 02:31 AM
when i do ffmpeg -formats | grep mp3 it gives FFmpeg version SVN-r10676, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-shared --enable-libmp3lame --enable-libxvid --enable-libogg --enable-libvorbis --enable-gpl libavutil version: 49.5.0 libavcodec version: 51.44.0 libavformat version: 51.14.0 built on Nov 10 2007 00:57:32, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) DE mp3 MPEG audio layer 3 D A mp3 D A mp3adu D A mp3on4 which means mp3 can be used for Decoding but not for encoding ( E ) , so any way to make it work

Posted by ninjapig, 06-01-2008, 10:20 PM
Hey there, Did you manage to get this working? I've got LAME installed, but when trying to strip the audio out of my video file, I'm still getting "Unknown encoder 'libmp3lame'"?? Below is the result. Does anyone know what could be the problem? Help would be greatly appreciated!! --------------------------------- ffmpeg -i 1211956181_party_at_kevins.wmv -acodec libmp3lame -vn kevins01.flv FFmpeg version SVN-r12223, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.6.0 libavcodec version: 51.50.1 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Jun 2 2008 11:24:39, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9) Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 24.00 (24/1) Input #0, asf, from '1211956181_party_at_kevins.wmv': Duration: 00:00:30.7, start: 3.000000, bitrate: 401 kb/s Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 350 kb/s, 24.00 tb(r) Unknown encoder 'libmp3lame' --------------------------------- Thanks, Jayden

Posted by whmcsguru, 06-01-2008, 10:22 PM
remove libmp3lame from the configuration mess.

Posted by ninjapig, 06-01-2008, 10:30 PM
Wow - thanks for the speedy reply. Apologies in advance - I'm a bit of a noob with ffmpeg. Could you explain how do to this please? And why I have to do it? No worries if you don't have time for the last question!

Posted by ninjapig, 06-01-2008, 10:40 PM
Also tried with the example from the ffmpeg documentation (ffmpeg.mplayerhq.hu/ffmpeg-doc.html). Same result -------------------------------- ffmpeg -i 1211956181_party_at_kevins.wmv -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k kevins01.flv FFmpeg version SVN-r12223, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-libmp3lame libavutil version: 49.6.0 libavcodec version: 51.50.1 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Jun 2 2008 11:24:39, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9) Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 24.00 (24/1) Input #0, asf, from '1211956181_party_at_kevins.wmv': Duration: 00:00:30.7, start: 3.000000, bitrate: 401 kb/s Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 350 kb/s, 24.00 tb(r) Unknown encoder 'libmp3lame' --------------------------------



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Free UML for PHP (Views: 218)