SageTV Community  

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

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 12-14-2016, 08:19 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by davidb View Post
Yes, I have been working on it 5 to 6 days a week since I closed the beta. I have made quite a bit of progress but alas I have much that I still want to do.
I have issues I am dealing with on my windows server code and IOS client that I can manage but I have run into several snags on extracting what I need from SageTV. These are issues trying to extract show/guide data such as director, comments and a few other fields. The standard stv is showing them so I thought since it is now open source I could just look at the java code and see how they were accessing it but so far I have only found an .xml file, which I am lost on how to interpret.

The other big item is, that I seem to be causing memory leaks when I access the sagetv info using sagex from my c# code. I saw this on my sagetv 7 setup but have since upgraded to the current sagetv 9 and still see the issue. I am not clear if I have to do anything special using sagex to not cause a memory leak or if I have uncovered a bug in either sagex or sagetv.

I was planning on doing a forum post(s) in early January to ask about both of the above issues but I guess I will do so in the next day or so. In the mean time if anyone is lurking "do I need to do anything special l when I am finished using sagex to not cause a leak on the server? If not what options and or logging should I use to better show what is happening to cause this on the server? Sagetv runs out of memory and reports an out of memory error. I can restart it and get it to happen in a few hours so I can fairly easily duplicate it.

I don't want to release a beta until the memory leak issue is resolved. This would cause too much frustration to someone with their Sage system.

David
You need to use Studio to view / edit the STV if you want to see how they did something. It does get stored as xml, but that is not really meant to be looked at directly.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #22  
Old 09-21-2017, 10:33 AM
Ghildebr Ghildebr is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Fort Worth, TX
Posts: 157
Quote:
Originally Posted by SageWizdom View Post
Is there any update on this effort? I've been out of the loop for a bit, but could not find any updates searching around.
I too am looking to see if there are any updates on this. All of my TV's already have a Apple TV hooked to them, and those devices are used almost daily. I have 2 of my 5 HD300's starting to give me issues playing videos from my server. I really don't want to buy all new hardware but at this time the only other option I see is the Android Miniclient.
Reply With Quote
  #23  
Old 09-21-2017, 11:37 AM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Quote:
Originally Posted by Ghildebr View Post
I too am looking to see if there are any updates on this. All of my TV's already have a Apple TV hooked to them, and those devices are used almost daily. I have 2 of my 5 HD300's starting to give me issues playing videos from my server. I really don't want to buy all new hardware but at this time the only other option I see is the Android Miniclient.
Yes I am still constantly working on this project most days of the week. I have been adding features to the IOS client and currently right now am about 80% of the way through a rewrite of the windows server code. When I get the server code rewritten I have a small punch list on IOS issues I want to address and then I will be comfortable releasing a version. The release unfortunately won't do what you need as it will target the iPhone and iPad running IOS 11 with the server code running on windows. At the moment I don't even own an Apple TV so that is not on my current plans. My family has been using it quite a bit this past summer when we did a lot of international traveling. We know about the bugs that it does have and how to work around them.

David
Reply With Quote
  #24  
Old 09-21-2017, 01:26 PM
Ghildebr Ghildebr is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Fort Worth, TX
Posts: 157
I would think that if it works on the iPhone and iPad it should also work on the Apple TV. But then I am not a developer so what do I really know. I already have the server code running on a windows platform. I am just looking for a SageTV app to install on a iOS platform so that I can get rid of my aging extenders.

Last edited by Ghildebr; 09-21-2017 at 01:28 PM.
Reply With Quote
  #25  
Old 09-21-2017, 02:06 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
The TVOS has severe restrictions on what you can store on the device. They sell a 32GB and 64B model but from an app standpoint you can only store 1 meg of local data! They really want you to use iCcloud so this is the reason for the artificial restriction. This sucks but it's Apples way! In contrast the he IOS code downloads a database of your sage system so In my case I have around 3000 media items which are a mix of dvds and tv shows. The IOS size is less than 10 meg on my device so the approach I am using would not directly work. On the good side the expectation is you would have high speed wifi or wired inside your house back to your sage server so in theory the server code could be modified to provide the sage data as needed. This would negate the need to store sage data on the device. I was actually using this approach on rel 1 of my code for IOS. This worked great in my house and in my city but traveling in a more rural area of the country caused it to be laggy. I scrapped the server code and started over with the approach I am using now. This is one of the reasons it's taking so long! As it's not a paid work project I am ability to make it "just the way I want" rather than the typical mentality of work in "make it good enough"! There are benefits in both ways and this is what is one of the reasons that makes it fun to work on!

David
Quote:
Originally Posted by Ghildebr View Post
I would think that if it works on the iPhone and iPad it should also work on the Apple TV. But then I am not a developer so what do I really know. I already have the server code running on a windows platform. I am just looking for a SageTV app to install on a iOS platform so that I can get rid of my aging extenders.
Reply With Quote
  #26  
Old 09-21-2017, 02:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Is the server part Windows only? With many SageTV users like myself switching to unRAID a Windows server is at best undesirable and at worst frankly useless.

I'm also still a bit confused about what purpose the separate server component would do that sagex doesn't since it already provides a full JSON interface to the SageTV API. But maybe that's my programmer self not wanting to reinvent the wheel so to speak.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #27  
Old 09-21-2017, 02:53 PM
Ghildebr Ghildebr is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Fort Worth, TX
Posts: 157
I see your point. I will send you a PM with the specs of my equipment. Its way more than the average setup.
Reply With Quote
  #28  
Old 09-21-2017, 03:07 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Yes the server is windows only. I am using sagex extensively in the server code already. The sever is needed as Apple has very strict guidelines for an app to be accepted for the app store. One of of the many restrictions is all video has to be HLS streaming and I couldn't find a way to accomplish this without using an executable on the server. There are other issues that lead me my approach also. I plan on releasing the source for the sever code at the same time or shortly after release so if someone wanted to port the code to unRAID they could. I wouldn't expect it to take much effort.

David

Quote:
Originally Posted by Taddeusz View Post
Is the server part Windows only? With many SageTV users like myself switching to unRAID a Windows server is at best undesirable and at worst frankly useless.

I'm also still a bit confused about what purpose the separate server component would do that sagex doesn't since it already provides a full JSON interface to the SageTV API. But maybe that's my programmer self not wanting to reinvent the wheel so to speak.

Last edited by davidb; 09-21-2017 at 03:10 PM.
Reply With Quote
  #29  
Old 01-23-2018, 01:47 PM
skier skier is offline
New Member
 
Join Date: Jan 2018
Location: kodiak
Posts: 3
Are you still working on this? If so any idea when it will be ready?
Reply With Quote
  #30  
Old 01-23-2018, 02:57 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Quote:
Originally Posted by skier View Post
Are you still working on this? If so any idea when it will be ready?
Yes I am. I have found a multitude of ways to have less than optimal results especially with marginal cell service! I have playback, guide data, searching of guide data, searching of all media, recording schedule, downloading with offline playback working now.

What I don't have working is a plugin to get updates from sage when media is added or deleted. I pick it up now by a process than runs once a day, but I think most people wouldn't like that! But back to your original question I expect I will complete the plugin and be ready to submit it to Apple's test flight beta program within the next month. Depending on the outcome there I could have to make changes and resubmit but it shouldn't be anything major. When it does release it will be for windows(32 or 64 bit).

David
Reply With Quote
  #31  
Old 01-23-2018, 03:21 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I am also willing to be a beta tester. I have a bunch of iOS devices and I have multiple SageTV servers. My production server is on unRAID but I have three other instances of SageTV server running on Win10, Win7 and WHS2011.

I would also reiterate that it would be great to have this run on an unRAID server. There are other streaming video apps that accomplish this with servers running on Mac, Win and Linux. On my unRAID server I have a docker running Air Video HD which is the main way that I currently watch SageTV content on my iPad. Plex would be another example.
__________________
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
  #32  
Old 01-23-2018, 03:36 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Quote:
Originally Posted by wayner View Post
I am also willing to be a beta tester. I have a bunch of iOS devices and I have multiple SageTV servers. My production server is on unRAID but I have three other instances of SageTV server running on Win10, Win7 and WHS2011.

I would also reiterate that it would be great to have this run on an unRAID server. There are other streaming video apps that accomplish this with servers running on Mac, Win and Linux. On my unRAID server I have a docker running Air Video HD which is the main way that I currently watch SageTV content on my iPad. Plex would be another example.
At the moment my only SageTV server is a windows 2012 box with a high end i7 with 32GB of ram. So that is what I have focused my development on. My mental list of what I would like to add in approximate order is:
1) plugin for sage media changes
2) sagetv messages
3) watch live tv that is if I can get enough support from the relatively few developers left as well as the archive of messages here.
4) Favorites support - Name only with minute +- support.

After that I don't know yet!
Reply With Quote
  #33  
Old 01-23-2018, 03:54 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
My advice, for what its worth, is to focus on viewing and playing back TV shows, especially those that are currently recording. If you need to manage recordings, favorites, etc you can use the web UI on iOS - I have been doing that for close to a decade. If you want to play back movies then you have probably set up something like Plex to play back movies to iOS and other clients.

But watching currently recording TV shows is difficult today on iOS. The best that I have found is something like Air Video HD but it will cut out when you reach the "end" of the file when you starting playing back.

But I am being selfish since that is my pain point.
__________________
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
  #34  
Old 01-23-2018, 04:03 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by davidb View Post
At the moment my only SageTV server is a windows 2012 box with a high end i7 with 32GB of ram. So that is what I have focused my development on. My mental list of what I would like to add in approximate order is:
1) plugin for sage media changes
2) sagetv messages
3) watch live tv that is if I can get enough support from the relatively few developers left as well as the archive of messages here.
4) Favorites support - Name only with minute +- support.

After that I don't know yet!
Super glad to hear you are still pursuing this. Many thanks for your efforts!

-S
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #35  
Old 01-23-2018, 04:11 PM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Quote:
Originally Posted by wayner View Post
My advice, for what its worth, is to focus on viewing and playing back TV shows, especially those that are currently recording. If you need to manage recordings, favorites, etc you can use the web UI on iOS - I have been doing that for close to a decade. If you want to play back movies then you have probably set up something like Plex to play back movies to iOS and other clients.

But watching currently recording TV shows is difficult today on iOS. The best that I have found is something like Air Video HD but it will cut out when you reach the "end" of the file when you starting playing back.

But I am being selfish since that is my pain point.
I already have playback of dvds(movies) and tv shows with comskip if available working now. I am not sure how from a technical standpoint to handle a recording in progress so my code skips them for now. Does plex support comskip? I have never used it.

David

Last edited by davidb; 01-23-2018 at 04:14 PM.
Reply With Quote
  #36  
Old 01-24-2018, 10:02 AM
skier skier is offline
New Member
 
Join Date: Jan 2018
Location: kodiak
Posts: 3
sorry for more questions but I am new! So how does this compare to the plex way I see talked about? Which is cheaper or better? Will this work with the iPhone x?
Reply With Quote
  #37  
Old 01-24-2018, 10:09 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by davidb View Post
I already have playback of dvds(movies) and tv shows with comskip if available working now. I am not sure how from a technical standpoint to handle a recording in progress so my code skips them for now. Does plex support comskip? I have never used it.
It appears that Plex supports Comskip for its own DVRed content. Hopefully that means that it also does for other video files as well. See https://support.plex.tv/articles/115...g-commercials/

In terms of handling recordings in progress - you might want to talk to stuckless if you haven't already done.
__________________
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
  #38  
Old 01-24-2018, 10:11 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Plex doesn't support EDL files for its recordings, it will permanently cut commercials out of the recorded shows.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #39  
Old 01-24-2018, 10:18 AM
davidb's Avatar
davidb davidb is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 134
Quote:
Originally Posted by wayner View Post
It appears that Plex supports Comskip for its own DVRed content. Hopefully that means that it also does for other video files as well. See https://support.plex.tv/articles/115...g-commercials/

In terms of handling recordings in progress - you might want to talk to stuckless if you haven't already done.
You get me thinking about handling a recording in progress! I did some research and I believe I can create a thread and run ffmpeg with getting its input from stdin. I can then redirect it and provide the data from a file I am reading of the recording in progress. So "theoretically" it should work! Anyone lurking here that has other inputs I would love to hear them...
FFmpeg is what I am using to do the encoding/HLS creation.
Reply With Quote
  #40  
Old 01-24-2018, 10:30 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
stuckless wrote the AndroidTV app and he has been playing around with building a web based SageTV client. So he or Narflex (the original inventor/owner of SageTV) would be great resources for you.
__________________
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
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
Gemstone - testers needed jusjoken Gemstone for v7 33 09-12-2012 04:25 PM
TV Explorer for the Default STV - Testers Needed tmiranda SageTV Customizations 60 09-18-2009 10:52 AM
Plugin: SJQ v1.1.0RC1 Available - Testers Needed Slugger SageTV Customizations 35 04-21-2008 08:12 AM
Beta Testers needed for SageTV for Mac OS X!! Narflex SageTV Beta Test Software 39 04-11-2007 03:47 PM


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


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