Bug 377212 - Request: Allow encoding to Opus
Summary: Request: Allow encoding to Opus
Status: ASSIGNED
Alias: None
Product: k3b
Classification: Applications
Component: Plugins (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-04 18:11 UTC by Gerion
Modified: 2018-01-28 17:49 UTC (History)
3 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 Gerion 2017-03-04 18:11:23 UTC
Since K3b offers a nice way to rip an audio CD, it would be cool, if it would allow to encode to Opus (https://opus-codec.org/) as well.

Opus has serveral advantages. It is a free codec, has good support for different configurations, and offers one of the best compression rates for different kinds of audio sources.

Encoding could be realized with libopus or FFmpeg (libavcodec, either wrapper to libopus as well or native).
Comment 1 Leslie Zhai 2017-03-06 08:48:33 UTC
Hi,

Thanks for your REQ!

I will add it into TODO, but I have to fix bug at first! http://www.leetcode.cn/2016/08/k3b.html#bug

Regards,
Leslie Zhai
Comment 2 Gerion 2018-01-28 17:49:30 UTC
This is a workaround, but with that K3b is able to encode to opus. Set as external encoder ffmpeg:
ffmpeg -f s16le -ar 44100 -ac 2 -i - -nostdin -y -c:a libopus -b:a 96k -metadata TITLE=%t -metadata ARTIST=%a -metadata COMMENT=%c -metadata track=%n -metadata ALBUM=%m -metadata album_artist=%r %f

I'm assuming, when writing a wave header you can drop the -f -ar and -ac input parameter. Of course all other formats/codecs supported by ffmpeg work with a slightly modified commandline as well.