![]() |
|
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
|
||||
|
||||
I think there is a creative way to solve the issue. I just don't have the programming background to apply the logic.
Oh, and I don't have the logic either. |
#42
|
|||
|
|||
Quote:
With networked tuners, like the Homeruns, it has become unreasonable for Sage to assume it is the only potential user of a given specific tuner. Likewise, this behavior also plays into people who watch live TV who get pestered by Sage about a scheduled recording wanting to use a given tuner(the one they're using), even though there are several other tuners with the same tuner merit sitting idle at the time. |
#43
|
|||
|
|||
Quote:
Then once time to record nears, based on priority for the recordings start checking tuner availability and slot in accordingly. If someone wanted to be fancy there could be a secondary process that was run previously(before a tuner failure event) to indicate if alternative airing times or pool selections are possible for a given program to possibly help in reshuffling in the interest of trying to record everything possible as I recall that is what the scheduler does currently when scheduling in the first place. The challenge is dealing with concurrent alternatives spanning multiple pools, such as ATSC/QAM/Cable Card tuner record options for same channel for example, where all tuners are either scheduled to be busy, or are already busy once Sage tries to use them, but some programs aren't due to rebroadcast during the look ahead window. |
#44
|
||||
|
||||
Quote:
![]()
__________________
Jeffrey Kardatzke Founder of SageTV |
#45
|
|||
|
|||
Quote:
--John |
#46
|
||||
|
||||
As far as I can tell, the UploadID streamed files are written directly to disk. It is a general purpose system that is used by more than just the network encoders for transferring files between client and server. It is not something that is specific to recording.
__________________
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 |
#47
|
||||
|
||||
Quote:
![]()
__________________
Jeffrey Kardatzke Founder of SageTV |
#48
|
||||
|
||||
I am planning on doing this. I just released a new beta of PrimeNetEncoder, so I think I might shift focus towards working on this.
|
#49
|
||||
|
||||
Quote:
I ran the test scenario to make sure the library was loading properly in Windows, and I was able to convert a file using the remuxFile option. I was thinking of adding a new WRITEOPENR ("R" for remux I guess). I would Add an additional parameter to the command for output type (REMUX_TS/REMUX_PS). Should I also send a parameter to tell it how many bytes it should send to the init method? The remuxFile is currently sending 8192. How about a channel parameter in case there are multiple streams in the future? Then I would also add a WRITER command to handle remuxing the stream. Josh |
#50
|
||||
|
||||
Since you're asking for suggestions...I'll tell you how I'd do it.
![]() 1) Add a new command called "REMUX FORMAT CHANNEL INITSIZE" where FORMAT is TS or PS and CHANNEL is a number for which program in the stream to remux (-1 meaning use the default program). INITSIZE is the number of bytes to init, if its zero then default to 8192. This then configures that connection for doing remuxing. 2) In the WRITE handler; if its in remuxing mode...then do that. And automatically handle doing the init part in here as well and then just hold onto that data for when the init is complete so you can write it to the file. 3) Be sure to close the remuxer when the connection is terminated as well. This is similar to how the transcoding feature in the media server works. Quote:
__________________
Jeffrey Kardatzke Founder of SageTV |
#51
|
||||
|
||||
Quote:
So would the protocol look like this from the clients perspective WRITEOPEN FileName UploadID (Verifies the file and preps the streams) REMUX Format Channel InitiSize (Creates the Remuxer and sets upload mode to remux) WRITE Size \r\n Data (Handles all remuxing duties including the pushing the initData) CLOSE (Closes all streams and the remuxer) Sorry for all of the questions. I would just prefer to do it the way that made the most sense to you so that it works with the architecture. Josh Last edited by jvl711; 09-16-2015 at 01:35 PM. |
#52
|
|||
|
|||
HD Homerun Prime - network encoder.. source available..
Hey, not sure if this will help anyone, but I wrote an equivalent to SageDCT a number of years ago.. have been running on it since then as my primary tuner source for SageTV v7.
It's modeled after http://babgvant.com/files/folders/sa...ntry20796.aspx.. I tried to get SageDCT working, but never succeeded. So, wrote my own. I never got back to polishing it (channel preview missing, source encoders are manually defined as opposed to auto-detected, and few other minor issues), but it's been stable for years. Might be a useful guide for interacting with the HD Prime.. I remember there was a tuner locking function in the api. Happy to provide source (.net) if that helps anyone. Drop me a private message if interested. :-) |
#53
|
||||
|
||||
Quote:
1) Call it REMUX_SETUP for consistency with XCODE_SETUP 2) WRITE has 2 arguments, offset and size 3) Be sure to cleanup the remuxer in the finally {} block as well (if it wasn't already yet) in case the client never called CLOSE
__________________
Jeffrey Kardatzke Founder of SageTV |
#54
|
||||
|
||||
Quote:
I have it working in a proof of concept. I implemented exactly as we discussed. I have a few issues that I am looking into. Mainly MediaServer does not appear to be closing the file properly. When I stop the recording the file just hangs out. I have to shutdown Sage and manually delete them. I will double check the close and finally blocks to make sure everything is being properly disposed of. The remuxer also appears to be causing Sage to crash with a java core dump occasionally. I need to determine if these are issues that I introduced, or if there is other issues down stream from the code I wrote. Josh |
#55
|
||||
|
||||
I would not be surprised if there are bugs that will cause it to crash since we never really used this path very often. But the core functionality it's utilizing should be very stable...so the bugs should be at a higher level in the remuxer and hopefully not that hard to fix.
__________________
Jeffrey Kardatzke Founder of SageTV |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about HDHomeRun (Not Prime) | TechBill | Hardware Support | 27 | 06-13-2017 08:24 AM |
Does SageTV 7 support HDHomerun Prime? | LabyrinthMike | Hardware Support | 14 | 02-18-2015 04:32 PM |
HDHomeRun Prime on Woot 5/24 | ranger | The SageTV Community | 6 | 05-25-2012 07:10 PM |
HDHomerun Prime? | cenwesi | Hardware Support | 26 | 04-19-2011 05:40 PM |
HDHomeRun 68 channel remap limit / Native QAM tuning? | taylork | Hardware Support | 40 | 07-11-2008 04:50 AM |