|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
How to capture live stream?
If I wish to support watching live tv in my IOS app how do I go about capturing the live stream? I see the CaptureDeviceInputAPI but don't see anything that I think will help. Has anyone done this before or know where to look.
Thanks for any help! David |
#2
|
||||
|
||||
You'd need to do 2 things:
1. Get SageTV to start recording that channel so you have access to viewing it. You *could* just tell it to do a ManualRecording, but that'll leave that artifact around....but without doing a real MiniClient, it gets much trickier to do it cleanly. 2. You can then pull the stream from the MediaServer...however, I'm not sure iOS will playback the stream in the normal format it is recorded in (this would be the same way you stream anything from SageTV).
__________________
Jeffrey Kardatzke Founder of SageTV |
#3
|
||||
|
||||
I can manage starting the recording and stopping and erasing it when its time to stop. I am unclear how to access the "stream from the MediaServer" What I would like to do is get access to the h.264 stream from the hdpvr then send it to ffmpeg for hls streaming/encoding. If I can get to this point I think I can get it working on the IOS side.
David Quote:
|
#4
|
||||
|
||||
If you look at sage.MediaServer.java you can see the protocol in there. There's also an FFMPEG reader in libavformat/stv.c which reads from that server protocol as well. That'd be the easiest way to get access to it is to use that protocol (SageTV's native code reads from the HDPVR, so you can't really get access into that directly from an outside source).
There is also an HLS server already in SageTV...although no guarantees on how well it will work for you, there were various issues with it and was never really part of production code. It runs on port 31099 (same as miniclient)...the socket listener is in MiniClientSageRenderer.java and the handler is in HTTPLSServer.java. I know I used it many years ago to watch video from SageTV remotely on an iPhone. (when we were working on an iPhone client, which was abandoned)
__________________
Jeffrey Kardatzke Founder of SageTV |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Live stream with hauppage hd pvr | amiljacobs | SageTV Software | 8 | 08-03-2009 11:43 AM |
HD-PVR Live Stream? | CiXel | Hardware Support | 8 | 07-19-2008 01:24 AM |
Best way to trim/hide CC stream on firewire capture? | Bryann | SageTV Software | 4 | 09-16-2006 02:17 AM |
SageTV Client - Stream Live TV | needbb | SageTV Software | 17 | 01-17-2006 11:12 AM |
Can SageTV stream live TV? | bahamian | SageTV Software | 1 | 03-25-2005 04:42 PM |