hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : ffmpeg mp3 encoder
Reply

Forum Jump

ffmpeg mp3 encoder

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2007, 03:24 AM
howsthat howsthat is offline
Junior Guru
 
Join Date: Aug 2007
Posts: 193

ffmpeg mp3 encoder


whenever i try to convert a file using -acodec mp3 it says

Unknown encoder 'mp3'

Kindly help me out



Sponsored Links
  #2  
Old 11-04-2007, 06:08 AM
ub3r ub3r is offline
Disabled
 
Join Date: Dec 2002
Location: chica go go
Posts: 11,858
install lame.

  #3  
Old 11-05-2007, 05:45 AM
twhiting9275 twhiting9275 is online now
Just me
 
Join Date: Sep 2002
Location: Among the corn
Posts: 10,484
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

Code:
-acodec mp3
change that to
Code:
-acodec libmp3lame
Of course this all depends on how you're calling the codec, but that should at least get you going.

Sponsored Links
  #4  
Old 11-10-2007, 11:49 AM
howsthat howsthat is offline
Junior Guru
 
Join Date: Aug 2007
Posts: 193
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

  #5  
Old 11-10-2007, 11:52 AM
howsthat howsthat is offline
Junior Guru
 
Join Date: Aug 2007
Posts: 193
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'

  #6  
Old 11-11-2007, 02:31 AM
howsthat howsthat is offline
Junior Guru
 
Join Date: Aug 2007
Posts: 193
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

  #7  
Old 06-01-2008, 10:20 PM
ninjapig ninjapig is offline
New Member
 
Join Date: Jun 2008
Posts: 3
*

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

  #8  
Old 06-01-2008, 10:22 PM
twhiting9275 twhiting9275 is online now
Just me
 
Join Date: Sep 2002
Location: Among the corn
Posts: 10,484
remove libmp3lame from the configuration mess.

  #9  
Old 06-01-2008, 10:30 PM
ninjapig ninjapig is offline
New Member
 
Join Date: Jun 2008
Posts: 3
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!

  #10  
Old 06-01-2008, 10:40 PM
ninjapig ninjapig is offline
New Member
 
Join Date: Jun 2008
Posts: 3
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'

--------------------------------

Reply

Related posts from TheWhir.com
Title Type Date Posted
AHosting Launches ClipBucket-Optimized Web Hosting Web Hosting News 2014-07-21 10:29:12


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?