Add "always send maxBitRate" option

Feature description

Gonic will skip transcoding entirely if the “maxBitRate” param is the same size as the or greater than the original file. See this commit: feat(subsonic): skip transcoding if request bitrate is the same as tr… · sentriz/gonic@f41dd08 · GitHub

From my understanding, the way it currently works, if the maximum bitrate in Symfonium is set to “unlimited,” the client simply doesn’t pass the maxBitRate param.

Either getting the original bitrate, or picking an absurdly high number like 10000 should work.

Problem solved

I don’t think any other servers behave this way, so it would primarily be a fix for how Gonic interprets requests.

Brought benefits

This would allow streaming of the original quality FLAC on Wifi, while retaining a data-saving transcode on mobile, rather than always transcoding if this is the server behavior.

Other application solutions

According to the developer, DSub does currently do this. See this issue: Allow Flexible transcode · Issue #241 · sentriz/gonic · GitHub

Device type

Phone

I searched existing feature requests

on

Gonic is part of OpenSubsonic and should work as the others :wink: He have a very personal handling of transcoding that I won’t workaround just for it.

There’s a new clean API in OpenSubsonic for better transcoding, ask him to support it, it will be automatically used if available.

Can you pass “format=raw” to the stream endpoint, then? That is part of the OpenSubsonic spec since 1.9.0: stream | OpenSubsonic

Enable the option ignore server transcoding in the provider settings.

1 Like

That works perfect, thank you! Sorry to have taken up your time