|
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 |
#41
|
||||
|
||||
Set Watched time for DVDs and properties file question
Question 1:
I am trying to do just what you asked to start watching on Sage, and continue on IOS(Ipad or Iphone), and restart on Sage and keep the watched time. I have this working on TV shows that have been recorded, but it is not working on DVDs. I can get the watched spot in milliseconds into the movie, but all attempts to SetWatchedTimes like I use, that works properly on a TV Show, does not set the time on the DVDs, it jumps off the end and sets it as watched. It may be moving the watched spot, but I have not been able to come up with parameters for DVDs that will actually set the watched spot at a certain point in a DVD. Has anyone used this, or possibly have any code snippets that work to set the watched time on a DVD to a certain spot?? // Use these two object instances Object mediafile = MediaFileAPI.GetMediaFileForID(IDOfShowOrDVDHere); Object airing = MediaFileAPI.GetMediaFileAiring(mediafile); Here is how I currently get the information for a TV showWorking) long whereToRestartAtHowManyMS = whereToRestart - AiringAPI.GetAiringStartTime(Airing); //works on tv long whereToRestartAtHowManySeconds = whereToRestartAtHowManyMS / 1000; long RealStartTime = AiringAPI.GetRealWatchedStartTime(Airing); //works on TV Here is how I currently set the information for a TV showWorking) // to set an Absolute Time in seconds into the TV show AiringAPI.SetWatchedTimes(Airing, AiringAPI.GetAiringStartTime(Airing)+(AbsoluteTimeinSeconds*1000), RealStartTime); //Here is how I currently set the information for a TV Show To bump up by //xx seconds into the TV show from the watched spot AiringAPI.SetWatchedTimes(Airing, AiringAPI.GetAiringStartTime(Airing)+(whereToRestartAtHowManySeconds * 1000)+BumpUpTimeinSeconds*1000, RealStartTime); //tv shows works NOTE: The following IS different than the TV Show, as the watched information comes back very differently from the same API calls: Here is how I currently get the information for a DVD: (Working) long whereToRestartD = AiringAPI.GetWatchedEndTime(Airing); long whereToRestartDAtHowManyMS = AiringAPI.GetWatchedEndTime(Airing); long whereToRestartDAtHowManySeconds = whereToRestartD / 1000; Here is how I tried to set the information for a DVD: (NOT working) for Absolute set to position: AiringAPI.SetWatchedTimes(Airing, AiringAPI.GetAiringStartTime(Airing)+(AbsoluteTimeinSeconds*1000), RealStartTime); for Bump up by xx seconds: AiringAPI.SetWatchedTimes(Airing, AiringAPI.GetAiringStartTime(Airing)+AiringAPI.GetWatchedDuration(Airing)+BumpUpTimeinSeconds*1000, AiringAPI.GetAiringStartTime(Airing)); The following works to determine If it is a TVShow if (MediaFileAPI.IsTVFile(Airing) == true) The following works to determine IF it is a DVD if (MediaFileAPI.IsDVD(Airing) == true) ------------------------------------------------------------------------------ Question 2: I couldn't find anything in the API to get the length of a DVD. But I did find it stored in the properties file, in RunningTime. Do all Sage7 installs use the .properties file for media, or is this only available on some? Can I assume there will be a .properties file for each recording and DVD? Thanks for any help. Quote:
Last edited by davidb; 04-30-2015 at 08:57 AM. |
#42
|
||||
|
||||
I'm pretty sure that stuff doesn't work on DVDs. DVDs don't have a "length" since there are menus that loop, different titles, etc, they're effectively of infinite/variable length.
|
#43
|
|||
|
|||
After just general updating of the application... my vote is the following:
- Touchscreen interface. I can install sage on a windows tablet, but no touchscreen. I guess any mobile client would be ok here... - Lots of work needs to be done on the music interface. We use sage on the main TV for viewing, but we also have a tablet mounted in the kitchen. In the kitchen, we do watch some TV (or bring up recipes etc..), but we mostly play music! This same tablet is connected to the speakers on the back porch too. This could include music streaming services, but also just general updating of usability in the UI. - There was a cool program a while back called TASageTV. That was pretty cool, but always a little finicky, so I stopped using it. I would love for the mobile client to have the ability to change the music on my tablet in the kitchen, while I am sitting outside having a beer (since the kitchen tablet drives the outdoor speakers). |
#44
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#45
|
|||
|
|||
That is great man... sounds like the problem is execution. Who cares if it was possible, someone has to make it happen. I thought that was the point of this thread... and I am totally on board! I am trying to get some ideas going on what is next
|
#46
|
||||
|
||||
Not to be too pedantic, but there's really only one "Day One" feature that's needed possible, and that's installers with the licensing code removed. Hopefully that's what Jeff will give us but either way, those are blocking problems, without which there's nothing to build on.
After that, Day 2, etc development and new features can start. It's not like people have been working on this from behind the scenes to where at launch there will be completed features to use. |
#47
|
|||
|
|||
Quote:
__________________
Marty |
#48
|
||||
|
||||
I wonder if Jeff will open source the server side code that runs the plugin manager. There's been lots of talk about when/if the EPG data ends but nothing about the plugin manager. I know we can edit the plugin file but losing the plugin manager would be bummer.
I'd also like the ability to use multiple plugin repositories instead of one.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#49
|
||||
|
||||
all the plugin manager really needs is a web presence it seems. As far as I can tell, the entire 'plugin service' is a single XML file hosted on an HTTP server.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#50
|
||||
|
||||
Quote:
The plugin manager does several things including:
It probably does other things as well I can't think of off the top of my head. None of this is rocket science and it all can be reproduced, but what a waste of time. It would be a lot easier if the code was released.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#51
|
||||
|
||||
Right, that's all basic database management tasks, and relatively simple. You can see what's in the XML file if you're intersted, it's in your SageTV folder, called SageTVPlugins.xml
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#52
|
||||
|
||||
I know exactly what's in there I'm talking about the code that gets it in there.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#53
|
||||
|
||||
Man just logged on to check in, and found out about this news. . . so stoked!
Any way for me there is lots of stuff I want, but the very 1st thing IMHO that should be done is get a build working for 64Bit JVMs (even if it is Java 7), so that we can have a larger memory heap. So simple. . and will solve / remove quite a few headaches :P
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned |
#54
|
||||
|
||||
Well, the same one feature I've been wanting for several years, it would be great if it makes it to Open SageTV.
Removing the "junk" from the regular Program Guide: http://forums.sagetv.com/forums/showthread.php?t=21651 And of course, the free EPG service. |
#55
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#56
|
||||
|
||||
Quote:
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#57
|
||||
|
||||
Support for the MP4 Encoding from new HDhomerun
It would be great if their new encoding could be recorded by SageTV!! The 6-7 Gigs per hour are getting very old.
__________________
Home DVR: SageTV v9.2.6(64) i7-6700 3.4ghz, 8GB RAM, Win10 Pro, 1@ SSD +1@6TB WD Blue, 1 Quad HDHR, ( OTA Winegard HD8200U, CM4221HD), 1@ STP-HD200, 1@ Nvidia Shield , 1 @ Nvidia Shield new round version, 70" & 55" Sony's RV DVR: 2@SageTV v9.2.6, NUC8i5BEK 16GB, SS980Pro NVMe, 5TB Passport, 1@olderNUC, 2 Dual HDHR, , Winegard BatWing, 40", 32", 28" Sony's, Max Transit |
#58
|
|||
|
|||
If that happens then how much memory would you want to have if you wanted to run 8 extenders. Would you want 8GB just for JVMs (8X1GB) or would you be able to get by with something like 512MB for each JVM as it only needs to support one extender?
__________________
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 |
#59
|
||||
|
||||
The footprint of each extender host instance would have the same duties and responsibilities as an instance of SageTVClient. My main use client, with gemstone and many other features, and about 8 weeks of uptime right now, is using 701MB of JVM. I see no reason not to set 1GB for each of the JVM's, if chunks aren't used, windows will swap them out to disk anyway. If you aren't using all the extenders at the same time, then the unused instances will be swapped out. In any case, RAM is ridiculously cheap these days, and I haven't built a machine with <12GB in a very long time.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#60
|
|||
|
|||
Ok, I will plan on 16 GB for my next generation Sage server.
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3 features | Deacon Crusher | SageTV Software | 4 | 03-16-2007 04:56 PM |
V6 New Features? | joe123 | SageTV Software | 10 | 01-03-2007 09:51 PM |
PVR-500 Features | polarhyte | Hardware Support | 6 | 07-23-2006 11:57 PM |
New STV features in v3 RC2 | Opus4 | SageTV Beta Test Software | 24 | 10-25-2005 02:14 AM |
REQ: A few (three) features | kberg31974 | SageTV Software | 6 | 06-03-2003 04:14 PM |