Page 1 of 1

Opus container for audio

PostPosted: Sun Jul 25, 2021 5:12 pm
by Qizz
Hi.

A large part of my music library is stored in .opus files.

Here's an example:

  Code:
General
Complete name                            : E:\Storage\Music\varg2™ - wings of desire (i can take anything that's painful, but i can't take a lie) (janushoved, 2020)\1 - As I Close My Eyes.opus
Format                                   : Ogg
File size                                : 5.34 MiB
Duration                                 : 3 min 44 s
Overall bit rate                         : 200 kb/s
Album                                    : Wings Of Desire (I can take anything that's painful, but I can't take a lie)
Album/Performer                          : Varg2™
Track name                               : As I Close My Eyes
Track name/Position                      : 1
Performer                                : Varg2™
Recorded date                            : 2020
Cover                                    : Yes
R128_TRACK_GAIN                          : -1523

Audio
ID                                       : 7379 (0x1CD3)
Format                                   : Opus
Duration                                 : 3 min 44 s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Replay gain                              : -5.95 dB
Replay gain peak                         : 1.000000
Writing library                          : libopus 1.3, libopusenc 0.2.1


These files are not reported by Serviio to Upnp Media Controller.

Is the format supported by Serviio? I understood opus streams were supported in video files, but could find no information about audio files. If not, could you please show how to set the transcode policy (.flac) - I've tried and failed at this.

Thanks

Re: Opus container for audio

PostPosted: Sun Jul 25, 2021 10:24 pm
by atc98092
I wasn't familiar with Opus, so I did a quick search. I see that Opus can be stored in several different types of containers. From the Wiki:

Opus packets are not self-delimiting, but are designed to be used inside a container of some sort which supplies the decoder with each packet's length. Opus was originally specified for encapsulation in Ogg containers, specified as audio/ogg; codecs=opus, and for Ogg Opus files the .opus filename extension is recommended. Opus streams are also supported in Matroska, WebM, MPEG-TS, and MP4.


My guess is Serviio doesn't recognize the .opus container. If you could redo your media into one of the other supported containers (MKV, TS, MP4) they would likely appear. I see numerous converters online, but most of them are for converting into the .opus container, not out of it. I have no files to experiment with myself.