When using QSV, Ersatztv seems to run well for exactly three minutes, then just stops. The player then gets a 404 on the m3u8 file and stops playing. Swapping to VAAPI fixes that, but creates more CPU load too so I'm trying to avoid that. Seems like it must be close to working since it runs just fine for a bit.
Any ideas?
ErsatzTV log
2023-10-11 08:15:42.265 -07:00 [INF] Starting ts stream for channel 1
2023-10-11 08:15:42.265 -07:00 [INF] ffmpeg arguments -nostdin -threads 1 -hide_banner -loglevel error -nostats -fflags +genpts+discardcorrupt+igndts -re -i http://localhost:8409/iptv/channel/1.m3u8?mode=segmenter -map 0 -c copy -metadata "service_provider=\"ErsatzTV\"" -metadata "service_name=\"ErsatzTV\"" -f mpegts pipe:1
2023-10-11 08:15:42.274 -07:00 [INF] Normalizing frame rate for channel 1 from ["23.97603","29.97003","24.00","23.97599"] to 24
2023-10-11 08:15:42.274 -07:00 [INF] Starting HLS session for channel 1
2023-10-11 08:15:42.274 -07:00 [INF] HLS segmenter will work ahead for channel 1
2023-10-11 08:15:42.274 -07:00 [INF] HLS session state: "SeekAndWorkAhead"
2023-10-11 08:15:42.294 -07:00 [INF] Forcing 1 ffmpeg thread when hardware acceleration is used
2023-10-11 08:15:42.295 -07:00 [INF] ffmpeg hls arguments -threads 1 -nostdin -hide_banner -nostats -loglevel error -fflags +genpts+discardcorrupt+igndts -hwaccel qsv -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 -init_hw_device qsv=hw -filter_hw_device hw -ss 00:18:42.5875297 -c:v h264_qsv -i "/storage/TV Shows/Star Trek- The Next Generation/Season 4/Star Trek - The Next Generation - S04E05 - Remember Me Bluray-1080p.mkv" -ss 00:18:42.5875297 -i "/storage/TV Shows/Star Trek- The Next Generation/Season 4/Star Trek - The Next Generation - S04E05 - Remember Me Bluray-1080p.mkv" -filter_complex [1:1]loudnorm=I=-16:TP=-1.5:LRA=11,apad=whole_dur=1302587.5297ms[a];[0:0]hwdownload,format=nv12,colorspace=irange=tv:ispace=bt709:itrc=bt709:iprimaries=bt709:all=bt709:format=yuv420p[vpf] -map [a] -map [vpf] -muxdelay 0 -muxpreload 0 -movflags +faststart -flags cgop -sc_threshold 0 -t 00:03:00 -r 24 -vsync cfr -video_track_timescale 90000 -b:v 5000k -maxrate:v 5000k -bufsize:v 9000k -c:v h264_qsv -low_power 0 -look_ahead 0 -c:a aac -ac 2 -b:a 192k -maxrate:a 192k -bufsize:a 384k -ar 48k -map_metadata -1 -metadata "service_provider=\"ErsatzTV\"" -metadata "service_name=\"ErsatzTV\"" -metadata:s:a:0 language=eng -g 96 -keyint_min 96 -force_key_frames expr:gte(t,n_forced*4) -f hls -hls_time 4 -hls_list_size 0 -segment_list_flags +live -hls_segment_filename /root/.local/share/etv-transcode/1/live%06d.ts -hls_flags program_date_time+append_list+discont_start+omit_endlist+independent_segments -mpegts_flags +initial_discontinuity /root/.local/share/etv-transcode/1/live.m3u8
2023-10-11 08:16:19.079 -07:00 [INF] HLS process has completed for channel 1
2023-10-11 08:19:19.183 -07:00 [WRN] Unable to locate session worker for channel 1
2023-10-11 08:19:19.185 -07:00 [WRN] Unable to locate session worker for channel 1