Page 1 of 1

Video Bitrates more ISP friendly

PostPosted: Sun Oct 16, 2011 2:07 am
by jannoke
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.

Re: Video Bitrates more ISP friendly

PostPosted: Tue Jan 03, 2012 2:40 am
by ytechie
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>

Re: Video Bitrates more ISP friendly

PostPosted: Mon Apr 23, 2012 9:41 am
by malefico
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>