What packages do I install for ffmpeg and libmp3lame?

59,409

Solution 1

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

Solution 2

Install the encoder by running he following command

sudo apt-get install libavcodec-extra-53
Share:
59,409

Related videos on Youtube

matt wilkie
Author by

matt wilkie

hewer of maps, old time techie, newbie developer personal - www.maphew.com, @maphew in-between - yukongis.ca work - www.env.gov.yk.ca, @mhw-at-yg

Updated on September 17, 2022

Comments

  • matt wilkie
    matt wilkie almost 2 years

    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 \
    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.

    • Michael Gundlach
      Michael Gundlach over 13 years
      Why didn't you sudo apt-get install libmp3lame0 ?
    • matt wilkie
      matt wilkie over 13 years
      @marco I did: "...both of which I've installed".
  • Admin
    Admin over 13 years
    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
  • Admin
    Admin over 13 years
    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