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
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
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="Stepko" data-source="post: 729069" data-attributes="member: 57342"><p><strong>AW: Re: IPTV/DVB-IP in MP: Support for http, rtp and udp</strong></p><p></p><p>Hi georgius and velis,</p><p></p><p>after reading tourettes post and some further reading in msdn I got an idea for a new approach of the filter. All the time I thought that "FillBuffer" is called <u>periodically </u>in the default implementation. But in reality it is called <u>immediately </u>after an IMediaSample is available, and that happens in almost zero time. So when the execution of "FillBiffer" is finished it gets called again immediately.</p><p>The only thing the filter has to wait for is the network traffic. Keeping that in mind I wrote a version that is as simple as possible: No extra thread, no extra buffer, no sleep(..), the fill loop for udp is only 6 lines long.</p><p></p><p>The winsock is set to blocking mode. recv blocks until data is available. Once a packet is received the data is copied directly into IMediaSample and the IMediaSample is sent down the graph immediately.</p><p>For rtp all data validation and memmoves are also done directly on the IMediaSample.</p><p></p><p>I just did a quick stress test: Recorded one channel and watched another at the same time. During 2 hours there was only one error in the stream, and that looked like a "real" transmission error. Because my provider uses rtp I could use the rtp sequence numbers to analyze the stream.</p><p></p><p>It would be very good if you could give this version a try, especially on a hd channel (unfortunately I don't have hd). This version works with udp and rtp.</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p>Stepko</p></blockquote><p></p>
[QUOTE="Stepko, post: 729069, member: 57342"] [b]AW: Re: IPTV/DVB-IP in MP: Support for http, rtp and udp[/b] Hi georgius and velis, after reading tourettes post and some further reading in msdn I got an idea for a new approach of the filter. All the time I thought that "FillBuffer" is called [U]periodically [/U]in the default implementation. But in reality it is called [U]immediately [/U]after an IMediaSample is available, and that happens in almost zero time. So when the execution of "FillBiffer" is finished it gets called again immediately. The only thing the filter has to wait for is the network traffic. Keeping that in mind I wrote a version that is as simple as possible: No extra thread, no extra buffer, no sleep(..), the fill loop for udp is only 6 lines long. The winsock is set to blocking mode. recv blocks until data is available. Once a packet is received the data is copied directly into IMediaSample and the IMediaSample is sent down the graph immediately. For rtp all data validation and memmoves are also done directly on the IMediaSample. I just did a quick stress test: Recorded one channel and watched another at the same time. During 2 hours there was only one error in the stream, and that looked like a "real" transmission error. Because my provider uses rtp I could use the rtp sequence numbers to analyze the stream. It would be very good if you could give this version a try, especially on a hd channel (unfortunately I don't have hd). This version works with udp and rtp. :thx: Stepko [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
Contact us
RSS
Top
Bottom