Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev
devel/rtp: multiple IPTV streams, same port-no
 

Index | Next | Previous | View Flat


nok at kirkeby

Apr 28, 2012, 2:09 PM


Views: 619
Permalink
devel/rtp: multiple IPTV streams, same port-no

Hi

I was trying to figure out why devel/rtp didn't work for me and found a
major (if you're struck by it) flaw in the multicast handling in MythTV.
The problem is that my provider delivers streams like
udp://222.111.222.xx:2000. That is for all streams the port-no is the same.
In Linux, basically only the port-no differentiates the various
udp-streams. Thus I noticed a strange phenomena in MythTV: two iptv-tuners
recording two different streams but all data goes to the first stream !

I made a small test-program: Open two sockets, join two different multicast
streams (udp://222.111.222.123:2000 and udp://222.111.222.124:2000). I
noticed the bind() for the second socket failed. When I read from the
sockets, only the first socket has any data but the data was a merge from
both streams ! After some digging I found out that apparently you can only
have one common socket for all streams and should use sockopt IP_PKTINFO to
find the multicast group the data is for.

I'm not quite into the class-relations in MythTV yet but are trying to
figure out how to handle this. Could anybody responsible for the devel/rtp
branch please comment on this ? Whether this is "just" a patch or a major
rewrite ?

What's strikes me is that appearently I only had minor problems whether the
"old" IPTV code and that code didn't use IP_PKTINFO either.

Subject User Time
devel/rtp: multiple IPTV streams, same port-no nok at kirkeby Apr 28, 2012, 2:09 PM
    Re: devel/rtp: multiple IPTV streams, same port-no danielk at cuymedia Apr 28, 2012, 6:07 PM
        Re: devel/rtp: multiple IPTV streams, same port-no jyavenard at gmail Apr 28, 2012, 6:23 PM
        Re: devel/rtp: multiple IPTV streams, same port-no nok at kirkeby Apr 28, 2012, 11:51 PM
    Re: devel/rtp: multiple IPTV streams, same port-no nok at kirkeby Apr 29, 2012, 4:46 AM
    Re: devel/rtp: multiple IPTV streams, same port-no kkuphal at gmail Apr 30, 2012, 8:13 AM
    Re: devel/rtp: multiple IPTV streams, same port-no nok at kirkeby May 1, 2012, 12:07 AM
    Re: devel/rtp: multiple IPTV streams, same port-no danielk at cuymedia May 11, 2012, 12:38 PM
    Re: devel/rtp: multiple IPTV streams, same port-no james.dutton at gmail May 14, 2012, 2:34 PM
    Re: devel/rtp: multiple IPTV streams, same port-no danielk at cuymedia May 14, 2012, 3:07 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.