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
Development
General Development (no feature request here!)
Improving zapping for network setups.
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="joboehl" data-source="post: 105050" data-attributes="member: 23490"><p>Hi, </p><p></p><p>I've being doing some testings with the TVServer and plug-in in order to help improving the zapping mechanism. Hope some ideas can popup and maybe help frodo in this area. </p><p></p><p><strong>First, the setup used:</strong></p><p></p><p>Server - Sempron 2600+, 512Mb Ram, 100Mpbs - PVR500 + MCE Blaster. </p><p>Client - AMD X2 3800, 1Gb Ram, 1Gbps LAN. </p><p></p><p><strong>The testing:</strong></p><p></p><p>I've timed 10 channel changes from the time the user clicked the Channel in the miniguide and the time the first image from the selected channel appeared in the screen. </p><p></p><p>First code. SVN 12640 - Average time: 5.45 seconds. </p><p>Second code: Custom - Average time: 4.74 seconds.</p><p></p><p><strong></strong></p><p><strong>The code changes: </strong></p><p><strong></strong></p><p>What the second codes does differently: The second code have some modifications that force the client to seek a specific position in the stream. This position is retrieved as being the end-of-stream at the server, and not at the client. This kills the local buffer (i've timed it about 3 seconds behind the server stream). So why the second code is not 3 seconds faster than the first code?</p><p></p><p>Well, MPClient code tries not to position the stream at server trough the network because this is very expensive. Since the second code forces the positioning, it pays the price for doing it. You can add a couple of seconds positioning the stream trough the network, and that time can vary depending on the network conditions. </p><p></p><p><strong>Initial findings: </strong></p><p></p><p>- Forcing the positioning can help, but not that much and will have it's drawnbacks (zapping speed will depend on network conditions, time can vary and etc). </p><p>- The great benefit of the test was to show how much the buffer affects the zapping behavior. </p><p>- Most of the time the user waits at the client is not for the actual channel change, but watching what remains in the buffer (3~4 seconds). </p><p></p><p>The buffer is there for a reason, it helps in case of network bandwidth problems and etc. </p><p></p><p><strong>Some initial ideas:</strong></p><p></p><p>- To have a configurable buffer size (at the client), the user could customize the Plug-in behavior. So dedicated 1Gbps machines could run with very little buffer (close to noting), while Wireless machines could buffer more to avoid problems. Still could not find this buffer so I can't do much testing with it, but will try to. </p><p></p><p>- The same way, the amount of time MPPlug-In waits for doing a SeektoEnd (SeekAbsolute) could be configurable. This way Gbps machines could be less tolerant and use the seekabsolute more often (Ex: any delay greater then 5 seconds) and WLAN could allow for longer delays without repositioning the stream,and those avoiding some freezed screens. </p><p></p><p>BTW- While doing a Seek in the stream the TV image is freezed, that's why some user might want to avoid, specially in slow networks where this image could be freezed by quite sometime. </p><p></p><p>Well, hope I could give some food for thoughts.</p></blockquote><p></p>
[QUOTE="joboehl, post: 105050, member: 23490"] Hi, I've being doing some testings with the TVServer and plug-in in order to help improving the zapping mechanism. Hope some ideas can popup and maybe help frodo in this area. [B]First, the setup used:[/B] Server - Sempron 2600+, 512Mb Ram, 100Mpbs - PVR500 + MCE Blaster. Client - AMD X2 3800, 1Gb Ram, 1Gbps LAN. [B]The testing:[/B] I've timed 10 channel changes from the time the user clicked the Channel in the miniguide and the time the first image from the selected channel appeared in the screen. First code. SVN 12640 - Average time: 5.45 seconds. Second code: Custom - Average time: 4.74 seconds. [B] The code changes: [/B] What the second codes does differently: The second code have some modifications that force the client to seek a specific position in the stream. This position is retrieved as being the end-of-stream at the server, and not at the client. This kills the local buffer (i've timed it about 3 seconds behind the server stream). So why the second code is not 3 seconds faster than the first code? Well, MPClient code tries not to position the stream at server trough the network because this is very expensive. Since the second code forces the positioning, it pays the price for doing it. You can add a couple of seconds positioning the stream trough the network, and that time can vary depending on the network conditions. [B]Initial findings: [/B] - Forcing the positioning can help, but not that much and will have it's drawnbacks (zapping speed will depend on network conditions, time can vary and etc). - The great benefit of the test was to show how much the buffer affects the zapping behavior. - Most of the time the user waits at the client is not for the actual channel change, but watching what remains in the buffer (3~4 seconds). The buffer is there for a reason, it helps in case of network bandwidth problems and etc. [B]Some initial ideas:[/B] - To have a configurable buffer size (at the client), the user could customize the Plug-in behavior. So dedicated 1Gbps machines could run with very little buffer (close to noting), while Wireless machines could buffer more to avoid problems. Still could not find this buffer so I can't do much testing with it, but will try to. - The same way, the amount of time MPPlug-In waits for doing a SeektoEnd (SeekAbsolute) could be configurable. This way Gbps machines could be less tolerant and use the seekabsolute more often (Ex: any delay greater then 5 seconds) and WLAN could allow for longer delays without repositioning the stream,and those avoiding some freezed screens. BTW- While doing a Seek in the stream the TV image is freezed, that's why some user might want to avoid, specially in slow networks where this image could be freezed by quite sometime. Well, hope I could give some food for thoughts. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Improving zapping for network setups.
Contact us
RSS
Top
Bottom