SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #201  
Old 10-10-2012, 05:28 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by LehighBri View Post
And is there a way for to spit out a result that is a .m3u8 file?
I did ask that a few times from jreichen... But usually you can simply launch the URL from the video player or even just let the system decide how to handle it.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #202  
Old 10-10-2012, 05:46 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by Fonceur View Post
I did ask that a few times from jreichen... But usually you can simply launch the URL from the video player or even just let the system decide how to handle it.
The problem with the current approach is when I use that URL in XBMC, it only treats it as HTTP live streaming if it has a .m3u8 extension... the mimetype unfortunately isn't good enough (XBMC checks for mimetype AND extension). Is there a way you can perhaps add an additional parameter to the URL that is optional that allows me to specify what extension to output the results in (e.g. two that come to mind are m3u8 and perhaps strm)? That would be a HUGE help in terms of supporting some of this in the XBMC addon!!!
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #203  
Old 10-10-2012, 11:18 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by LehighBri View Post
The problem with the current approach is when I use that URL in XBMC, it only treats it as HTTP live streaming if it has a .m3u8 extension...
I think jreichen mentioned that you could actually add the .m3u8 extension and that would work, but I don't think I ever tried, as I got it to work differently...

EDIT: Never mind, that didn't work...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad

Last edited by Fonceur; 10-10-2012 at 07:01 PM.
Reply With Quote
  #204  
Old 10-10-2012, 11:33 AM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
That does not appear to work. You just get a file not found error.
Reply With Quote
  #205  
Old 10-10-2012, 04:33 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
That does not appear to work. You just get a file not found error.
Was afraid it would do that...

Try version 1.3.6.56 and see if it helps.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #206  
Old 10-10-2012, 06:10 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Hmmm....I'm not seeing an update available in Sage.
Reply With Quote
  #207  
Old 10-10-2012, 06:24 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
Hmmm....I'm not seeing an update available in Sage.
Oops, forgot I had to confirm the submission...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #208  
Old 10-10-2012, 06:40 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
I just tried:
http://xxx.xxx.xxx.xxx:8080/stream/H...FileId=2823754

I still got the not found error.
Reply With Quote
  #209  
Old 10-10-2012, 06:59 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
I just tried
Don't use the .m3u8 in the query, forget that experiment.
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #210  
Old 10-10-2012, 07:02 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Ahh. Okay I'll try the normal link in XBMC now.
Reply With Quote
  #211  
Old 10-10-2012, 07:17 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker

Still no go. What change did you make? Should the url return a .m38u file now?
Reply With Quote
  #212  
Old 10-10-2012, 07:42 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post

Still no go. What change did you make? Should the url return a .m38u file now?
I added:

resp.setHeader("Content-Disposition","inline;filename=" + mediaFileId + ".m3u8");

to the "HttpServletResponse resp", which should be the way to send the filename...

Line 116 of:

http://sageplugins.cvs.sourceforge.n....8&view=markup
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad

Last edited by Fonceur; 10-10-2012 at 07:45 PM.
Reply With Quote
  #213  
Old 10-10-2012, 08:02 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
A new version should be showing up soon, see if it helps. I replaced the "inline" by "attachment", which might be more appropriate, but I'm mostly guessing...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #214  
Old 10-10-2012, 08:07 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Thanks for the attempts. I'll try it out and report back.
Reply With Quote
  #215  
Old 10-10-2012, 08:25 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
No luck yet. I may need to dig further into XBMC. I am getting the .m3u8 file from the link.
Reply With Quote
  #216  
Old 10-10-2012, 08:32 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
No luck yet. I may need to dig further into XBMC. I am getting the .m3u8 file from the link.
Does it support variant playlist or only a single bit rate? Try appending:

&Quality=440
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #217  
Old 10-10-2012, 08:47 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
It supports a more than one stream, it just picks the first one in the list.

This stream, for example, works fine:
http://iphone-streaming.ustream.tv/u.../playlist.m3u8

A main difference I see in the content is the working file has .m3u8 on the stream names. The sage generated playlist does not.

Above playlist:
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=895331,CODECS="avc1.77.30, mp4a.40.2",RESOLUTION=640x360
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_8/iphone/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1028509,CODECS="avc1.77.31, mp4a.40.2",RESOLUTION=854x480
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_7/iphone/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=582586,CODECS="avc1.77.13, mp4a.40.2",RESOLUTION=320x180
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_9/iphone/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=579810,CODECS="avc1.77.21, mp4a.40.2",RESOLUTION=426x240
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_13/iphone/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=444780,CODECS="avc1.77.13, mp4a.40.2",RESOLUTION=320x180
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_10/iphone/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=435802,CODECS="avc1.77.21, mp4a.40.2",RESOLUTION=480x270
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_11/iphone/playlist.m3u8

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=218542,CODECS="avc1.77.12, mp4a.40.2",RESOLUTION=240x134
http://iphone-streaming.ustream.tv/wow09/uhls/1524/streams/live_12/iphone/playlist.m3u8
Sage generated playlist:
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440000
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=34656a42-73b4-4e14-99c0-d8289d688461&Quality=440
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=840000
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=34656a42-73b4-4e14-99c0-d8289d688461&Quality=840
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1240000
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=34656a42-73b4-4e14-99c0-d8289d688461&Quality=1240
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=34656a42-73b4-4e14-99c0-d8289d688461&Quality=240
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=34656a42-73b4-4e14-99c0-d8289d688461&Quality=150

Last edited by kricker; 10-10-2012 at 09:36 PM.
Reply With Quote
  #218  
Old 10-10-2012, 09:08 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
A main difference I see in the content is the working file has .m3u8 on the stream names. The sage generated playlist does not.
Each individual stream would also result in an actual .m3u8 extension, even if it's not shown. So I don't know if it's really the actual issue...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #219  
Old 10-10-2012, 09:31 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
I have found if I use one of the links directly it works. Such as:
Code:
http://xxx.xxx.xxx.xxx:8080/stream/HTTPLiveStreamingPlaylist?MediaFileId=2823754&ConversionId=2e3ca6a8-3582-42f5-8f0b-8af6cbfdf3b4&Quality=440
I wonder why it can't parse that out from the playlist properly.....

Last edited by kricker; 10-10-2012 at 09:35 PM.
Reply With Quote
  #220  
Old 10-11-2012, 05:48 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by kricker View Post
I have found if I use one of the links directly it works.
For the ConversionId, you can pretty much provide anything you want. In principle you want some kind of unique identifier, like say:

Code:
UUID.randomUUID()
While the allowed bit rates are:

150, 240, 440, 840, 1240, 1840

You can also optionally provide Height and Width.

Quote:
I wonder why it can't parse that out from the playlist properly.....
Probably a good question to ask the XBMC people...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
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
Plugin: Mobile Web Interface Version 2 jreichen SageTV v7 Customizations 411 02-28-2021 10:05 PM
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
FAQ: Mobile Web Interface V2 iOS Streaming jreichen SageTV v7 Customizations 3 11-07-2010 08:28 PM
Wanted: Developer for Web Interface Mobile Brent SageTV Customizations 249 02-09-2009 11:21 PM
Web User Interface + Secure = Broken Streaming Function jmoney579 SageTV Customizations 1 05-28-2008 01:51 AM


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


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