Hello All -
Looking for some ideas here. I have Channels running in a container on proxmox mostly happily. In my case it is a privileged container because my storage is on NFS. I will eventually rebuild the container and just expose the storage from the host but this is what I've got right now. I don't think privileged vs. unprivileged is an issue here but mention it for completeness.
Sometimes when Channels starts a transcode for a remote user using QuickSync, CPU will spike to 100% and channels essentially crashes. I have also had the container just plain shut down, as well. It does not crash every time a transcode is requested. After the restart here I had a transcode run for about two hours straight without issue.
Channels does not log anything interesting when this happens - I see a log entry to start encoding then the startup log, for example:
2024/10/12 15:39:49.292603 [TNR] Opened connection to M3U-412OTA for ch2.1 CBS
2024/10/12 15:39:49.292929 [HLS] Starting live stream for channel 2.1 from (remote IP)
2024/10/12 15:39:51.189403 [HLS] Probed live stream in 1.873537352s: mpeg2video 1920x1080 tt 7508008bps
2024/10/12 15:39:52.960713 [HLS] Session ch2.1-dANY-89fa536ba879 started in 3.667750784s
2024/10/12 15:39:53.083705 [ENC] Starting encoder for ch2.1 in /data/Streaming/ch2.1-dANY-89fa536ba879-3653241923/encoder-1-2120336797 at 1 (2.256033) (encoder=h264_vaapi, codec=h264, acodec=aac, resolution=1080, deinterlacer=hardware, bitrate=7488, segment_size=0.01)
2024/10/12 15:53:25.393135 [SYS] Starting Channels DVR v2024.09.10.2115 (linux-x86_64 pid:157) in /usr/local/channels-dvr/data
2024/10/12 15:53:25.415666 [SYS] Started HTTP Server on 8089
2024/10/12 15:53:38.856780 [HDR] Found 1 devices
If it matters, in this particular example the source is another Channels server in a datacenter that exposes its OTA channels by M3U to my Channels at home. I have seen the same behavior, however, using local OTA sources as well.
Looking for some ideas or guidance - anywhere I can increase logging verbosity and maybe pick up a pointer to the problem.
Thanks.


