Hello, I am new to using opus but so far I really am loving it. At 16kbps spoken content sounds fabulous. I am using opusenc on 64-bit linux - mostly with flac input. The one thing I can't figure out how to do is add album art. I tried passing the vorbis way of adding a metadata_block_picture comment field to opusenc but it complained about the length. I can't seem to find any application like vorbiscomment for opus that would let me do it after the encode. Does such a utility exist? I really need it to be CLI and work in linux, this is being scripted for an audio hosting server. Thanks, Alice
On 12 February 2014 13:02, Alice Wonder <alicewonder at shastaherps.org> wrote:> Hello, > > I am new to using opus but so far I really am loving it. At 16kbps > spoken content sounds fabulous. > > I am using opusenc on 64-bit linux - mostly with flac input. > > The one thing I can't figure out how to do is add album art. I tried > passing the vorbis way of adding a metadata_block_picture comment field > to opusenc but it complained about the length. > > I can't seem to find any application like vorbiscomment for opus that > would let me do it after the encode. > > Does such a utility exist? I really need it to be CLI and work in linux, > this is being scripted for an audio hosting server.For opus ogg encapsulation both liboggz and vorbiscomment could probably be modified to support modifying the opus comment block too, but a while since I've looked at either so can't say immediately whether it's trivial or would require a bit of work. Can check, but would be later in the week. -- imalone http://ibmalone.blogspot.co.uk
On Wed, 2014-02-12 at 14:29 +0000, Ian Malone wrote:> On 12 February 2014 13:02, Alice Wonder <alicewonder at shastaherps.org> wrote: > > Hello, > > > > I am new to using opus but so far I really am loving it. At 16kbps > > spoken content sounds fabulous. > > > > I am using opusenc on 64-bit linux - mostly with flac input. > > > > The one thing I can't figure out how to do is add album art. I tried > > passing the vorbis way of adding a metadata_block_picture comment field > > to opusenc but it complained about the length. > > > > I can't seem to find any application like vorbiscomment for opus that > > would let me do it after the encode. > > > > Does such a utility exist? I really need it to be CLI and work in linux, > > this is being scripted for an audio hosting server. > > For opus ogg encapsulation both liboggz and vorbiscomment could > probably be modified to support modifying the opus comment block too, > but a while since I've looked at either so can't say immediately > whether it's trivial or would require a bit of work. Can check, but > would be later in the week. >I found a solution. If I add the metadata_block_picture to the flac file I use as input, opusenc copies it over and at least in totem (linux movie player) it displays when playing the Opus file.
On 12 February 2014 14:29, Ian Malone <ibmalone at gmail.com> wrote:> On 12 February 2014 13:02, Alice Wonder <alicewonder at shastaherps.org> wrote: >> Hello, >> >> I am new to using opus but so far I really am loving it. At 16kbps >> spoken content sounds fabulous. >> >> I am using opusenc on 64-bit linux - mostly with flac input. >> >> The one thing I can't figure out how to do is add album art. I tried >> passing the vorbis way of adding a metadata_block_picture comment field >> to opusenc but it complained about the length. >> >> I can't seem to find any application like vorbiscomment for opus that >> would let me do it after the encode. >> >> Does such a utility exist? I really need it to be CLI and work in linux, >> this is being scripted for an audio hosting server. > > For opus ogg encapsulation both liboggz and vorbiscomment could > probably be modified to support modifying the opus comment block too, > but a while since I've looked at either so can't say immediately > whether it's trivial or would require a bit of work. Can check, but > would be later in the week. >... vorbiscomment from vorbis tools would need modification to handle editing Opus file comments and it would make more sense for opus-tools to include an equivalent than try to add the functionality to vorbis-tools. liboggz last release does not support Opus (liboggz 1.1.1, 2010), liboggz in git does already have support, https://www.xiph.org/oggz/ but appears to have a problem with producing "negative or zero granulepos" (possibly rules for the Opus in Ogg encapsulation not obeyed currently). In the meantime the best solution is probably to use either the one you've found or Timothy's suggestion, simply use opusenc to put it there in the first place (though requires the original flac/wav). -- imalone http://ibmalone.blogspot.co.uk