I have nvidia docker working and can see the thread with nvidia-smi on the host, but it doesn't always use hardware. Can you explain why? Here are my logs:
2025/03/14 23:34:47.257864 [TNR] Opened connection to 10A4180E/2 for ch5.1 KTTZ-HD
2025/03/14 23:34:47.257929 [HLS] Starting live stream for channel 5.1 from 172.30.0.22
2025/03/14 23:34:47.878007 [HLS] Probed live stream in 619.957455ms: mpeg2video 1920x1080 tt 6526993bps
2025/03/14 23:34:49.431570 [HLS] Session ch5.1-dANY-1033c586e61f started in 2.173556726s
2025/03/14 23:34:49.433009 [ENC] Starting encoder for ch5.1 in /shares/DVR/Streaming/ch5.1-dANY-1033c586e61f-1559184106/encoder-1-1262217311 at 1 (1.013656) (encoder=h264_nvenc, codec=h264, acodec=aac, resolution=1080, deinterlacer=hardware, bitrate=9232, segment_size=0.01)
2025/03/14 23:35:07.157659 [HLS] Stopping transcoder session ch5.1-dANY-1033c586e61f (out=19.965933s finished=false first_seq=1 last_seq=18)
2025/03/14 23:35:07.167488 [TNR] Closed connection to 10A4180E/2 for ch5.1 KTTZ-HD
2025/03/14 23:35:07.204453 [ENC] Stopped encoder for ch5.1 in /shares/DVR/Streaming/ch5.1-dANY-1033c586e61f-1559184106/encoder-1-1262217311 after encoding 1 to 17
2025/03/14 23:35:07.204472 [SNR] Statistics for ch5.1 KTTZ-HD: ss=100% snq=100% seq=100% bps=12597838,11830464-14445920 pps=1078,1013-1237
2025/03/14 23:35:07.204482 [SNR] Buffer statistics for ch5.1 KTTZ-HD: buf=0% drop=0%
2025/03/14 23:35:21.153264 [TNR] Opened connection to M3U-Threadfin for ch1501 ESPN 2
2025/03/14 23:35:21.153309 [HLS] Starting live stream for channel 1501 from 172.30.0.22
2025/03/14 23:35:21.379551 [HLS] Probed live stream in 226.169881ms: h264 1280x720 progressive 9288318bps
2025/03/14 23:35:21.389415 [HLS] ffmpeg: ch1501-dANY-1033c586e61f-remux: [h264 @ 0xa6bb240] Increasing reorder buffer to 2
2025/03/14 23:35:21.406895 [HLS] ffmpeg: ch1501-dANY-1033c586e61f-remux: [hls @ 0xa8397c0] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2025/03/14 23:35:21.510051 [HLS] Session ch1501-dANY-1033c586e61f started in 356.659488ms
2025/03/14 23:35:53.703575 [HLS] Stopping transcoder session ch1501-dANY-1033c586e61f (out=44.494533s finished=false first_seq=1 last_seq=47)
2025/03/14 23:35:53.703707 [TNR] Closed connection to M3U-Threadfin for ch1501 ESPN 2
2025/03/14 23:35:53.705336 [SNR] Buffer statistics for ch1501 ESPN 2: buf=0% drop=0%
2025/03/14 23:36:00.210111 [TNR] Opened connection to M3U-Threadfin for ch1500 ESPN
2025/03/14 23:36:00.210170 [HLS] Starting live stream for channel 1500 from 172.30.0.22
2025/03/14 23:36:00.341337 [HLS] ffmpeg: ch1500-dANY-1033c586e61f-remux: [h264 @ 0x18e2e240] Increasing reorder buffer to 2
2025/03/14 23:36:00.358235 [HLS] ffmpeg: ch1500-dANY-1033c586e61f-remux: [hls @ 0x18e5fb00] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2025/03/14 23:36:00.418785 [HLS] Session ch1500-dANY-1033c586e61f started in 208.567196ms
2025/03/14 23:36:00.454885 [HLS] Probed live stream in 244.630431ms: h264 1280x720 progressive 4854992bps
2025/03/14 23:36:32.641710 [HLS] Stopping transcoder session ch1500-dANY-1033c586e61f (out=43.801156s finished=false first_seq=1 last_seq=29)
2025/03/14 23:36:32.641826 [TNR] Closed connection to M3U-Threadfin for ch1500 ESPN
2025/03/14 23:36:32.643637 [SNR] Buffer statistics for ch1500 ESPN: buf=0% drop=0%
hwdownload needed