xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
212 stars 78 forks source link

How to modify metadata without re-encoding? #72

Open Zapeth opened 2 years ago

Zapeth commented 2 years ago

As far as I can tell, the only way to modify metadata with opus tools is with opusenc during encoding? It doesn't support opus files as input, and opusinfo only displays information.

If there really is no official tool for this, I think an equivalent to metaflac or vorbiscomment would be needed in opus tools.

mark4o commented 2 years ago

There is no official tag editing tool in opus-tools, but other tools that support tag editing often work with Opus files. An official tool may be added to opus-tools in the future.

Zapeth commented 2 years ago

Thanks for the info, in case someone else is looking for an open source tool, here are two mentioned https://github.com/xiph/opus-tools/issues/48 (opustags worked fine for me).

You can close this issue again if you want (the above mentioned issue is similar to this one, I just missed it when I created this issue).

petterreinholdtsen commented 1 year ago

[Zapeth]

If there really is no official tool for this, I think an equivalent to metaflac or vorbiscomment would be needed in opus tools.

What do you mean by 'official'? According to <URL: https://stackoverflow.com/questions/49496995/how-can-i-add-metadata-in-opus-files > it can be done using

ffmpeg -i myfile.opus -metadata FOO="Bar Baz" -codec copy myfile-withmeta.opus -- Happy hacking Petter Reinholdtsen

Zapeth commented 1 year ago

What do you mean by 'official'?

That its developed/maintained by the people who created the format (in this case Xiph.Org Foundation), and ideally is bundled with the other set of tools to work with the format (I already gave metaflac and vorbiscomment as examples).

halcyonseeker commented 1 year ago

I'd also be interested in something like this, ffmpeg's opus encoder currently doesn't support embedding images and I've had opustags fail on files with embedded thumbnails. Opuscomment does work well, however it isn't packaged on a lot of distros and it would be more convenient if it or something like it were to be bundled with opus-tools.