jeffvli / sonixd

A full-featured Subsonic/Jellyfin compatible desktop music player
GNU General Public License v3.0
1.87k stars 73 forks source link

transcode bitrate configurable for subsonic server #375

Open amazingfate opened 2 years ago

amazingfate commented 2 years ago

Is your feature request related to a problem? Please describe. I'm connecting to a gonic server (go implemented subsonic server). The flac is always transcoded to 128 kbps mp3. I can see the server log: 2022/08/25 03:10:14 response 200 for /rest/stream.view?id=tr-792&u=admin&s=xxxxxxxxxxxxxxxxxxxo&t=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&v=1.13.0&c=sonixd I also ultrasonic as client on android, which has a setting of MaxBitRate. Here is the log when ultrosunic is playing music: 2022/08/24 11:02:31 response 200 for /rest/stream.view?id=tr-792&maxBitRate=320&u=admin&c=Ultrasonic&f=json&v=1.15.0&t=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&s=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx It seems that there is a parameter maxBitRate in api stream according to the subsonic api document Describe the solution you'd like We can configure the bitrate to transcode just like ultrasonic.