![]() |
|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
HDPVR Halts in unRAID
I have spent the weekend investigating an HDPVR issue that appeared when I switched to unRAID that I never had under Windows.
This issue has been discussed a little here and here, but I thought I should start a new thread in case others switch to unRAID and encounter this issue. I have run 2 HDPVRs connected via Component + SPDIF to my FiOS boxes (QIP-7100s) since the HDPVR was released. They have been VERY stable since about 2013 when Hauppauge released the most recent driver. After running on unRAID for about 2 days, I started getting "halts" in recordings. Often multiple times in one recording. Each time SageTV would be able to recover and restart the HDPVR. It would split the recording off into a new file and keep going after missing 60 seconds or so of the show/movie. It would keep going until the next "halt" and then do the same again. This resulted on 4 or 5 segments to the recording. This did not occur on ALL HDPVR recordings, which made it tough to diagnose. After about a bazillion tests, I think I have figured it out. The halts are caused by the audio switching from 5.1 back to stereo (or maybe the reverse). The thing that helped me figure it out was I realized a lot of my halts were happening on FX shows (The Americans). They were not happening on Premium channels when recording movies. I have to record FX using my HDPVR because they are flagged Copy Once on FiOS. From here I started testing and looking at where the halts were happening. I recorded the same movies twice (once in the morning and again when it was showed again in the afternoon). Generally, the halts happened in the same places in the movies. On top of that, I noticed that the halts always happened during or right after commercials. I had my boxes locked to 1080i, so I was pretty sure the halts weren't caused by resolution changes. Just to be sure, I locked them both to 720p and that had no effect on the halts. That led me to believe it had to be audio. I switched one box over to use the Stereo RCA inputs. I then recorded the same movie that had given me halts before on FX and it made it all the way through without a single halt. I have since recorded several shows, again with no halts. So I am confident that is the issue. Interestingly, I think this was an issue many years ago on Windows, and I wonder if it could be solved by compiling a different driver into the kernel (but it isn't something I can do without re-learning a ton of Linux-fu I forgot about a decade ago). Losing 5.1 on my HDPVRs is not good for me. I use it with my surround sound system and it adds to my enjoyment of shows/movies. For now, I have set a new lineup on the HDPVR that I have switched to stereo and that is the only box where I have Fox Copy Once channels enabled. I figure I will almost never be recording form more than one at a time. That way, they will always record on that HDPVR. I also set it at lowest merit. My other HDPVR still is set to use 5.1 over SPDIF. I am hoping since it has a higher merit and gets fewer channels, SageTV will use it whenever I want to record HBO, Starz, etc. so I can get 5.1 sound. I would be interested to hear other peoples' experience. I know Stuckless has said he does not have this issue, but I wonder if you use SPDIF or if having a different cable provider might be the issue. I have tried to be as detailed as possible here so others can compare their situation to mine. I hope this is helpful. Last edited by willieb; 03-20-2017 at 05:13 PM. |
#2
|
|||
|
|||
Wish I had time to test my problems as I suspect some/most of them are probably the same as yours. I wouldn't want to switch to Stereo from 5.1 either. Maybe in a couple of weeks I can test possible causes. For now my temporary solution (as you know) - that mostly works - is to use the HDPVRs in a VM with the 1.5.7 windows drivers. But I really have no desire to make that a permanent solution if I can find a native one. So I will be following your efforts to a solution and if I get the opportunity trying some of my own. If I figure out how to fix my system I will post back here with what worked for me.
Note if you want me to remove this post I will.
__________________
"Keep your goals away from the trolls" |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
I am one of those that has issues with the first minute or two of recordings but almost always things are good after that. I will try to keep an eye to see if this is an issue, or maybe even try to see if I can temporarily force recordings to stereo to see if that makes the issue go away.
But I am guessing that my issue is similar but a bit different.
__________________
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 |
#5
|
||||
|
||||
And that explains why I don't have an issue... I have always used stereo output. So, would this issue be in SageTV or in the HDPVR driver or somewhere else?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
|||
|
|||
I also occasionally get these when recording from an HDHR OTA tuner in addition to an HD-PVR. Has anyone else observed that problem as well? That's one of the things making me think it was related more to drive spin-up rather than the actual tuner.
__________________
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 |
#7
|
|||
|
|||
Quote:
I've been recording in 5.1 since the 1.5.7 HDPVR drivers came out for Windows. Will not go back to the pre 1.5.7 stereo recordings. I think the linux drivers are the problem - based on my experience with the Windows drivers anyway. I tried to update to newer drivers for Windows in the past and it always f**ked up 5.1 sound and I had to roll back. So I just stopped trying several years ago and stuck with the 1.5.7 Windows drivers.
__________________
"Keep your goals away from the trolls" |
#8
|
|||
|
|||
It is possible that it is a signal problem for me as well but I am still using my Windows based V7 system and both it and my unRAID V9 system recorded golf yesterday afternoon. I had two errors occur while recording PGA Tour golf from 2:30-6:30 yesterday on the unRAID server but no errors on the Win server. They were using different tuners so there could be different signal levels but it is kind of strange.
The other thing that is weird is that with OTA these recording errors almost always happen near the top of the hour. For example the golf errors occurred at 5:01:35 and 6:02:50 yesterday. Saturday night during an OTA hockey game an error occurred at 9:01:30, and for Saturday afternoon golf there was an error at 5:02:59 and 4:01:28. The previous week I had an error during golf at 4:02:59 and 6:01:43. The errors that occur about three minutes after the error typically have occurred five or six times which I can see by a 5X or 6X on the System Messages screen in the web UI. The errors that are within a minute or two of the hour are only 1X to 3X errors. Is there anything special that could cause an error at the top of the hour in either Sage or unRAID?
__________________
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 |
#9
|
|||
|
|||
Quote:
Quote:
Originally, I spent days in my attic trying to get a good signal. Whenever I thought I had it licked, I would go back downstairs and 20 minutes later my signal would be dropping out again. After I got this app, it took me 30 minutes of just walking around in my attic with the antenna and holding it up and watching the signal meter on my phone. I found a rock solid spot all the way at the opposite end of my house from where I had been trying. I've had no dropouts since. Last edited by willieb; 03-20-2017 at 05:15 PM. |
#10
|
||||
|
||||
Quote:
__________________
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 |
#11
|
|||
|
|||
I didn't even know there was upgradeable firmware in the HD-PVR. Anyone know how to tell which firmware version you have?
__________________
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 |
#12
|
|||
|
|||
Didn't know either would like to know myself.
__________________
"Keep your goals away from the trolls" |
#13
|
|||
|
|||
Quote:
Upgrading firmware requires doing it on a Windows machine. When you update the Windows drivers, it would update the Firmware, too. |
#14
|
|||
|
|||
I watched a recording to start to see how this evolves. The HD-PVR flashes on and tries to record, but after a second or two it shuts off. Then, about 74 seconds later it tries again and is successful.
I wonder if playing with a parameter like the delay_to_wait_after_tuning parameter would make a difference. I have mine set on 4000 which must be the default as I did not change it. What are other folks using?
__________________
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 |
#15
|
|||
|
|||
I have 12000 on my Colossus on another server but I haven't increased my HDPVRs yet. Still at 4000.
__________________
"Keep your goals away from the trolls" |
#16
|
|||
|
|||
I really wish you could change this in the UI rather than having to shut down the server and edit the Sage.properties file. I don't like having to kick everyone off the server to make a minor change like this and it isn't something that should require a server restart.
__________________
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 |
#17
|
|||
|
|||
It is a small sample size but after a couple of recordings it looks like moving to a delay of 8 seconds is working at solving this problem.
__________________
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 |
#18
|
|||
|
|||
My issue is never the initial tuning. I tune properly at the beginning. My issue as ALWAYS right after commercials. The audio changes back to stereo during the commercial and then back to 5.1 when the show starts. One of the two of those kills it.
|
#19
|
||||
|
||||
I have found over the years that 8 seconds was the best setting for me as well with the hdpvr and my stb's. It needs to have the stb channel change done and settled before the hdpvr kicks in for it to begin recording without a glitch. It seems the audio input is the most problematic for the hdpvr's. I have one stb that cannot seem to output a good of enough optical signal to record properly. Changing to analog helped but resulted in missed segments (skips) as the hdpvr struggles with the audio output. I ended up removing this stb (my oldest) out of my recording system.
__________________
SERVER: Intel Core i7-3770 CPU @ 3.40GHz - UnRaid Server 6.8.0/DVB LibreELEC with Docker stuckless-sagetv-server-java9 MOTHERBOARD: ASRock-Z77 Extreme4 / 32GB RAM CACHE DRIVE: SSD 1TB ARRAY: 24TB/7 DRIVES PARITY: 8TB EXTERNAL DEVICES: 4x HD-PVR's Firewire Channel Changing TUNERS:NO LONGER RECORDING LIVETV CLIENTS: 2xHD300 2xHD200 SONY ANDROIDTV MINI-CLIENT |
#20
|
|||
|
|||
It could be a very similar issue though - the audio takes several seconds to kick in and the HD-PVR takes a few seconds to lock onto it. When it doesn't lock onto it in time it throws an error. For me, and for some others, this only happens on the initial sync up when it starts recording. In your instance it happens when the audio format changes when there is a commercial.
__________________
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 |
![]() |
Tags |
halt, hdpvr, unraid |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sagetv 9 upgrade - Service halts | skyeclad | SageTV Github Development | 10 | 01-27-2017 02:31 PM |
HD Homerun Halts | mechling-burgh | Hardware Support | 5 | 07-12-2012 11:39 AM |
SageDCT w/ Prime: Halts | flavius | Hardware Support | 29 | 03-06-2012 07:13 AM |
SageDCT & Hauppauge 2650 - Halts | snapdaddy | Hardware Support | 0 | 02-14-2012 07:14 PM |
Halts/freezes at 1 hour marks | eswrite | SageTV Software | 1 | 10-22-2003 04:12 PM |