[Bug 1285729] Re: amarok lacks transcode support

Aymeric PETIT lp at mulx.net
Fri Mar 14 16:15:11 UTC 2014


The error about missing ffmpeg, I got in console was during transferring songs in flac from local collection, to an iPod (which only support mp3/aac).
It's also show when copying to an other collection, at least when amarok is executed with --debug option.

After a some code lookup, I think I found the origin of this bug:
In src/core/transcoding/formats/ there is one files per file format supported with a line like: 

    "return ffmpegOutput.contains( QRegExp( "^ .EA....*libvorbis" ));"

So, it seem amarok parse the output of "ffmpeg -codecs" (which is
executed by /src/core/transcoding/TranscodingController.cpp) to guess
which file format is supported.

There is two problems: 
1. ffmpeg command doesn't exist anymore (libav doesn't provide any compatibility wrapper), so either amarok or libav-tools should be patched to make amarok looking for an existing command.
2. The ouput of "ffmpeg -codecs" and "avconv -codecs" differ which break the regex:
  The original ffmpeg put a space before listing available codecs:
  " DEA.L. vorbis               Vorbis (decoders: vorbis libvorbis ) (encoders: vorbis libvorbis )"
  And avconv on Trusty doesn't: 
  "DEA.L. vorbis               Vorbis (encoders: vorbis libvorbis )"

Maybe amarok is not the only package affected by the switch made by
avconv…

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to amarok in Ubuntu.
https://bugs.launchpad.net/bugs/1285729

Title:
  amarok lacks transcode support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/amarok/+bug/1285729/+subscriptions




More information about the kubuntu-bugs mailing list