Page 1 of 1

Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Wed Jan 01, 2025 4:34 pm
by n3mmr
I am using a very old DENON AVR 1912 with a licensed Serviio 2.3.

I have added the link https://live1.sr.se/p2-flac as a live stream online resource.
It appears to be an OGG-mapping of a FLAC stream.

I know that my DENON AVR can play a FLAC stream produced by Serviio from a CD image.
However the AVR 1912 complains about "stream format error" when trying to play this live stream.
I think I want to reformat the OGG-mapped FLAC to a pure FLAC but I am at this stage merely guessing.

Can Serviio fix this for me, and HOW do I get it to do that??

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Wed Jan 01, 2025 8:36 pm
by atc98092
You can see the transcoding options available with Serviio here: https://www.serviio.org/index.php?optio ... icle&id=24

However, while OGG files can be matched and transcoded, the only available formats to transcode into are lpcm and mp3. You cannot transcode the audio into FLAC.

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Wed Jan 01, 2025 8:43 pm
by n3mmr
atc98092 wrote:You can see the transcoding options available with Serviio here: https://www.serviio.org/index.php?optio ... icle&id=24

However, while OGG files can be matched and transcoded, the only available formats to transcode into are lpcm and mp3. You cannot transcode the audio into FLAC.


I didn't think an OGG-mapped FLAC stream needs to be transcoded, the stream content is FLAC as it is, the "OGG-mapping" is supposedly just a container form.
Radio Sweden calls it "putting the FLAC stream into an OGG stocking".....

Supposedly, for a FILE using OGG-mapping of FLAC audio,

FFMPEG <inputfilename.ogg> -c:a copy <outputfilename.flac>

will extract the raw FLAC audio into a new file. Say people on Reddit. I know, Reddit, right??

How do I get Serviio 2.3 to do that for a live stream???

P. S.
Sorry for asking stupid beginner questions, but I am returning to trying to configure transcoding in Serviiio after not having looked anywhere under the hood since version 1.2 or so.

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Wed Jan 01, 2025 9:43 pm
by atc98092
No problem with questions, that's how we all learn something :)

Yes, ffmpeg can do many things via the command line that is not programmed into Serviio. You are correct, the FLAC audio is being repackaged into the OGG container. But unfortunately Serviio is not designed to extract the FLAC and send it out natively, instead it will transcode it to LPCM or MP3. In theory LPCM should be bit accurate to the original audio, but myself personally prefer to keep audio in its native format if possible.

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Thu Jan 02, 2025 8:38 am
by n3mmr
atc98092 wrote:No problem with questions, that's how we all learn something :)

Yes, ffmpeg can do many things via the command line that is not programmed into Serviio. You are correct, the FLAC audio is being repackaged into the OGG container. But unfortunately Serviio is not designed to extract the FLAC and send it out natively, instead it will transcode it to LPCM or MP3. In theory LPCM should be bit accurate to the original audio, but myself personally prefer to keep audio in its native format if possible.


Ok, so lpcm it is; lpcm is exactly the same content as the flac stream.

Can you give me a hint as to where to put the transcoding instructions?

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Thu Jan 02, 2025 3:28 pm
by n3mmr
n3mmr wrote:
atc98092 wrote:No problem with questions, that's how we all learn something :)

Yes, ffmpeg can do many things via the command line that is not programmed into Serviio. You are correct, the FLAC audio is being repackaged into the OGG container. But unfortunately Serviio is not designed to extract the FLAC and send it out natively, instead it will transcode it to LPCM or MP3. In theory LPCM should be bit accurate to the original audio, but myself personally prefer to keep audio in its native format if possible.


Ok, so lpcm it is; lpcm is exactly the same content as the flac stream.

Can you give me a hint as to where to put the transcoding instructions?


And ALL I had to do was assign the "Denon AVR" profile to the AVR-1912 renderer device!

Works perfectly now!

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Thu Jan 02, 2025 4:46 pm
by atc98092
Excellent! Thanks for providing your solution.

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Sun Jan 05, 2025 10:04 am
by n3mmr
atc98092 wrote:Excellent! Thanks for providing your solution.

I'm still less than happy.
The streams I want to listen to have lots of metadata of a kind that my AVR-1912 is perfectly capable of utilizing but the transcoding seems to erase/drop all that metadata.

Can one design a plugin that would enable a better handling of these live streams?

Re: Live stream, how to deal with OGG-mapping of FLAC stream

PostPosted: Sun Jan 05, 2025 8:11 pm
by atc98092
I know nothing about plug-ins and how they work. I don't know if they can do anything that would improve the stream in that regard. Usually a plug-in is designed to allow access to something that isn't designed to be streamed in this manner, and I'm uncertain if they offer anything to assist with metadata.