I'm interested in writing metadata for .opus
files, but all of the posts that I've seen so far are for more mainstream formats such as .ogg, or .mp3. I'm uncertain as to whether ID3 tags work with .opus files, and I can't find any resources that say whether they do or not. I've seen something similar in (How to add metadata to WAV file?).
How can I write metadata such as title, author, and the like to .opus files?
I'm thinking that a libopus
enabled ffmpeg
would be able to do it, but from the documentation it is not obvious to me how to do it.
Solutions using just ffmpeg
are preferred, but any open source Java library should be just fine as well.
Click the File tab. Click Info to view the document properties. To add or change properties, hover your pointer over the property you want to update and enter the information. Note that for some metadata, such as Author, you'll have to right-click on the property and choose Remove or Edit.
An OPUS file is an audio file created in the Opus format (also called “Ogg Opus“), a lossy audio format developed for Internet streaming. It uses both SILK (used by Skype) and CELT (from Xiph.Org) codecs and supports variable bit rates from 6 kb/s to 510 kb/s.
If you are encoding an existing audio file to opus, then it is easy to do using opusenc:
opusenc input.wav out.opus --title "This is a title" --artist "The Beatles"
There are several metadata options
--title title Set track title
--artist artist Set artist or author, may be used multiple times
--album album Set album or collection
--genre genre Set genre, may be used multiple times
--date YYYY-MM-DD Set date of track (YYYY, YYYY-MM, or YYYY-MM-DD)
--comment tag=val Add the given string as an extra comment
This may be used multiple times
--picture file Attach album art (see --help-picture)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With