[Bug]: AV playback fails because transcoding from "lossy to lossless not allowed"
I confirm that:
- I have searched the existing open AND closed issues to see if an issue already exists for the bug I've encountered
- I'm using the latest version (your issue may have been fixed already)
Version
0.64.2
Current Behavior
I have set up a profile that converts the playback to FLAC when asked to during local streaming.
This is necessary because my AV receiver doesn't support some types of formats, for example .ogg, and I need transcoding to be able to play them.
However, in https://github.com/navidrome/navidrome/commit/ae1e0ddb11a3e18660762f6ec7c096732fa77904 came a restriction that it's not allowed anymore. In general it indeed seems counter-intuitive to do this but this breaks valid use cases, too.
This is the code: https://github.com/navidrome/navidrome/blob/3a31f702b529fe3d9843894e024d3a0316c11650/core/stream/decider.go#L262-L266
The silent logging (available only on trace level) makes its debugging even more difficult.
Please, either remove this restriction or at least put a config option to be able to turn it off.
To work it around, I had to rename the output format from flac to flic, and now it works, but it feels a bit silly.
Expected Behavior
Transcoding works and there's no silent fallback either.
Steps To Reproduce
- Create a flac transcoder with ffmpeg
- Call
…/rest/stream?id=<ID>&format=flac&u=…withffprobewhere the<ID>refers to an OGG file - See that the output is still OGG but you made it clear that you wanted flac
Environment
Linux podman, latestHow Navidrome is installed?
Docker
Configuration
Relevant log output
Anything else?
No response
Code of Conduct
- I agree to follow Navidrome's Code of Conduct
Source: navidrome/navidrome