Bug 311228 - Some codecs shown as not available in transcoding menu
Summary: Some codecs shown as not available in transcoding menu
Status: RESOLVED DUPLICATE of bug 309454
Alias: None
Product: amarok
Classification: Applications
Component: Transcoding (show other bugs)
Version: 2.6.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 2.7
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-05 22:28 UTC by Corentin Julé
Modified: 2012-12-06 10:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corentin Julé 2012-12-05 22:28:20 UTC
Hi,

I have to convert files from FLAC to MP3 using Amarok. However, i can't select MP3, OGG or AAC codec in the list, since they are described as "not currently available on your system". 

FFmpeg and lame are installed. I've just had a look into the source code of amarok and it seems that it uses the output of the command "ffmpeg -codecs" to check if the encoder is installed. For mp3, a function looks for a line with ".EA... libmp3lame" in this output (found it in the file TranscodingMp3Format.cpp). In my output of ffmpeg -codecs, i don't have this line but : 

 DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )

Amarok doesn't exactly find ".EA... libmp3lame" so it must expect libmp3lame is not installed.
However, i'm quite sure it is installed as i can convert files to mp3 format with ffmpeg command.

I guess it might be due to a change in ffmpeg -codecs output, maybe an update of ffmpeg to clear this output by grouping encoders and decoders of a same codec in a same line. 
I've seen other outputs of ffmpeg -codecs on the web with older versions of ffmpeg and they indeed have a line for the encoder : libmp3lame and another line for the decoder : mp3.

I notice the same things with Vorbis codec (libvorbis and vorbis grouped).
Flac, Apple Lossless and WMA work fine, because the output is the same in ffmpeg -codecs than the one expected by amarok.

Does anybody can reproduce this, or did I forgot to do something in order to make it work ?

Thanks to the Amarok team for offering us such an amazing software :)



Reproducible: Always

Steps to Reproduce:
1.Select a song in left media panel.
2.Right click and Organize Files
3.MP3, AAC and OGG are "not currently available on your system"
Actual Results:  
Impossible to convert files in MP3 or OGG formats


Archlinux
Kernel 3.6.8-1 x86_64
ffmpeg version 1.0
amarok version 2.6.0
Lame 3.99.
Comment 1 Matěj Laitl 2012-12-06 10:06:26 UTC

*** This bug has been marked as a duplicate of bug 309454 ***