IPTV discussion (1 Viewer)

Stinky

Portal Member
May 31, 2005
27
0
Hoping to get some feedback from some other programmer-types. I've been looking through the MP source code for about a week and I think I have a handle on how everything works. Keep in mind that I'm a C# newb.

MP seems to structure everything around a DirectShow graph that is created based on the type of card;

- TVCaptureDeviceEx creates a new graph using GraphFactory.
- GraphFactory.CreateGraph "Creates a new DirectShow graph for the TV capturecard" based on the info in TVCapture.CardTypes (eg. SinkGraph, DVBGraphBDA, etc). It's up to that graph object to implement the device-specific routines needed to use that interface (StartRecording, StartTimeshifting, TuneChannel etc)

The best way I see to implement IPTV into MP is to create a new card type within the MP source and a new graph class to go along with it. The problem is that there doesn't seem to be anything in DirectShow to work with a UDP stream (perhaps due to MS having their fingers in the IPTV market?). One method that looks interesting is RenderFile(L"C:\\Example.avi", NULL); - you can include a URL as the filename but as far as I can see, it's only for play mode and the URL has to be an HTTP one. See this MSDN page for more details.

I think to be effective, any given IPTV channel has to use the guide and be capable of timeshifting and recording in addition to viewing. Just viewing isn't gonna cut it.

My IPTV comes in on udp 239.x.x.x:94xx - a reserved multicast IP range with the URL and port being specific to the channel. Which brings me to the next issue.. Setting up these channels is going to be cumbersome, something MP is really good at getting past. Keeping that tradition is going to be tough.

Anyone have any feedback? I'd like to keep working on this but it's a bit overwhelming..
 

a.dimuzio

Portal Member
November 2, 2004
32
0
Hi Stinky, I'm working on this subject too.
My IPTV is not even in simple UDP, but in RTSP.

About the DirectShow filter you can try the Elecard NWSource filter, which should be able to play network streams.

I'm actually going in a different direction (the directshow one seems too complex to allow me to have something working in a short time).. I will define a new TVCard, which only supports timeshifting mode and recording.

I will use VLC to transcode the network stream inside a file (converrting from TS to PS).

If you want we can get in touch to discuss this a bit more so that the final solution will be able to support both our IPTV scenarios.
 

haarvik

Portal Member
March 25, 2006
21
0
Raleigh, NC
Just saw your thread. I tested the VLC scenerio a couple years ago, and it worked great! I owned a wireless ISP at the time, and I was streaming DVD's 30 miles away using Multicast. Shame MP doesn't have multicast. I think the uPnP direction is the wrong direction to go for them to stream.

Anyone interested in developing a VLC based client/server architecture for IPTV?
 

Stinky

Portal Member
May 31, 2005
27
0
a.dimuzio, thanks for the tip. I'll check out that filter. I'd be into helping out with your project, too. Lemme know where you're at with your project.

Haarvik, I have some code put together that isn't far off from a client/server setup. Except that it's in Delphi.. :)
 

a.dimuzio

Portal Member
November 2, 2004
32
0
Stinky said:
a.dimuzio, thanks for the tip. I'll check out that filter. I'd be into helping out with your project, too. Lemme know where you're at with your project.

At the beginning I would say.. I defined the new virtual card, but now I'm trying to figure out some details about the timeshifting control in MP.

As soon as I have something I'll let you guys know.

BTW I'm trying to provide the Elecard guys with all the information about rtsp streaming from my STB, since right now their filter seems not to work on my setup. If they arrive to fix it, then we would not even need a virtual card...
 

a.dimuzio

Portal Member
November 2, 2004
32
0
Re: RSTP within MP

antoine75 said:
Hello,

Any news since then ?

Salut Antoine,
no I don't really have news. I'm really busy at work these days so I didn't have time to progress.

The bad news is that apparently managing the size of the timeshift file is not so easy to do as I was expecting.

The elecard filter might be the only and easiest solution.

I hope to have some time in may to work on that, and to have news from the Elecard guys pretty soon.
 

Tikker

Portal Member
June 5, 2006
10
0
I hate bumping oldish threads, but this is exactly what I'm looking to do

My tv here is distributed via multicast as well, and it'd be slick to be able to map a channel in the EPG to the multicast stream~
 

Users who are viewing this thread

Top Bottom