Video Bitrates more ISP friendly

General discussions.

Moderator: moderators

Video Bitrates more ISP friendly

Postby jannoke » Sun Oct 16, 2011 2:07 am

The video bitrates are quite hostile at the moment. Is there a possibility to customize them?

Currently there are fixed bitrates like 700kbit and 1000kbit and 5000kbit. 1000kbit is unusable under 1mbit internet connection (700kbit seems too much headroom), so is 2000kbit unsuable under 2mbit internet and 5000kbit under 5mbit since ISP also count packet encapsulation under network speed.

Is it possible to define own custom bitrates for videos so that it could be viewed from 1mbit connection (by setting bitrate to sometihgn like 900kbit). And for 5mbit connection by setting the bitrate to something like 4800kbit.
jannoke
 
Posts: 3
Joined: Wed Oct 12, 2011 12:07 pm

Re: Video Bitrates more ISP friendly

Postby ytechie » Tue Jan 03, 2012 2:40 am

Try playing with the videoPlayer.jsp file.

There is a select dropdown that gets populated by the server. Modify it so that it is a regular select dropdown with the options you want.

Here is the part you have to modify:

Code: Select all
  <select id="maxBitRate" onchange="changeBitRate();" style="float:left;margin-left:0.45em">
        <c:forEach items="${model.bitRates}" var="bitRate">
            <c:choose>
                <c:when test="${bitRate eq model.maxBitRate}">
                    <option selected="selected" value="${bitRate}">${bitRate} Kbps</option>
                </c:when>
                <c:otherwise>
                    <option value="${bitRate}">${bitRate} Kbps</option>
                </c:otherwise>
            </c:choose>
        </c:forEach>
    </select>


Make it look something like this:
Code: Select all
<select id="maxBitRate" onchange="changeBitRate();" style="float:left;margin-left:0.45em"> 
                    <option selected="selected" value="100">100 Kbps</option>
                    <option value="300">300 Kbps</option>
                    <option value="900">900 Kbps</option>
</select>
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Video Bitrates more ISP friendly

Postby malefico » Mon Apr 23, 2012 9:41 am

it's tatty but works fine! I prefer to change the numbers.. but i don't know jsp...
200->150
300->250
500->450...

<select id="maxBitRate" onchange="changeBitRate();" style="float:left;margin-left:0.45em">
<c:forEach items="${model.bitRates}" var="bitRate">
<c:choose>
<c:when test="${bitRate eq model.maxBitRate}">
<option selected="selected" value="${bitRate-50}">${bitRate-50} Kbps</option>
</c:when>
<c:otherwise>
<option value="${bitRate-50}">${bitRate-50} Kbps</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
malefico
 
Posts: 2
Joined: Mon Apr 23, 2012 9:29 am


Return to General

Who is online

Users browsing this forum: No registered users and 39 guests