Windows Channels DVR TIPs/Tools

These are some tools etc ... That I use to automate and keep Channels DVR running smoothly in Windows ..

I have my Windows servers to autologin and set the group policy to never restart to install updates when user is logged on. I check once in a while when Idle and will reboot to update. I also run a program called insomnia at startup that prevents windows from sleeping. These are headless servers with remote desktop enabled. I am running Docker Desktop that does not run as a service and requires Autologin.

I have USB drives and do not want them to sleep so I use KEEPALIVEHD.
Symlinks made easy ... must have.

Reboot when Idle ....

:loop
title "Reboot Channels Server"
CD /d "%~dp0"
curl.exe "http://127.0.0.1:8089/dvr" | findstr  /I /C:"busy\":false"
set notbusy=%ERRORLEVEL%
if %notbusy% EQU 0 shutdown /r /f /t 2
if %notbusy% NEQ 0 timeout /T 300
CLS
goto loop

Move recordings when Idle ...

goto start
:loop
timeout 300
:start
CD /d "%~dp0"
curl http://127.0.0.1:8089/dvr | findstr  /I /C:"busy\":false"
set notbusy=%ERRORLEVEL%
if %notbusy% NEQ 0 goto loop
ROBOCOPY "W:\DVR\TV\Walker, Texas Ranger" "S:\ChannelsDVR2\TV\Walker, Texas Ranger" /move /COPY:DT /minage:1 /e /R:2 /W:2
ROBOCOPY "W:\DVR\Movies" "\\MYCLOUDPR4100\MyShares\Imports\ChannelsDVR\Movies" /move /COPY:DT /minage:0 /e /R:2 /W:2
MD "W:\DVR\Movies"
goto loop
exit

Auto Check for Prerelease ...

:loop
title "Update Channels DVR"
CD /d "%~dp0"
curl.exe "http://127.0.0.1:8089/dvr" | findstr  /I /C:"busy\":false"
set notbusy=%ERRORLEVEL%
if %notbusy% EQU 0 curl -XPUT http://127.0.0.1:8089/updater/check/prerelease
if %notbusy% NEQ 0 timeout /T 300
if %notbusy% EQU 0 timeout /T 1500
rem if %notbusy% NEQ 0 timeout /T 300
CLS
goto loop
4 Likes

This is just stuff I use I am sure others have tools tips they use in their Windows environment feel free to post them.

I also have my Windows 11 Pro VM set to automatically log in -- however I use this approach:

Not sure exactly why, but I haven't needed to employ any extra measures to keep my VM awake, other than setting it to not sleep by using high performance mode under power options.

Updates haven't been an issue either with Windows 11, as Channels DVR seems to keep update reboots from happening until I initiate them.

As far as other tools go, DrivePool is a killer addon that I've been using for many years, and allows me to create a single virtual drive from several physical drives. I've not seen anything as easy to use for the purpose, and as comprehensive, on another OS:

https://covecube.com/projects

One thing Windows lacks is a package manager, but WingetUI pretty much takes care of that:

I'm actually pretty agnostic when it comes to Operating Systems, I've used them all, and each has their pluses and minuses. IMO, the best OS for a given job is more-often-than-not the one you've already used successfully for that specific task.

1 Like

An alternative to DrivePool is Windows Storage Spaces which I use.

2 Likes

Storage Spaces is good too -- and free. In DrivePool there's an option to duplicate specific folders across as many drives as you like. And while I don't care that much if I lose DVR recordings, losing photos and digitized home movies dating back to the 1930's is another matter. Everything in DrivePool is stored NTFS as well, so files are readable from a removed drive -- no lose one disk and the whole array is gone like RAID1.

DrivePool also has a scanner and cloud companion products, to verify drive integrity on an ongoing basis, along with folder duplication to the cloud. Amazingly, this type of thing is hard to find in the Linux world, without resorting to some pretty complex solutions. I'm a Linux fan -- but easy to use, WebUI storage management is somewhat lacking in standard distros.

2 Likes

@bnhf

DrivePool looks interesting I did some research and like the features you described will give it a shot.

Much Better than Storage Spaces thanks for the tip.

4 Likes

I've never had to do anything to avoid Windows Update stepping on a recording. When I first setup Channels DVR I was concerned about this. I think it's that windows update reboots are only done when the system is idle. I guess one could go off and delay the start of a recording yet I've not seen this.

My recordings are stored on a NAS and I use SATA SSDs for the recordings. I chose them as they will not spin down as channels hits the disks too frequently. This gets me lower power usage than spinning disks. You could do the same on a Windows box.

My "server" is a BeeLink N100 box which also runs Plex and under Hyper-V my network management system and also my backup orchestrator. It's amazing what this little box can do.

1 Like

Just because it has not happened to you does not mean it does not happen ...

How to disable automatic reboots in Windows 10? - Super User

2 Likes

I don't use Windows for Channels DVR (use Synology), but after purchasing a WIN 10 laptop, I discovered this tip which may help users running CDVR on Windows.

It was taking a long time just to open a text file on my internal and external hard drives and discovered that advanced power settings didn't expose this value that can be changed with the POWERCFG utility. The default value in my power scheme was to turn off (sleep) the hard disks after 15 seconds when plugged into AC power. I changed it to disabled using this command.

POWERCFG /X disk-timeout-ac 0

In a windows command prompt, run POWERCFG /? for help

Has it happened to you?

Why so defensive?
The Topic is TIPS/Tools.

Are you waiting until it happens to someone and reports it?

Why wear a raincoat/rubber?

1 Like

We all know people that have had that go wrong. Have you had Windows Update affect a recording?

Never :grin:

I run Channels DVR on Synology NAS's for that reason.

Didn't want to off-track the Topic

So back to your regularly scheduled program.

I run Channels DVR on a Windows mini PC with USB drives attached, and access it remotely. I don't run other programs to keep my PC or USB drives awake. It's been a while, but I turned off sleep/hibernation and made sure that the USB controllers in Device Manager do not shut down to try to save power. I'm running both Channels DVR & Plex on the same system.

I like the other tips, thanks.

1 Like

I also don't do anything special to avoid updates, but I do set the options in Windows 11 update so that my inactive hours are from 2AM to 8AM and use the option to force notification before update will restart. I don't know of anytime it has restarted without my consent. At any rate my happiness doesn't rely on any TV recording, so I don't spend any effort worrying about it.

Great tip.

The drive that you have channels configured to record to is constantly accessed and will not spin down. This will keep the USB controllers up. There have been bugs related to this in the past.

Depends on how you have Channels DVR configured ... on my USB drives the only thing I have on them are recordings/watching a recording everything else is on a different SSD drive. So the USB drive is only accessed when recording.

The drive you record to hold the debase and the backups. All other drives are library only and will spin up when accessed. Depending on the drive that might be very fast or take a second or so.

1 Like

Not in my Setup ... All backups logs etc... are on an SSD.... Streaming folder also.