|
Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#461
|
||||
|
||||
OpenDCT 0.3.17-Stable
To address the issue in the previous post in the stable release, I upped the UDP packet receive buffer size to 65508 bytes. This will allow people with non-standard packet sizes to not need to upgrade to the beta if they don't want to.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#462
|
||||
|
||||
I've had this happen 3 times now since installing ver 4.23 when it was released and I ignored the first time, turned on debug logging after the second time and have logs for the third time.
Recording is triggered to be named xxxx-0.ts but no data seems to get written to drive. After about 1 min 15 sec Sage shows halt detected and trys to restart. Second recording is named xxxx-1.ts and completes successfully. xxxx-0.ts is not on the drive. Logs are attached. Any thoughts on anything I should try??
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT |
#463
|
||||
|
||||
The bad thing about what I'm seeing in those logs is that there are absolutely no errors happening while the file is being "written." The FileChannel is supposed to throw an IOException if there are any problems writing and the "bytes written" which is what is sent to SageTV only increments after the FileChannel essentially says it gave the data to the OS to write. I can see that at least 2MB were at least given to the OS. It's very hard to believe that at least an empty file didn't exist at some point. My best guess is SageTV might have deleted it maybe because it did not contain any data. I'll see what I can do to further guarantee that data is hitting the disk.
Update: I did not know this, but it's possible the FileChannel may continue without error even if the file is suddenly deleted. I believe this is the definition of poor design.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG Last edited by EnterNoEscape; 02-20-2016 at 11:50 AM. |
#464
|
||||
|
||||
Quote:
With your debug logging, can you create flags to tell you how far along the chain of events the data made it on it's way to the hard drive? Like, it made it into the buffer, did it make it to the next step ie ffmpeg or whatever the next step is? Sorry if what I'm saying/asking doesn't make sense.
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT |
#465
|
||||
|
||||
I just put together some changes that should make a difference. It's unclear how data could be buffered for so long and nothing actually written unless it's not actually being written. I'll post a new beta later in the day.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#466
|
||||
|
||||
OpenDCT 0.4.26-Beta
This release addresses the possibility of the file being deleted while recording and takes some additional actions of the file size isn't growing when it should be. It also tells the OS to commit to disk the first 1MB of data, then switches to just flushing the buffer on each commit for the rest of the recording. It also handles DTS errors little differently. Instead of dropping the packets, it just gives them a monotonic time stamp.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#467
|
||||
|
||||
Sounds good. Will download and install shortly. I'll keep Sage logging turned on in case it happens again.
Thanks.
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT |
#468
|
||||
|
||||
No problem. I guess this was a problem just waiting to happen.
This is unrelated, but if anyone wants to know what's next. I was playing around with FFmpeg transcoding examples and spent a few days translating a good one that supports filters into JavaCPP and added colorspace conversion which is needed. The results were very encouraging, so I'm currently working on live transcoding support mostly for de-interlacing content or converting MPEG-2 to H.264 for better device compatibility. Not surprisingly this will not be a feature everyone can use. I estimate that on a good quad-core computer you are going to be able to live transcode 4 streams maximum and realistically 1-2 for everyone else. I'm thinking it could have a transcode limit and once that limit is hit, other recordings even if they would have been transcoded will just be remuxed. It's also worth noting that if you just want to de-interlace, MPEG2 is perfectly viable and requires a little over half the resources needed to transcode to H.264. I'm also going to see what we can do with hardware acceleration since FFmpeg can be built with support for it.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#469
|
|||
|
|||
Quote:
Would it be possible to have an option to disable this flush, or (maybe better) have a property to set the minimum amount of data in the buffer before issuing a flush to disk so it can be tuned? I'd prefer to see 256K or even 1M writes to disk. With earlier versions (I was running 0.4.19 until tonight), the NFS client in async mode would cache the writes and commit them based on the Linux kernel "dirty_*" parameters. I'm not sure what effect this change has on using local disk, but I'm curious if it's causing the same issue or maybe the local filesystem cache is absorbing the excessive IOPS. Either way, I suspect that the CPU usage of OpenDCT may still be higher in this version due to all the flush calls.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#470
|
||||
|
||||
OpenDCT 0.4.27-Beta
Direct file writing now uses a tunable property that is set to flush every 1MB instead of every time FFmpeg uses the write callback. The property name is consumer.ffmpeg.min_direct_flush_size.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#471
|
|||
|
|||
Quote:
Code:
// This is the smallest amount of data that will be transferred to the SageTV server. private final int minDirectFlush = Math.max( Config.getInteger("consumer.ffmpeg.min_upload_id_transfer_size", 20680), RW_BUFFER_SIZE ); // This is the smallest amount of data that will be flushed to the SageTV server. private final int minUploadIDTransfer = Math.max( Config.getInteger("consumer.ffmpeg.min_direct_flush_size", 1048576), 0 );
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#472
|
||||
|
||||
You're right; I transposed them. I'll fix that in a minute. I'm glad to see I'm not the only one reviewing the code.
I really do welcome anyone who finds something that looks wrong in the code to bring it up or better yet if it's not a simple fix like this one to create a pull request. Update: The transposed variables are fixed. I just replaced the 0.4.27 installer with one with the variables correctly assigned. If you downloaded it prior to this post, you'll have to download it again and upgrade. It will still upgrade even though it's the same version number because the product code is different.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG Last edited by EnterNoEscape; 02-21-2016 at 12:21 PM. |
#473
|
|||
|
|||
Halt detected in recording
First i'd like to say that OpenDCT is working great - for the most part and I am happy this product exists. However, I've been having problems with missed recording for some reason and can't figure out what is happening and my wife is blaming me. Go figure...
If a tuner is locked at the time a recording is scheduled, will OpenDCT look for the next prime tuner that's free? Or will it crap out? Are there any config settings I need to tweak? There's a lot of talk in prior posts about changing some settings but it's all very confusing to me. I looked through the logs but there is a lot of data in them and I'm not sure what I am looking for. Will the wrapper.log or OpenDCT.log tell me what is wrong?
__________________
- James M - Capture Devices: HDHomerunXTEND, HDHomerunPrime |
#474
|
|||
|
|||
Quote:
pool.enabled=true Do you have force unlock enabled?. always_force_external_unlock=true ... if pooling is enabled and all tuners are in use will force unlock of tuner not being used by sagetv. If you want tuners exclusively for Sagetv. Disable pooling and enable always force unlock
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 02-22-2016 at 07:48 AM. |
#475
|
|||
|
|||
i don't recall ever setting those settings. What config file do i need to change?
__________________
- James M - Capture Devices: HDHomerunXTEND, HDHomerunPrime |
#476
|
|||
|
|||
Quote:
They are both false by default. Make sure to shutdown "Sagetv OpenDCT" service before editing the properties then restart the service.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 02-22-2016 at 08:08 AM. |
#477
|
|||
|
|||
Thank you. I will give it a go.
__________________
- James M - Capture Devices: HDHomerunXTEND, HDHomerunPrime |
#478
|
|||
|
|||
Quote:
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#479
|
||||
|
||||
Just wanted to say thanks for creating this! With SageTV going open source I have great hopes that I will be able to return to SageTV as my primary PVR solution and installing this on my virtual machine went smooth as butter!
When I exited SageTV I was using SageDCT, while it worked fine I recall it was a bit of work to get it going. I was unable to use PrimeNet Encoder due to some requirement that my virtual server didn't support. But OpenDCT worked, and was EZ. Again thank you for this!
__________________
(current) SageServer: SageTV Open Source V9 - Virtual Ubuntu on Win10 HyperV MSI 970A-G46, AMD FX-8370 , SD Prime via OpenDCT, Donater ComSkip Clients: HD-200, Nexus Player w/ Android miniclient Storage: "nas" 16 drive Win10 w/ DrivePool running Plex, Emby, & SD PVR Retired - Hava, MediaMVP, HD-100, HD-PVR, HVR-2250, Ceton InfiniTV4, Original (white) HDHomeRun Died - HD-100, HD-300 |
#480
|
|||
|
|||
i second that. With the renewed interest in SageTV development and the pretty stable v9 open source beta along with the very useful OpenDCT application, i plan on continuing with Sage for as long as my extender hardware keeps going. It's too bad new extenders aren't being produced anymore. To this day, i don't believe there is a better PVR solution than SageTV.
Thanks for the dedication and hard work to everyone who has put into keeping SageTV alive. Long Live SageTV!
__________________
- James M - Capture Devices: HDHomerunXTEND, HDHomerunPrime |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATI TV Wonder Digital Cable Tuner & SageTV | nyle | Hardware Support | 4 | 02-17-2009 10:12 PM |
ATI TV Wonder Digital Cable Tuner | rajczi | Hardware Support | 4 | 01-14-2008 08:24 PM |
ATI TV Wonder™ Digital Cable Tuner | dadams | Hardware Support | 4 | 01-09-2007 10:55 AM |
Digital Cable - one guide - need HD on one tuner reg tv on other | Kimper | SageTV Beta Test Software | 14 | 11-27-2006 08:15 PM |
Multi-tuner Digital Cable | mlbdude | SageTV Software | 0 | 06-26-2003 01:08 PM |