SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-18-2016, 03:41 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
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
Reply With Quote
  #2  
Old 12-18-2016, 07:12 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
Google
Founder of SageTV
Reply With Quote
  #3  
Old 12-18-2016, 07:26 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
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:
Originally Posted by Narflex View Post
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).
Reply With Quote
  #4  
Old 12-20-2016, 12:28 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
Google
Founder of SageTV
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.