FAQ  •  Register  •  Login

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

<<

n3mmr

DLNA master

Posts: 392

Joined: Tue Jun 15, 2010 8:01 am

Post Wed Jan 01, 2025 4:34 pm

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

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??
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Jan 01, 2025 8:36 pm

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

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.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

n3mmr

DLNA master

Posts: 392

Joined: Tue Jun 15, 2010 8:01 am

Post Wed Jan 01, 2025 8:43 pm

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

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.
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Jan 01, 2025 9:43 pm

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

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.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

n3mmr

DLNA master

Posts: 392

Joined: Tue Jun 15, 2010 8:01 am

Post Thu Jan 02, 2025 8:38 am

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

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?
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

n3mmr

DLNA master

Posts: 392

Joined: Tue Jun 15, 2010 8:01 am

Post Thu Jan 02, 2025 3:28 pm

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

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!
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Jan 02, 2025 4:46 pm

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

Excellent! Thanks for providing your solution.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

n3mmr

DLNA master

Posts: 392

Joined: Tue Jun 15, 2010 8:01 am

Post Sun Jan 05, 2025 10:04 am

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

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?
Serviio 2.3 in a jail on TrueNAS 13 running on an HP N54L w 5*4 TB spinning rust disks.
The media files are on the same machine.
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Jan 05, 2025 8:11 pm

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

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.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 51 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.