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

Mailing List Archive: MythTV: Dev

Adding "HTTP" as source to the IPTV Recorder?

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


morten at grouleff

Dec 11, 2011, 3:22 PM

Post #1 of 2 (979 views)
Permalink
Adding "HTTP" as source to the IPTV Recorder?

I've started looking at the "iptv" recorder, trying to figure out if I could add support for streaming a h264 TS over
http. What I would like to achieve is the possibility to write a list of http-urls in the m3u file and then use some
kind of HttpSource for the transport streams. I hope this would be very similar to the "UDP" streaming inputs.

"ffplay" is able to play the stream and reports this when starting my test-stream:

> Input #0, mpegts, from 'http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx':
> Duration: N/A, start: 16515.528733, bitrate: 256 kb/s
> Program 1
> Stream #0.0[0x79]: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
> Stream #0.1[0x6f]: Video: h264, yuv420p, 640x576 [PAR 8:5 DAR 16:9], 25 tbr, 90k tbn, 50 tbc

Any thoughts on this?

Thanks for all your work on MythTV, it's amazing!

Regards,
Morten Grouleff
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-dev


dekarl at spaetfruehstuecken

Dec 12, 2011, 12:17 AM

Post #2 of 2 (954 views)
Permalink
Re: Adding "HTTP" as source to the IPTV Recorder? [In reply to]

On 12.12.2011 00:22, Morten Grouleff wrote:
> I've started looking at the "iptv" recorder, trying to figure out if I could add support for streaming a h264 TS over
> http. What I would like to achieve is the possibility to write a list of http-urls in the m3u file and then use some
> kind of HttpSource for the transport streams. I hope this would be very similar to the "UDP" streaming inputs.

I'm looking for such a solution, too. I'll just write down what I have
researched in the hopes it will give you a head start.


The interesting question is, how do you handle that some URLs deliver
just an endless elementary stream (e.g. shoutcast radio) and others
deliver a playlist of playlists with a chunked transport stream (e.g.
Apple Live Streaming)

The format description, including the variant playlists, etc, is
available from Apple here:
http://developer.apple.com/resources/http-streaming/

Back when I was looking into writing it myself I started a patch to
support recording from shoutcast servers which could be a starting
point for you. At least it shows how to add a new kind of URL.
http://code.mythtv.org/trac/ticket/5928

btw, there is a third variant where a transport stream is delivered as
endless stream via http, too.

btw², for http live streaming it is legal to *not* have a PAT/PMT, there
is a patch for generating them dynamically for the firewire recorder
which might be useful to support that variant of stream.
http://code.mythtv.org/trac/ticket/7205

> "ffplay" is able to play the stream and reports this when starting my test-stream:
>
>> Input #0, mpegts, from 'http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx':
>> Duration: N/A, start: 16515.528733, bitrate: 256 kb/s
>> Program 1
>> Stream #0.0[0x79]: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
>> Stream #0.1[0x6f]: Video: h264, yuv420p, 640x576 [PAR 8:5 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
>
> Any thoughts on this?

You can use NasaTV as example so others can look at it, too. It even
comes in HD :-)

Regards,
Karl
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


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