home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
skip buffering
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mbuzina" data-source="post: 715457" data-attributes="member: 12382"><p>Hi. Great idea to add this feature. May I suggest another optimization for the Online Vids plugin? For me case is as follows:</p><p>Videos are buffered to compensate for NW issues to guarantee smooth playback. Thats why we buffer a part of the stream before we start playing, right?</p><p></p><p>So maybe we can make this calculation a little smarter. Can you read out the MB/sec that a stream has (on VBR use an average value)? If so we sould say buffer the minimum of 2% or x seconds of video (x can be configured, should default to something like 2-3 seconds). </p><p></p><p>Or even better, add another option for maximum bandwith, resulting in the following calculation:</p><p></p><p>br = Bitrate of the video</p><p>size = total size of video</p><p>size/br = duration of video</p><p>x = config option, how many seconds of video should be buffered</p><p>y = config option, what is the download speed of your internet connection</p><p></p><p>if br>y then</p><p> buffer = size - ((size/br + x)*y); // We need to download most of the video because bit rate is higher than our download speed. </p><p> // Assume that we can start playing as soon as the leftover time is enough to download the rest and add the buffer seconds to that</p><p>else</p><p> buffer = min(size/50,br*x); // Buffer 2% or configured number of seconds, whichever is the lowest</p></blockquote><p></p>
[QUOTE="mbuzina, post: 715457, member: 12382"] Hi. Great idea to add this feature. May I suggest another optimization for the Online Vids plugin? For me case is as follows: Videos are buffered to compensate for NW issues to guarantee smooth playback. Thats why we buffer a part of the stream before we start playing, right? So maybe we can make this calculation a little smarter. Can you read out the MB/sec that a stream has (on VBR use an average value)? If so we sould say buffer the minimum of 2% or x seconds of video (x can be configured, should default to something like 2-3 seconds). Or even better, add another option for maximum bandwith, resulting in the following calculation: br = Bitrate of the video size = total size of video size/br = duration of video x = config option, how many seconds of video should be buffered y = config option, what is the download speed of your internet connection if br>y then buffer = size - ((size/br + x)*y); // We need to download most of the video because bit rate is higher than our download speed. // Assume that we can start playing as soon as the leftover time is enough to download the rest and add the buffer seconds to that else buffer = min(size/50,br*x); // Buffer 2% or configured number of seconds, whichever is the lowest [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
skip buffering
Contact us
RSS
Top
Bottom