Page 1 of 1

Change default 1000kbps bit rate?

PostPosted: Wed Aug 15, 2012 1:55 am
by m0ore4ustin391
Does anyone here know how to change the default 1000kbps bit rate to 500kbps so more people can stream movies off my server?

I have searched the forums and have tried all methods mentioned but so far no luck. I have no idea how to edit the source code so any help would be appreciated.

I am running version subsonic v4.6

Re: Change default 1000kbps bit rate?

PostPosted: Wed Aug 15, 2012 11:02 pm
by m0ore4ustin391
bump, anyone got a clue?

Re: Change default 1000kbps bit rate?

PostPosted: Thu Aug 16, 2012 8:08 pm
by nutt318

Re: Change default 1000kbps bit rate?

PostPosted: Thu Aug 16, 2012 11:20 pm
by m0ore4ustin391
nutt318 wrote:http://forum.subsonic.org/forum/viewtopic.php?f=3&t=5192


I have tried all of these methods to fix this but nothing has worked. Did you eve find a fix?

Re: Change default 1000kbps bit rate?

PostPosted: Fri Aug 17, 2012 3:24 am
by m0ore4ustin391
Looks like I found a temporary fix thanks to Drashna. However when you stream a movie the drop down menu will still say 1000kbps when clearly the quality is streaming 500kbps so just ignore what the drop down menu says because the video is streaming at 500kpbs as default ( if you fixed it using the method below).

Drashna's method (re-written)

1 - Open the "videoplayer.jsp" (Default C:\subsonic\jetty\2583\webapp\WEB-INF\jsp\videoplayer.jsp)
2 - Find the first line you come across that says "var maxBitRate"
3 - Directly below that add this line "var maxBitRate = 500;" without quotes. This will set the Max Bitrate for video streaming to 500kbps.
Your finished code should look something like this:

var player;
var position;
var maxBitRate = ${model.maxBitRate};
var maxBitRate = 500;
var timeOffset = ${model.timeOffset};


After you have changed the code make sure you restart subsonic, after you have restarted subsonic stream one of your videos and you will be able to see the quality difference. The video will no longer be in 1000kbps quality even though the drop down menu shows 1000kpbps. I know this is hard to understand but trust me it works. I also did the same method above to the "videoplayer.jsp" file in the "C:\subsonic\jetty\2583\webapp\WEB-INF\jsp\rest" folder. Not sure if this matters but I did it anyways and all my movies stream at 500kbps default (remember even though the drop down menu says 1000kbps it is actually streaming at 500kbps because we modified the code to do so).

Hope this helps you guys and I hope they add this feature to the backbone of the program so it will allow us to set the default and max video streaming bit rate in the settings GUI. Thanks again Drashna for helping me out!