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
  #1  
Old 08-30-2012, 08:16 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
[XBMC addon] SageTV

For those of you who haven't seen or aren't aware, kricker and I have been working on a new addon for XBMC that allows you to browse your SageTV recordings, watch a recording, and perform other actions on a recording such as deleting it.

We have basic functionality working for now, but for those of you who love XBMC's frontend experience and still want to use SageTV as a backend, this plugin is perfect for you. Note that we're just focusing on accessing recordings and integrating a nice playback experience... we are NOT pursuing any kind of EPG integration at the moment.

See the XBMC thread below for further details... (and we're definitely open to suggestions on how to continue to improve it!)

http://forum.xbmc.org/showthread.php?tid=138838
__________________
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
  #2  
Old 08-30-2012, 08:23 PM
mdnttoker mdnttoker is offline
Sage Aficionado
 
Join Date: Aug 2006
Posts: 446
sounds awesome...will have to check it out...
Reply With Quote
  #3  
Old 08-31-2012, 06:18 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Screenshots

And here are some sample screenshots of current functionality for your viewing pleasure.
Attached Images
File Type: jpg list of shows.JPG (71.6 KB, 1507 views)
File Type: jpg list of episodes.JPG (57.5 KB, 1231 views)
File Type: jpg show information.JPG (51.7 KB, 1176 views)
__________________
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
  #4  
Old 08-31-2012, 08:40 AM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Nice job.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #5  
Old 08-31-2012, 03:55 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
How does this work with shows currently being recorded by Sage? Will XBMC only play up to the time that you started watching? For example, if you start watching a 3 hour sporting event one hour after the game starts then will playback stop after 1 hour?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #6  
Old 09-01-2012, 05:42 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by wayner View Post
How does this work with shows currently being recorded by Sage? Will XBMC only play up to the time that you started watching? For example, if you start watching a 3 hour sporting event one hour after the game starts then will playback stop after 1 hour?
I'm not sure I understand the question, but yes XBMC plays live TV no problem and you can seek to any point within it or even to the very end/live portion and watch it fine.
__________________
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
  #7  
Old 09-01-2012, 08:18 AM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
This is the issue:

Let's say that a movie is three hours long and the recording starts at the beginning of the movie.

One hour into the movie, you start watching the movie from the beginning (basically, you're now one hour behind the live playback).

The question is, at the one hour mark of you watching the movie, does the movie continue to play or does playback stop because XBMC thinks it has effectively reached the end of the file.

Boxee and other platforms have had trouble with what has been referred to as "playing growing files" and typically, playback will stop at the point where the end of the file was when you start watching that (open / growing) file.
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #8  
Old 09-01-2012, 08:22 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by darcilicious View Post
This is the issue:

Let's say that a movie is three hours long and the recording starts at the beginning of the movie.

One hour into the movie, you start watching the movie from the beginning (basically, you're now one hour behind the live playback).

The question is, at the one hour mark of you watching the movie, does the movie continue to play or does playback stop because XBMC thinks it has effectively reached the end of the file.

Boxee and other platforms have had trouble with what has been referred to as "playing growing files" and typically, playback will stop at the point where the end of the file was when you start watching that (open / growing) file.

Simple answer is XBMC graciously handles growing files. Plex and Boxee can't. Try it but it works great for me!
__________________
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
  #9  
Old 09-01-2012, 12:24 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Great - this is a showstopper for me as I use Sage to record sporting events that I watch in "near" realtime - so I will start watching golf/basketball/hockey part way into the recording an hour or two into the event but often before the event is over.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #10  
Old 09-01-2012, 01:20 PM
emveepee emveepee is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 417
I'll check again tonight on a PC, but I definitely have problems playing growing files on a share with my low cost Pivos XS running XBMC (linux flavour - post Eden)

Martin
Reply With Quote
  #11  
Old 09-01-2012, 03:47 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by wayner View Post
Great - this is a showstopper for me as I use Sage to record sporting events that I watch in "near" realtime - so I will start watching golf/basketball/hockey part way into the recording an hour or two into the event but often before the event is over.
That's exactly how I use it and it works fine. The latest version I'm using is Frodo alpha 4
__________________
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
  #12  
Old 09-01-2012, 03:59 PM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
This is good news -- it may mean that Plex at least will get updated with the new player that can handle growing files (at least, I think the player gets shared across all the XBMC-based projects though I'm not sure that this will happen for Boxee )
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #13  
Old 09-01-2012, 05:43 PM
emveepee emveepee is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 417
My tests on a Windows PC with Eden on in-progress recordings are they can be watched, past the point where you come in, but as soon as you seek backwards, you can't really seek forward into the "newer" part of the recordings. So it isn't perfect but better than my BB.

Martin
Reply With Quote
  #14  
Old 09-03-2012, 07:42 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
For those following the XBMC thread, I just added two new enhancements:

-Added show level description (if one exists) which you'll see when browsing the list of shows
-Added a new episode level context menu option called "Remove Favorite" which checks if an episode has a favorite, and if it does, you can remove the favorite

XBMC thread: http://forum.xbmc.org/showthread.php...645#pid1182645
__________________
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
  #15  
Old 09-03-2012, 10:57 AM
g-man g-man is offline
Sage Advanced User
 
Join Date: May 2005
Posts: 82
First of all, it looks like a promising plugin and thanks for the hard work! I am testing on my ATV2 and got the plugin to load (had a struggle as it wouldn't take the .zip so I manually loaded it and chown'd the perms) however, I can't get my files to play. I am working with OTA files that save in .mpg (mpeg-2) and have captured the log from XBMC. Having issues from my Mac Lion as well but that I will keep that separate from this reply .

12:46:46 T:132784128 DEBUG: CWinEventsIOS: Button press keyID = 5
12:46:46 T:152047616 DEBUG: Stat - curl filetime: 1336854641
12:46:46 T:152047616 DEBUG: CurlFile::Open(0x135d7500) http://mirrors.xbmc.org/addons/eden/....wimp/icon.png
12:46:46 T:132784128 DEBUG: ------ Window Deinit (DialogOK.xml) ------
12:46:46 T:155127808 DEBUG: DoWork - trying to extract thumb from video file Nature-KalahariTheFloodedDesert-1523851-0.mpg
12:46:46 T:155127808 ERROR: InputStream: Error opening, Nature-KalahariTheFloodedDesert-1523851-0.mpg
12:46:46 T:151023616 DEBUG: DoWork - trying to extract thumb from video file Nature-KalahariTheGreatThirstland-1514324-0.mpg
12:46:46 T:151023616 ERROR: InputStream: Error opening, Nature-KalahariTheGreatThirstland-1514324-0.mpg

** Just a thought, but maybe i can't play mpeg-2 from the ATV 2 without transcoding, my knowledge is lacking on "InputStream".

Last edited by g-man; 09-03-2012 at 11:06 AM.
Reply With Quote
  #16  
Old 09-03-2012, 12:25 PM
g-man g-man is offline
Sage Advanced User
 
Join Date: May 2005
Posts: 82
Ok, so I tested it on my OSX Lion and started up DEBUG on XBMC, from my limited knowledge of this stuff it seems XBMC has issues playing MPEG-2 as both my ATV 2 and OSX Lion seem to have similar issues. i did get better logs from my Mac though.

14:20:37 T:140735315302752 DEBUG: ProcessMouse: trying mouse action leftclick
14:20:37 T:140735315302752 DEBUG: OnPlayMedia Nature-KalahariTheFloodedDesert-1523851-0.mpg
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers(Nature-KalahariTheFloodedDesert-1523851-0.mpg)
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
14:20:37 T:140735315302752 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
14:20:37 T:140735315302752 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
14:20:37 T:140735315302752 NOTICE: DVDPlayer: Opening: Nature-KalahariTheFloodedDesert-1523851-0.mpg
14:20:37 T:140735315302752 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:20:37 T:140735315302752 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
14:20:37 T:140735315302752 DEBUG: LinuxRendererGL: Cleaning up GL resources
14:20:37 T:140735315302752 DEBUG: CLinuxRendererGL::PreInit - precision of luminance 16 is 16
14:20:37 T:140735315302752 DEBUG: DllSwScale: Using libswscale system library
14:20:37 T:4505210880 NOTICE: Thread CDVDPlayer start, auto delete: false
14:20:37 T:4505210880 NOTICE: Creating InputStream
14:20:37 T:4505210880 ERROR: CDVDPlayer::OpenInputStream - error opening [Nature-KalahariTheFloodedDesert-1523851-0.mpg]
14:20:37 T:4505210880 NOTICE: CDVDPlayer::OnExit()
14:20:37 T:4505210880 NOTICE: CDVDPlayer::OnExit() deleting input stream
14:20:37 T:4505210880 DEBUG: Thread CDVDPlayer 4505210880 terminating
14:20:37 T:140735315302752 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
14:20:37 T:140735315302752 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
14:20:37 T:140735315302752 ERROR: Playlist Player: skipping unplayable item: 0, path [Nature-KalahariTheFloodedDesert-1523851-0.mpg]
14:20:37 T:140735315302752 DEBUG: Playlist Player: no more playable items... aborting playback
Reply With Quote
  #17  
Old 09-03-2012, 12:53 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 came to start an official thread today but LehighBri beat me to it.

XBMC can play MPEG-2 .mpg files just fine. It is what I record to. Make sure your path settings in the addon settings are correct. Based on the small section of the log you posted that is what appears could be your issue.

The first path setting is for the local path in Sage you are recording to. The second path setting is for the UNC equivalent of that local path that XBMC uses. If you are recording to a UNC path in Sage, then you can ignore these settings and blank them out.
Reply With Quote
  #18  
Old 09-03-2012, 01:14 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Cool. I'd try this out along with the recently released nightlies of Android XBMC, but it appears they aren't working on a Google TV version. That elicited an audible "huh?" from me, because that just seems ironic.

What I didn't relalize though until I started reading the XDA thread is that building for Google TV can be a bit of a pain in the ass.
Reply With Quote
  #19  
Old 09-03-2012, 06:46 PM
g-man g-man is offline
Sage Advanced User
 
Join Date: May 2005
Posts: 82
I was able to get it running, my issue was that I only put info in the Recording Path and not the UNC as well. For some reason I thought it was an either/or on both of these. Once I got both populated I was good.

Just some quick testing:

- Mac OSX - Works perfectly

- ATV 2 - Buffers every 15 to 30 seconds (to be expected as this little device isn't designed for the load).

Once I get some more free time I will test on my Droid Razr and ICS tablet using the XBMC nightlies.

if anyone has a raspberry PI, I would really like to know if the output is clean before I order one.

Thanks!
Reply With Quote
  #20  
Old 09-06-2012, 03:17 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Just committed an updated version to the github. Added new top level "Browse Channel Listings" option which allows you to drill into a specific channel, see what airings exist, and set a specific airing to record (or cancel record if it's already scheduled to record, etc)

This option was added as an interim solution that provides "EPG-like" capability where you can browse a listing of channels, airings, and then action on them. Not ideal as it could take a couple clicks, but all in all is definitely a viable solution.

Thoughts? Any potential additional improvements?

TODO:
-Add new top level item to Search (e.g. by Name) (anyone have thoughts on how to prompt a dialog box where a user could enter what show they want to search for?)

Github link: https://github.com/kricker/plugin.video.SageTV
__________________
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
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
SageTV vs. XBMC MediaStream UI? SørenBM SageMC Custom Interface 2 03-07-2009 02:29 PM
MyMovies type of addon for SageTV? Sizam SageTV Customizations 3 07-07-2008 04:24 PM
Ultimate music addon for SageTV? www.pandora.com mkanet SageTV Customizations 13 02-19-2006 03:27 AM
Is there an internal (or addon) SageTV command which rew/ff like an old VCR? mkanet SageTV Software 1 08-25-2005 02:42 PM


All times are GMT -6. The time now is 01:19 PM.


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