Error extracting audio to mp3

Asked by Shaun Viechweg

When using the tags --extract-audio and --audio-format=mp3, I receive the error "ERROR: audio conversion failed: Unknown encoder 'libmp3lame'" and no mp3 file is generated.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: youtube-dl 2012.02.27-1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Tue May 15 10:08:28 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
SourcePackage: youtube-dl
UpgradeStatus: Upgraded to precise on 2012-04-27 (18 days ago)

Question information

English Edit question
Ubuntu youtube-dl Edit question
No assignee Edit question
Solved by:
Daniel Letzeisen
Last query:
Last reply:

This question was originally filed as bug #999707.

Revision history for this message
Shaun Viechweg (stump86) said :
Revision history for this message
Best Daniel Letzeisen (dtl131) said :

youtube-dl uses ffmpeg. Uou need the libavcodec-extra-53 package for mp3 support in ffmpeg:

sudo apt-get install libavcodec-extra-53

Revision history for this message
Shaun Viechweg (stump86) said :

Thanks Dave Lentz, that solved my question.

Revision history for this message
Federico Poloni (fph) said :

Shouldn't libavcodec-extra-53 be in the dependencies for this package, or at least in the recommends: line?