Encoder Failing

I'm using ADBTuner with Youtube TV as a source. I recently moved to the latest nightly and since my encoder has been failing. I've tried to troubleshoot but I am out of ideas.

2024/02/24 12:19:03.584037 [ENC] Starting encoder for ch237 in /mnt/nfs/channelsdvr/Streaming/ch237-dANY-cce3a4201218-1070357137/encoder-1-785916030 at 1 (0.021433) (encoder=h264_vaapi, resolution=720, deinterlacer=hardware, bitrate=4162, segment_size=0.01)
2024/02/24 12:19:03.621880 [HLS] ffmpeg: ch237-dANY-cce3a4201218-1-h264-copy-copy--4162-0-720-0-0--hardware-false-false-0.01-0: [h264 @ 0x92dc4c0] Failed setup for format vaapi: hwaccel initialisation returned error.

vaapi+deint
[AVHWDeviceContext @ 0x97a4280] libva: VA-API version 1.16.0
[AVHWDeviceContext @ 0x97a4280] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x97a4280] Initialised VAAPI connection: version 1.16
[AVHWDeviceContext @ 0x97a4280] VAAPI driver: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0.pre1 (2.4.0.pre1).
[AVHWDeviceContext @ 0x97a4280] Driver not found in known nonstandard list, using standard behaviour.
[Parsed_color_0 @ 0x97b40c0] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x97e1480] w:640 h:480 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1
[auto_scale_0 @ 0x97e3d40] w:iw h:ih flags:'' interl:0
[trim_in_0_0 @ 0x97e1f40] auto-inserting filter 'auto_scale_0' between the filter 'graph 0 input from stream 0:0' and the filter 'trim_in_0_0'
[auto_scale_0 @ 0x97e3d40] w:640 h:480 fmt:yuv420p sar:1/1 -> w:640 h:480 fmt:nv12 sar:1/1 flags:0x0
[Parsed_deinterlace_vaapi_2 @ 0x97e08c0] Picking 4 (MotionCompensated) as default deinterlacing mode.
Output #0, null, to '/dev/null':
Metadata:
encoder : Lavf59.16.100
Stream #0:0: Video: wrapped_avframe, 1 reference frame, vaapi(tv, progressive), 640x480 (0x0) [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc59.18.100 wrapped_avframe
No more output streams to write to, finishing.
frame= 2 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.12 bitrate=N/A speed=19.1x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (color=black:640x480):
Input stream #0:0 (video): 4 packets read (1843200 bytes); 4 frames decoded;
Total: 4 packets (1843200 bytes) demuxed
Output file #0 (/dev/null):
Output stream #0:0 (video): 2 frames encoded; 2 packets muxed (896 bytes);
Total: 2 packets (896 bytes) muxed
success!
vaapi@/dev/dri/renderD128
[AVHWDeviceContext @ 0x87a61c0] libva: VA-API version 1.16.0
[AVHWDeviceContext @ 0x87a61c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x87a61c0] Initialised VAAPI connection: version 1.16
[AVHWDeviceContext @ 0x87a61c0] VAAPI driver: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0.pre1 (2.4.0.pre1).
[AVHWDeviceContext @ 0x87a61c0] Driver not found in known nonstandard list, using standard behaviour.
[Parsed_color_0 @ 0x87b6000] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x87e2440] w:640 h:480 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1
Output #0, null, to '/dev/null':
Metadata:
encoder : Lavf59.16.100
Stream #0:0: Video: wrapped_avframe, 1 reference frame, yuv420p(progressive), 640x480 (0x0) [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc59.18.100 wrapped_avframe
No more output streams to write to, finishing.
frame= 3 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.12 bitrate=N/A speed=69.8x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (color=black:640x480):
Input stream #0:0 (video): 4 packets read (1843200 bytes); 4 frames decoded;
Total: 4 packets (1843200 bytes) demuxed
Output file #0 (/dev/null):
Output stream #0:0 (video): 3 frames encoded; 3 packets muxed (1344 bytes);
Total: 3 packets (1344 bytes) muxed
success!

OK so I may have found something that would work. I updated my HDMI encoder's TS Muxer from Compatible with FFMPEG to Compatible with VLC and my issues seem to have gone away. But I do see this in the log now.

2024/02/24 12:58:20.080577 [HLS] ffmpeg: ch230-dANY-cce3a4201218-remux: [hls @ 0x89a1e40] 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

Actually scratch that, it's back to failing. I'm out of ideas

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.