Error extracting audio to mp3

Asked by Shaun Viechweg on 2012-05-15

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

Language:
English Edit question
Status:
Solved
For:
Ubuntu youtube-dl Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Letzeisen
Solved:
2012-05-15
Last query:
2012-05-15
Last reply:
2012-05-15

This question was originally filed as bug #999707.

Shaun Viechweg (stump86) said : #1
Best Daniel Letzeisen (dtl131) said : #2

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

sudo apt-get install libavcodec-extra-53

Shaun Viechweg (stump86) said : #3

Thanks Dave Lentz, that solved my question.

Federico Poloni (fph) said : #4

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