Page 1 of 2

Specify Max Video Bitrate

PostPosted: Mon Jan 10, 2011 7:48 pm
by kapz
Video support is great, as with most people, upload speeds are the main bottleneck. When starting a video the default bitrate is 1000Kb/s. Movies still look great at 400Kb/s for me.

I'd like to request a setting to set the default (which would also be the max that can be selected) video bit-rate.

In the mean time I can just hard code my value in the trancode string.

PostPosted: Tue Jan 11, 2011 1:51 pm
by Concept211
I second the request. It's kind of a pain to have to switch the bitrate for ever video you click on.

On a desktop, 500kb/s is fine for me with hardly any buffering at all, but on my Android phone 500kb/s is still too much. Would need defaults for even lower bitrates.

Thanks Sindre! Will be sending my donation soon! And thanks for continuing to use the logo I designed for you everywhere...it's so cool to see it on my phone, web, etc. :)

PostPosted: Wed Jan 12, 2011 2:59 am
by InShaneee
I would appreciate this as well. The ability to set hard bandwidth limits for music listening has already shown to be an excellent and much needed feature, so being able to do the same thing for the far more bandwidth-hungry video streams would be a lifesaver.

PostPosted: Fri Jan 14, 2011 7:57 pm
by rehatiel
I would also like to request this.

PostPosted: Fri Mar 11, 2011 7:31 pm
by dstauth
Add another to this request. I immediately switch it to 500 for each video. If I can set that as the default, that would be awesome!

PostPosted: Fri Mar 11, 2011 8:49 pm
by kapz
You can set the %bk tag in the transcoding line for ffmpeg to 500000 and that will force all video to 500 kB/s

PostPosted: Fri Mar 11, 2011 11:53 pm
by mrpink84
great tip kapz thanks but it doesn't seem to stick when I mess with the dropdown, even though it seems like removing the %bk tag should completely void that dropdown. Can anybody shine more light on this?

Weird it is sticking but changing the dropdown seems to modify the picture slightly. When I set %bk to 50kbps it looked horrible but there seemed to be minor improvements if I set the drop down to 2000.

PostPosted: Wed Mar 30, 2011 6:43 pm
by squipple
I'd also like to vote for this feature. The ability to set a default video bitrate.

Re: Specify Max Video Bitrate

PostPosted: Tue Dec 20, 2011 7:52 pm
by compcentral
I would also like you to add this feature. In the mean time, I may take a look at the code and see if I can add the feature myself. If successful, I'll post it here.

Re: Specify Max Video Bitrate

PostPosted: Wed Dec 21, 2011 6:12 pm
by eblade
+1. You can specify a maximum bit-rate per user, but that goes to both the video and audio command lines. I have a low-bandwidth user account setup (I hope to give my player an option to specify a user-agent with low-bandwidth, so it can be defined on a per player instance rather than a per-user instance, but w/e), but with audio set to 64kbps, it also drops the video to that rate, which is unacceptably low. I'd like a "max video" and "max audio" bit rate selection per user/per player.

Re: Specify Max Video Bitrate

PostPosted: Sat Mar 24, 2012 12:52 am
by JBDive
I set the Transcoding to %b500000 instead of %bk which should perform well for most output however I will agree some tweak to the drop down would be nice since on my Tablet I have been dropping to 300 at times as the wifi starts buffering sometimes depending on where I am in the house or how busy our network is.

On a side note and the reason I found this thread was on my wife's MacBook there is no option to open in new window or a bit rate drop down with Safari. Not sure if this is a formatting problem or scripting in Safari browser. I loved how my Subsonic looked on her Mac vs. my PC's or tablet. Both the site, menus and video playback looked much better it seemed.

Re: Specify Max Video Bitrate

PostPosted: Tue Mar 27, 2012 3:09 pm
by swocoom
If you are any good with modifying the source code, its in the VideoPlayerController.java file. You can modifiy the default bit rate to whatever you want, and you can also take away options from the menu that tax your server too much. Or, you can PM me and I can send you a modified class file with instructions. The one I am currently using is for version 4.5. Not sure if it would work with 4.6. I have set my default bitrate to 500 and removed anything above 700.

Re: Specify Max Video Bitrate

PostPosted: Wed Aug 01, 2012 5:36 am
by Drashna
Found a dead simple way to change the default bitrate. Open the "videoplayer.jsp" file in "WEB-INF\jsp" and find this line:
Code: Select all
        var maxBitRate = ${model.maxBitRate};
Should be line 21. Now, create a new line *before* that one, making sure it still exists. Now add the following on that new line:
Code: Select all
        var maxBitRate = 300;
Change the 300 to whichever you want, just make sure it matches an entry in the drop down list. The end result here should look something like this:
Code: Select all
        var maxBitRate = 300;
        var maxBitRate = ${model.maxBitRate};
Works on for me.

Re: Specify Max Video Bitrate

PostPosted: Wed Aug 01, 2012 2:25 pm
by nutt318
+1 - This would be a very nice feature.

@Drashna - I tried your suggestion but still getting the default of 1000kbps. I did stop and restart the service and it didnt seem to work. Any ideas?

Re: Specify Max Video Bitrate

PostPosted: Wed Aug 15, 2012 8:41 pm
by m0ore4ustin391
nutt318 wrote:+1 - This would be a very nice feature.

@Drashna - I tried your suggestion but still getting the default of 1000kbps. I did stop and restart the service and it didnt seem to work. Any ideas?


I too have also tried this and it does not work. Anyone have an update solution for this (im using 4.6)?