Before anyone says this is unrelated to Channels DVR, let me explain.
I'm doing this to troubleshoot interrupted Custom M3U recordings in Channels DVR.
Using the same source for recording with Channels DVR and VLC at the same time.
This windows command line will use VLC to record TWiT YouTube for one hour as a H.264 Transport Stream to the file V:\VLC\VLCrecording.ts
It's easily modified to change the source being recorded, the filename recorded to and the duration of the recording.
The key to unattended recording is making sure the last options on the command line are
--run-time=3600 vlc://quit
I actually have my Windows command script naming the file based on the time the script runs.
The options I have chosen plays the source in VLC while simultaneously recording.
--sout="#duplicate{dst=display,dst=std