DVR server on windows

OK, I’ll check my Comcast channel lineup tonight. I’m still wondering why when watching the Discovery Channel live @ 480p 1mbps the transcoder is running at 1.11x and when watching a recording from the Discovery Channel at 1080p @ 10mbps the transcoder is running at 11.7x.

When you are watching a live stream, you are watching something that is currently broadcasting. It is not a recording where the data is already stored somewhere. You are actually watching something that is transmitting at the present time. The DVR cannot travel to the future, which is why your transcode rate drops.

1 Like

I put my Win 7 computer to sleep at 06:06 this morning. It woke itself at 18:00 to prepare for recordings this evening. You asked that I send you any errors I encountered…

I got the following log entries once the system and the DVR came up

2017/02/10 18:01:35 [DVR] Waiting 5h33m24.2269272s until next job 1486787700-1
2017/02/10 18:01:35 soapRequest returned error: Post http://10.0.0.1:49152/upnp/control/WANIPConnection0: dial tcp 10.0.0.1:49152: connectex: A socket operation was attempted to an unreachable host.
2017/02/10 18:01:35 [NAT] Failed to map port using upnp: Post http://10.0.0.1:49152/upnp/control/WANIPConnection0: dial tcp 10.0.0.1:49152: connectex: A socket operation was attempted to an unreachable host.
2017/02/10 18:01:35 [DVR] Fetching guide data for 16 stations in USA-OTA32259 @ 2017-02-10 6:00PM
2017/02/10 18:01:36 [SYS] Error checking for update: Get https://channels-dvr.s3.amazonaws.com/latest.json: dial tcp: lookup channels-dvr.s3.amazonaws.com: getaddrinfow: No such host is known.
2017/02/10 18:01:38 [ERR] Failed to refresh auth: Post https://community.getchannels.com/dvr/api: dial tcp: lookup community.getchannels.com: getaddrinfow: No such host is known.
2017/02/10 18:01:44 [DVR] indexed 127 airings (16 channels) [8s fetch, 0s index]
2017/02/10 18:01:45 [DVR] indexed 8 movies (3 channels) [0s fetch, 0s index]
2017/02/10 18:01:45 [DVR] pruned 13 replaced airings in 0s.
2017/02/10 18:01:45 [DVR] Fetching guide data for 16 stations in USA-OTA32259 @ 2017-02-11 12:00AM
2017/02/10 18:01:46 [DVR] indexed 124 airings (16 channels) [0s fetch, 0s index]
2017/02/10 18:01:46 [DVR] indexed 14 movies (5 channels) [0s fetch, 0s index]

Might be a timing issue, might be something else. . .

DVR seems to be working fine, but you asked that I send the logs.

It’s not a problem to leave the machine on . . . just would prefer not to.

Thanks.

I received the following error this evening:

2017/02/13 21:39:08 [DVR] Starting job 1487044770-9 The Bachelor on ch=[4.1]
2017/02/13 21:39:08 [DVR] Error running job 1487044770-9: open E:\Falck-DVR\TV\The Bachelor\2017-02-13-1959 The Bachelor 2017-02-13 S21E08.mpg: The file or directory is corrupted and unreadable.
2017/02/13 21:39:38 [DVR] Starting job 1487044770-9 The Bachelor on ch=[4.1]
2017/02/13 21:39:38 [DVR] Error running job 1487044770-9: open E:\Falck-DVR\TV\The Bachelor\2017-02-13-1959 The Bachelor 2017-02-13 S21E08.mpg: The file or directory is corrupted and unreadable.
2017/02/13 21:40:08 [DVR] Starting job 1487044770-9 The Bachelor on ch=[4.1]
2017/02/13 21:40:08 [DVR] Error running job 1487044770-9: open E:\Falck-DVR\TV\The Bachelor\2017-02-13-1959 The Bachelor 2017-02-13 S21E08.mpg: The file or directory is corrupted and unreadable.

Please don’t judge the quality of the show.

Sounds like the data is corrupted?

What filesystem is that drive formatted with?

Hmmm. Looks like the server restarted at 8:32 - part way through the recording. Not sure why this would have occurred. Uploading…

OSWindows Microsoft Windows 10 Home
10.0.14393 Build 14393

Unless you take specific measures to disable it, windows 10 will reboot on its own (forced) to install updates.

In the Settings app, go to Update & Security > Windows Update and then click the Advanced options button. In the drop down box, change the setting to “Notify to schedule restart.”

It's possible we may be able to integrate better with the windows API to prevent it from scheduling things while recordings are happening.

https://blogs.msdn.microsoft.com/oldnewthing/20120614-00/?p=7373

Awesome, thanks for the feedback. I will look at those Windows 10 settings. DVR seems to be working again today. However, commercial skip failed on 1 of 2 programs. Not familiar with codes, perhaps you could take a look at the exit status:

2017/02/14 19:59:30 [DVR] Recording for job 1487131170-11 from 1047DDB6 ch5.1 into “TV\The Wall\2017-02-14-1959 The Wall 2017-02-14 S01E09 Darnell and Dion.mpg” for 1h0m59.997034s
2017/02/14 21:00:00 [DVR] Starting job 1487134800-6 This Is Us on ch=[5.1]
2017/02/14 21:00:00 [DVR] Recording for job 1487134800-6 from 1047DDB6 ch5.1 into “TV\This Is Us\2017-02-14-2100 This Is Us 2017-02-14 S01E15 Jack Pearsons Son.mpg” for 59m59.9637292s
2017/02/14 21:00:30 [DVR] Finished job 1487131170-11 The Wall
2017/02/14 21:00:30 [DVR] Processing file-38: TV\The Wall\2017-02-14-1959 The Wall 2017-02-14 S01E09 Darnell and Dion.mpg
2017/02/14 21:00:34 [DVR] Running commercial detection on file 38 (TV\The Wall\2017-02-14-1959 The Wall 2017-02-14 S01E09 Darnell and Dion.mpg)
2017/02/14 21:00:36 [DVR] Commercial detection failed with exit status 3221225477
2017/02/14 22:00:00 [DVR] Finished job 1487134800-6 This Is Us
2017/02/14 22:00:00 [DVR] Processing file-39: TV\This Is Us\2017-02-14-2100 This Is Us 2017-02-14 S01E15 Jack Pearsons Son.mpg
2017/02/14 22:00:03 [DVR] Running commercial detection on file 39 (TV\This Is Us\2017-02-14-2100 This Is Us 2017-02-14 S01E15 Jack Pearsons Son.mpg)
2017/02/14 22:11:20 [DVR] Commercial detection finished with 14 markers.

Looked into this. Unless I am missing something, I think this depends on the version of Windows 10 you are on. I went to advanced options, and found what is described here, which is a little different than the setting you referenced:
http://www.digitalcitizen.life/how-set-when-windows-10-allowed-install-updates-and-restart-your-pc

Comskip keeps failing with error code 3221225477
OS: Windows 10
CPU - AMD A10
GPU - Asus 970

Please look up the comskip logs for one of the files which failed and post the last 10 lines from the comskip video.log

It doesn’t actually tell me that a show failed. When I checked my PC, it said comskip has failed and then it exited (sorry i didn’t screenshot). Looking through the logs I can’t find a show that has failed. When I get home tonight I’ll check and see if all the shows worked last night, ill report back if there is an issue. I just noticed this upon logging in remotely and looked up the error code.

I had comskip fail on two shows last night.
Commercial detection failed with exit status 3221225477

Comskip Log for 1st show last 10 lines.
Frame 42020 (1695.410s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42021 (1695.443s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42022 (1695.477s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42023 (1695.510s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42024 (1695.543s) - Uniform frame with brightness of 21 and uniform of 79
Frame 42060 (1696.745s) - Black frame with brightness of 16,uniform of 0 and volume of 786
Frame 42091 (1697.779s) - Black frame with brightness of 16,uniform of 0 and volume of 656
Frame 42093 (1697.846s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42096 (1697.946s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42098 (1698.013s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 42100 (1698.079s) - Uniform frame with brightness of 233 and uniform of 0
Frame 42199 (1701.614s) - Black frame with brightness of 16,uniform of 67 and volume of 1095
Resizing cc text array to accomodate 1501 cc text groups.
Frame 43009 (1731.730s) - Black frame with brightness of 17,uniform of 592 and volume of 0
Frame 43010 (1731.763s) - Black frame with brightness of 16,uniform of 0 and volume of -1

Comskip log for 2nd Show last 10 lines.

End logo block 1 frame 25112 Length - 0:12:16.46
Frame 25338 (860.476s) - Black frame with brightness of 15,uniform of 0 and volume of 0
Frame 25339 (860.509s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25340 (860.543s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25341 (860.576s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25342 (860.609s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25343 (860.643s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25344 (860.676s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25345 (860.709s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25346 (860.743s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25347 (860.776s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25348 (860.810s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25349 (860.843s) - Black frame with brightness of 15,uniform of 0 and volume of -1
Frame 25350 (860.876s) - Black frame with brightness of 15,uniform of 0 and volume of -1

I’ve hit this issue a couple of times in the last week as well. I believe last night it hit an error and crashed. I believe this might be the last bit of that log:

Frame: 1 Ratio: 1.81 MinY: 1 MaxY: 540 MinX: 1 MaxX: 960
Frame 250 (8.275s) - Black frame with brightness of 16,uniform of 0 and volume of -1378865800
Frame 251 (8.308s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 252 (8.342s) - Black frame with brightness of 16,uniform of 0 and volume of -1
Frame 253 (8.375s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 254 (8.408s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 255 (8.442s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 256 (8.475s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 257 (8.508s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 258 (8.542s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 259 (8.575s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 260 (8.609s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 261 (8.642s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 262 (8.675s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 263 (8.709s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 264 (8.742s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 265 (8.775s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 266 (8.809s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 267 (8.842s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 268 (8.876s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 269 (8.909s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 270 (8.942s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Frame 271 (8.976s) - Black frame with brightness of 17,uniform of 0 and volume of -1
Start logo cblock 0 frame 261

Looks like error 3221225477 is a crash in comskip. It seems to be intermittent. When I tried to reproduce it wasn’t easy, as the same recording will sometimes work and other times crash.

If you’re having this issue, please enable crash dumps on your computer:

  • Run regedit.exe
  • Find “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting”
  • Right click on “Windows Error Reporting”
  • Click New > Key
  • Rename the new key to “LocalDumps” (without the quotes) and hit enter

Then next time a crash happens, go to Start Menu and type “%LOCALAPPDATA%\CrashDumps”. The windows explorer will open. Find any comskip.exe.dmp files and email to [email protected]

I’ve created a new build which might help with the comskip failures, but need some help testing it. If you want to upgrade to it and try it out, run this in powershell:

Invoke-WebRequest -Method Put http://127.0.0.1:8089/updater/check/2017.03.07.2127

You should see the DVR update itself to v2017.03.07.2127. Let me know if you see any more comskip failures after that.

I installed Powershell, and ran this install. Since I am now testing version v2017.03.07.2127, will I be excluded from any other version updates?

No the next version will update as normal, and will include the changes in this version. I just wanted to get a little more testing before sending it out to everyone as an auto-update.