Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On my desktop Ubuntu 10.4 I use ffmpeg to convert videos to a format my dvd-player understands. On my laptop running 10.10 I can't get the same command to work, what package(s) are missing?

ffmpeg -i infile.flv \
-threads 2 -vcodec mpeg4 -vtag divx -acodec libmp3lame -sameq \
outfile.avi

#...snip
Unknown encoder 'libmp3lame'

Using apt-cache search libmp3lame I'm told there exist libmp3lame0 and libmp3lame-dev, both of which I've installed. Using acodec libmp3lame0 doesn't work either.

share|improve this question
2  
Why didn't you sudo apt-get install libmp3lame0 ? – Marco Ceppi Nov 17 '10 at 22:07
@marco I did: "...both of which I've installed". – matt wilkie Nov 18 '10 at 2:06

3 Answers

up vote 16 down vote accepted

sudo apt-get install ffmpeg libavcodec-extra-52

If package not found try:

sudo apt-get install ffmpeg libavcodec-extra-53

you can also try to install the libmp3lame0 package:

sudo apt-get install libmp3lame0
share|improve this answer
1  
I tried "sudo apt-get install ffmpeg libavcodec-extra-52" Everything got install correctly But, still doesn't work, ffmpeg unable to find the libmp3lame or libmp3lame0 – user9030 Jan 16 '11 at 20:06

Try this, Open Synaptic Package Manager and reinstall ffmpeg. Also try installing winff in Synaptic, this will give you a GUI for ffmpeg. Edit... See also http://code.google.com/p/winff/wiki/UbuntuInstallation about adding "libavcodec-extra-52, libavutil-extra-49 and libavformat-extra-52 from the multiverse repository"

share|improve this answer
1  
Thank you so much, It works now!, This link [ubuntuforums.org/showthread.php?t=786095][1] has explained the complete installation. [1]: ubuntuforums.org/showthread.php?t=786095 – user9030 Jan 18 '11 at 17:05

FFMPEG is an open source video converter that can also be used for advanced functions like slowing down the frame rate, resizing the video and many more, rather than just converting the videos. FFmpeg is CLI based. So you don't need to struggle with those unbearable mouse clicks. Convert videos Ubuntu :

share|improve this answer
this answers the question "what is ffmpeg?", but that's not what I asked ;-) – matt wilkie Jul 16 '11 at 6:24
This is more of a comment/answer on what ffmpeg is, rather than an answer to the question asked. – zkriesse Jul 16 '11 at 18:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.