FastChannels - FAST Channels aggregator/manager

I ran your script. I think it updated here is the output.

[auto_scale_0 @ 0x7f8760007100] [framesync @ 0x7f8760007228] Sync level 1
[graph -1 input from stream 0:0 @ 0x7f8760004f00] video frame properties congruent with link at pts_time: 0
[h264_vaapi @ 0x55ed94bd1940] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x55ed94bd1940] Input surface format is nv12.
[h264_vaapi @ 0x55ed94bd1940] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x55ed94bd1940] No usable encoding entrypoint found for profile VAProfileH264High (7).
[vost#0:0/h264_vaapi @ 0x55ed94bd4680] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x55ed94bd6fc0] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x55ed94bd6fc0] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x55ed94bd6fc0] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_vaapi @ 0x55ed94bd4680] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x55ed94bd4680] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x55ed94bd4680] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x55ed94bd4680] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x55ed94bd3d40] [dec:wrapped_avframe @ 0x55ed94bd8a00] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x55ed94bd3d40] [dec:wrapped_avframe @ 0x55ed94bd8a00] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x55ed94bd3d40] All consumers of this stream are done
[in#0/lavfi @ 0x55ed94bcd700] All consumers are done
[in#0/lavfi @ 0x55ed94bcd700] Terminating thread with return code 0 (success)
[out#0/null @ 0x55ed94bd3f40] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x55ed94bcd700] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x55ed94bcd700]   Input stream #0:0 (video): 8 packets read (3520 bytes); 7 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x55ed94bcd700]   Total: 8 packets (3520 bytes) demuxed
Conversion failed!

[auto_scale_0 @ 0x7f3988007100] [framesync @ 0x7f3988007228] Sync level 1
[graph -1 input from stream 0:0 @ 0x7f3988004f00] video frame properties congruent with link at pts_time: 0
[h264_vaapi @ 0x55d595c01980] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x55d595c01980] Input surface format is nv12.
[h264_vaapi @ 0x55d595c01980] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x55d595c01980] No usable encoding entrypoint found for profile VAProfileH264High (7).
[vost#0:0/h264_vaapi @ 0x55d595c04400] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x55d595c06d40] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x55d595c06d40] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x55d595c06d40] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_vaapi @ 0x55d595c04400] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x55d595c04400] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x55d595c04400] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x55d595c04400] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x55d595c03ac0] [dec:wrapped_avframe @ 0x55d595c08640] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x55d595c03ac0] [dec:wrapped_avframe @ 0x55d595c08640] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x55d595c03ac0] All consumers of this stream are done
[in#0/lavfi @ 0x55d595b91d00] All consumers are done
[in#0/lavfi @ 0x55d595b91d00] Terminating thread with return code 0 (success)
[out#0/null @ 0x55d595c03cc0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x55d595b91d00] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x55d595b91d00]   Input stream #0:0 (video): 8 packets read (3520 bytes); 7 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x55d595b91d00]   Total: 8 packets (3520 bytes) demuxed
Conversion failed!

[AVHWDeviceContext @ 0x563d44890f00] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x563d44890f00] libva: User environment variable requested driver 'i965'
[AVHWDeviceContext @ 0x563d44890f00] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
[AVHWDeviceContext @ 0x563d44890f00] libva: Found init function __vaDriverInit_1_22
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
i915 does not support EXECBUFER2
[AVHWDeviceContext @ 0x563d44890f00] libva: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
[AVHWDeviceContext @ 0x563d44890f00] libva: va_openDriver() returns -1
[AVHWDeviceContext @ 0x563d44890f00] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error
Error parsing global options: Input/output error

Trying display: drm
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointEncSlice
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointEncSlice
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileVVCMain10              :	VAEntrypointVLD
      VAProfileVVCMultilayerMain10    :	VAEntrypointVLD
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0

@jxxaxxy thanks. I can't tell from that output which driver was active. Could you run this and paste what it prints?

docker exec fastchannels dpkg -l | grep intel-media

If it shows intel-media-va-driver-non-free, the non-free driver was installed and still has no H.264 encoder, so please try the newer one below. If it shows only intel-media-va-driver, run my earlier command first and paste its whole output.

Newer driver test (from Debian unstable). It only changes the running container, so recreate the container afterwards:

docker exec fastchannels bash -c 'echo "deb http://deb.debian.org/debian sid main non-free" > /etc/apt/sources.list.d/test-sid.list && apt-get update && apt-get install -y intel-media-va-driver-non-free/sid && vainfo --display drm --device /dev/dri/renderD128'

This is what I see.
ii intel-media-va-driver:amd64 25.2.3+dfsg1-1 amd64 VAAPI driver for the Intel GEN8+ Graphics family

Ran script in your post.

docker exec fastchannels bash -c 'echo "deb http://deb.debian.org/debian sid main non-free" > /etc/apt/sources.list.d/test-sid.list && apt-get update && apt-get install -y intel-media-va-driver-non-free/sid && vainfo --display drm --device /dev/dri/renderD128'
Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4 https://dl.google.com/linux/chrome-stable/deb stable InRelease [2548 B]
Get:5 http://deb.debian.org/debian sid InRelease [193 kB]
Get:6 https://dl.google.com/linux/chrome-stable/deb stable/main amd64 Packages [1405 B]
Get:7 http://deb.debian.org/debian trixie/main amd64 Packages [9679 kB]
Get:8 http://deb.debian.org/debian trixie/non-free amd64 Packages [100 kB]
Get:9 http://deb.debian.org/debian trixie-updates/main amd64 Packages [1108 B]
Get:10 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [311 kB]
Get:11 http://deb.debian.org/debian sid/main amd64 Packages [10.9 MB]
Get:12 http://deb.debian.org/debian sid/non-free amd64 Packages [132 kB]
Fetched 21.5 MB in 2s (12.0 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libigdgmm12 libva-drm2 libva-wayland2 libva-x11-2 libva2
The following packages will be REMOVED:
  intel-media-va-driver
The following NEW packages will be installed:
  intel-media-va-driver-non-free
The following packages will be upgraded:
  libigdgmm12 libva-drm2 libva-wayland2 libva-x11-2 libva2
5 upgraded, 1 newly installed, 1 to remove and 360 not upgraded.
Need to get 8033 kB of archives.
After this operation, 28.3 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian sid/main amd64 libva-drm2 amd64 2.24.1-2 [18.0 kB]
Get:2 http://deb.debian.org/debian sid/main amd64 libva-x11-2 amd64 2.24.1-2 [22.9 kB]
Get:3 http://deb.debian.org/debian sid/main amd64 libva-wayland2 amd64 2.24.1-2 [21.5 kB]
Get:4 http://deb.debian.org/debian sid/main amd64 libva2 amd64 2.24.1-2 [83.5 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 libigdgmm12 amd64 22.10.2+ds1-1 [184 kB]
Get:6 http://deb.debian.org/debian sid/non-free amd64 intel-media-va-driver-non-free amd64 26.3.5+ds1-1 [7704 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, <STDIN> line 6.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Fetched 8033 kB in 1s (10.4 MB/s)
(Reading database ... 14835 files and directories currently installed.)
Removing intel-media-va-driver:amd64 (25.2.3+dfsg1-1) ...
(Reading database ... 14831 files and directories currently installed.)
Preparing to unpack .../0-libva-drm2_2.24.1-2_amd64.deb ...
Unpacking libva-drm2:amd64 (2.24.1-2) over (2.22.0-3) ...
Preparing to unpack .../1-libva-x11-2_2.24.1-2_amd64.deb ...
Unpacking libva-x11-2:amd64 (2.24.1-2) over (2.22.0-3) ...
Preparing to unpack .../2-libva-wayland2_2.24.1-2_amd64.deb ...
Unpacking libva-wayland2:amd64 (2.24.1-2) over (2.22.0-3) ...
Preparing to unpack .../3-libva2_2.24.1-2_amd64.deb ...
Unpacking libva2:amd64 (2.24.1-2) over (2.22.0-3) ...
Preparing to unpack .../4-libigdgmm12_22.10.2+ds1-1_amd64.deb ...
Unpacking libigdgmm12:amd64 (22.10.2+ds1-1) over (22.7.2+ds1-1) ...
Selecting previously unselected package intel-media-va-driver-non-free:amd64.
Preparing to unpack .../5-intel-media-va-driver-non-free_26.3.5+ds1-1_amd64.deb ...
Unpacking intel-media-va-driver-non-free:amd64 (26.3.5+ds1-1) ...
Setting up libigdgmm12:amd64 (22.10.2+ds1-1) ...
Setting up libva2:amd64 (2.24.1-2) ...
Setting up libva-wayland2:amd64 (2.24.1-2) ...
Setting up libva-drm2:amd64 (2.24.1-2) ...
Setting up libva-x11-2:amd64 (2.24.1-2) ...
Setting up intel-media-va-driver-non-free:amd64 (26.3.5+ds1-1) ...
Processing triggers for libc-bin (2.41-12+deb13u5) ...
libva info: VA-API version 1.24.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_24
libva info: va_openDriver() returns 0
Trying display: drm
vainfo: VA-API version: 1.24 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 26.3.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSlice
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSlice
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSlice
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSlice
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSlice
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSlice
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSlice
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointEncSlice
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSlice
      VAProfileVVCMain10              : VAEntrypointVLD
      VAProfileVVCMultilayerMain10    : VAEntrypointVLD

@jxxaxxy excellent, that's the H.264 encoder we were missing. Don't recreate the container yet. Could you:

  1. Run docker restart fastchannels (a restart keeps the new driver; recreating removes it).
  2. On the Bridge page, click GPU diagnostics. Does it now say the GPU works? Please paste Copy report.
  3. If it does, play a channel through Built-in Capture and tell me whether picture and sound are good.

I had to do it over as I recreated it lmao. But.........

[auto_scale_0 @ 0x7f3ad8006ac0] [framesync @ 0x7f3ad8006bd0] Selected 1/30 time base
[auto_scale_0 @ 0x7f3ad8006ac0] [framesync @ 0x7f3ad8006bd0] Sync level 1
[graph -1 input from stream 0:0 @ 0x7f3ad8004ec0] video frame properties congruent with link at pts_time: 0
[vost#0:0/h264_vaapi @ 0x55c26415bc00] [enc:h264_vaapi @ 0x55c2643087c0] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x55c264308840] Input surface format is nv12.
[h264_vaapi @ 0x55c264308840] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x55c264308840] No usable encoding entrypoint found for profile VAProfileH264High (7).
[vost#0:0/h264_vaapi @ 0x55c26415bc00] [enc:h264_vaapi @ 0x55c2643087c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x55c26430b0c0] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x55c26430b0c0] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x55c26430b0c0] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_vaapi @ 0x55c26415bc00] [enc:h264_vaapi @ 0x55c2643087c0] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x55c26415bc00] [enc:h264_vaapi @ 0x55c2643087c0] Could not open encoder before EOF
[vist#0:0/wrapped_avframe @ 0x55c264307f40] [dec:wrapped_avframe @ 0x55c26430cb80] Decoder returned EOF, finishing
[vost#0:0/h264_vaapi @ 0x55c26415bc00] Task finished with error code: -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x55c264307f40] [dec:wrapped_avframe @ 0x55c26430cb80] Terminating thread with return code 0 (success)
[vost#0:0/h264_vaapi @ 0x55c26415bc00] Terminating thread with return code -22 (Invalid argument)
[in#0/lavfi @ 0x55c26421a980] Terminating thread with return code 0 (success)
[out#0/null @ 0x55c2643080c0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A elapsed=0:00:00.01    
[in#0/lavfi @ 0x55c26421a980] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x55c26421a980]   Input stream #0:0 (video): 3 packets read (1272 bytes); 2 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x55c26421a980]   Total: 3 packets (1272 bytes) demuxed
Conversion failed!
Exiting with exit code -38

   encoder         : Lavf63.1.102
  Stream #0:0: Video: h264 (High), 1 reference frame, nv12(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 4000 kb/s, 30 fps, 30 tbn
    Metadata:
      encoder         : Lavc63.1.102 h264_vaapi
[out#0/null @ 0x55db9c9390c0] Starting thread...
[vf#0:0 @ 0x55db9c93c380] All consumers returned EOF
[vf#0:0 @ 0x55db9c93c380] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x55db9c88c480] [dec:wrapped_avframe @ 0x55db9c93de40] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x55db9c88c480] [dec:wrapped_avframe @ 0x55db9c93de40] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x55db9c88c480] All consumers of this stream are done
[in#0/lavfi @ 0x55db9c84b940] All consumers are done
[in#0/lavfi @ 0x55db9c84b940] Terminating thread with return code 0 (success)
[vost#0:0/h264_vaapi @ 0x55db9c939440] [enc:h264_vaapi @ 0x55db9c939a80] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x55db9c939440] Terminating thread with return code 0 (success)
[out#0/null @ 0x55db9c9390c0] All streams finished
[out#0/null @ 0x55db9c9390c0] Terminating thread with return code 0 (success)
[out#0/null @ 0x55db9c9390c0] Output file #0 (pipe:):
[out#0/null @ 0x55db9c9390c0]   Output stream #0:0 (video): 10 frames encoded; 10 packets muxed (217179 bytes); 
[out#0/null @ 0x55db9c9390c0]   Total: 10 packets (217179 bytes) muxed
[out#0/null @ 0x55db9c9390c0] video:212KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=   10 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.30 bitrate=N/A speed=3.61x elapsed=0:00:00.08    
[in#0/lavfi @ 0x55db9c84b940] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x55db9c84b940]   Input stream #0:0 (video): 23 packets read (9752 bytes); 14 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x55db9c84b940]   Total: 23 packets (9752 bytes) demuxed
Exiting with exit code 0

Trying display: drm
vainfo: VA-API version: 1.24 (libva 2.23.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 26.3.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointEncSlice
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointEncSlice
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSlice
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSlice
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSlice
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSlice
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointEncSlice
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSlice
      VAProfileVVCMain10              :	VAEntrypointVLD
      VAProfileVVCMultilayerMain10    :	VAEntrypointVLD
libva info: VA-API version 1.24.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_24
libva info: va_openDriver() returns 0
Run again
Copy report
Close

@jxxaxxy that's great, the GPU is encoding. Could you play a channel through Built-in Capture and check picture and sound?

One thing to know: the test also pulled in newer FFmpeg and Mesa from Debian unstable, and recreating the container (including updating FastChannels) undoes all of it.

If you're willing to do one more test, recreate the container, then run this before anything else and paste the diagnostics report:

docker exec fastchannels bash -c 'echo "deb http://deb.debian.org/debian trixie non-free" > /etc/apt/sources.list.d/test-nonfree.list && apt-get update && apt-get install -y intel-media-va-driver-non-free'

I think that is as far as I can go unless you add Youtube Tv :wink:

Hey everyone here is my Portainer stack I used on Windows 11 for my Nvidia card and it's working like a charm.

image

services:
  fastchannels:
    # 2026.03.15
    # GitHub home for this project with setup instructions: https://github.com/kineticman/FastChannels
    # Docker container home for this project: https://github.com/kineticman/FastChannels/pkgs/container/fastchannels
    image: ghcr.io/kineticman/fastchannels:${TAG:-latest}
    container_name: fastchannels
    dns_search: ${DOMAIN:-localdomain}
    ports:
      - ${HOST_PORT:-5523}:5523
    environment:
      - TZ=${TZ:-America/Los_Angeles}
      - FASTCHANNELS_SERVER_URL=${FASTCHANNELS_SERVER_URL:-http://192.168.1.50:5523}
      - CHANNELS_DVR_SERVER_URL=${CHANNELS_DVR_SERVER_URL:-http://192.168.1.60:8089}
      - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    volumes:
      - db_data:/data
    restart: unless-stopped
volumes:
  db_data:

h264_vaapi @ 0x60637f423a40] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x60637f423a40] Input surface format is nv12.
[h264_vaapi @ 0x60637f423a40] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x60637f423a40] Using VAAPI entrypoint VAEntrypointEncSliceLP (8).
[h264_vaapi @ 0x60637f423a40] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x60637f423a40] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
[vost#0:0/h264_vaapi @ 0x60637f426600] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x60637f428dc0] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0x60637f428dc0] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0x60637f428dc0] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x60637f426600] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x60637f426600] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x60637f426600] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x60637f426600] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x60637f425d00] [dec:wrapped_avframe @ 0x60637f42a700] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x60637f425d00] [dec:wrapped_avframe @ 0x60637f42a700] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x60637f425d00] All consumers of this stream are done
[in#0/lavfi @ 0x60637f402740] All consumers are done
[in#0/lavfi @ 0x60637f402740] Terminating thread with return code 0 (success)
[out#0/null @ 0x60637f425ec0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x60637f402740] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x60637f402740]   Input stream #0:0 (video): 8 packets read (3520 bytes); 7 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x60637f402740]   Total: 8 packets (3520 bytes) demuxed
Conversion failed!

โœ• -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:v h264_vaapi -b:v 4000k
[h264_vaapi @ 0x57ff79dbaa80] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x57ff79dbaa80] Input surface format is nv12.
[h264_vaapi @ 0x57ff79dbaa80] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x57ff79dbaa80] Using VAAPI entrypoint VAEntrypointEncSliceLP (8).
[h264_vaapi @ 0x57ff79dbaa80] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x57ff79dbaa80] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
[vost#0:0/h264_vaapi @ 0x57ff79dbd700] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x57ff79dbfec0] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0x57ff79dbfec0] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0x57ff79dbfec0] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x57ff79dbd700] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x57ff79dbd700] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x57ff79dbd700] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x57ff79dbd700] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x57ff79dbce00] [dec:wrapped_avframe @ 0x57ff79dc1700] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x57ff79dbce00] [dec:wrapped_avframe @ 0x57ff79dc1700] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x57ff79dbce00] All consumers of this stream are done
[in#0/lavfi @ 0x57ff79d99740] All consumers are done
[in#0/lavfi @ 0x57ff79d99740] Terminating thread with return code 0 (success)
[out#0/null @ 0x57ff79dbcfc0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x57ff79d99740] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x57ff79d99740]   Input stream #0:0 (video): 6 packets read (2640 bytes); 5 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x57ff79d99740]   Total: 6 packets (2640 bytes) demuxed
Conversion failed!

โœ• -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:v h264_vaapi -b:v 4000k
[vost#0:0/h264_vaapi @ 0x5d9537b5c440] Starting thread...
[vf#0:0 @ 0x5d9537b5ebc0] Starting thread...
[vist#0:0/wrapped_avframe @ 0x5d9537b5bb80] [dec:wrapped_avframe @ 0x5d9537b60380] Starting thread...
[in#0/lavfi @ 0x5d9537b56f40] Starting thread...
[graph -1 input from stream 0:0 @ 0x7e89fc002ac0] w:1280 h:720 pixfmt:yuv420p tb:1/30 fr:30/1 sar:1/1 csp:unknown range:unknown
[auto_scale_0 @ 0x7e89fc004d80] w:iw h:ih flags:'' interl:0
[Parsed_format_0 @ 0x7e89fc002240] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_format_0'
[auto_scale_0 @ 0x7e89fc004d80] w:1280 h:720 fmt:yuv420p csp:unknown range:unknown sar:1/1 -> w:1280 h:720 fmt:nv12 csp:unknown range:tv sar:1/1 flags:0x00000004
[auto_scale_0 @ 0x7e89fc004d80] [framesync @ 0x7e89fc004ea8] Selected 1/30 time base
[auto_scale_0 @ 0x7e89fc004d80] [framesync @ 0x7e89fc004ea8] Sync level 1
[graph -1 input from stream 0:0 @ 0x7e89fc002ac0] video frame properties congruent with link at pts_time: 0
[h264_vaapi @ 0x5d9537b59540] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x5d9537b59540] Input surface format is nv12.
[h264_vaapi @ 0x5d9537b59540] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x5d9537b59540] Using VAAPI entrypoint VAEntrypointEncSlice (6).
[h264_vaapi @ 0x5d9537b59540] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x5d9537b59540] RC mode: VBR.
[h264_vaapi @ 0x5d9537b59540] Block Level bitrate control: OFF.
[h264_vaapi @ 0x5d9537b59540] RC target: 50% of 8000000 bps over 500 ms.
[h264_vaapi @ 0x5d9537b59540] RC buffer: 4000000 bits, initial fullness 3000000 bits.
[h264_vaapi @ 0x5d9537b59540] RC framerate: 30/1 (30.00 fps).
[h264_vaapi @ 0x5d9537b59540] Driver does not report any additional prediction constraints.
[h264_vaapi @ 0x5d9537b59540] Using intra, P- and B-frames (supported references: 4 / 1).
[h264_vaapi @ 0x5d9537b59540] All wanted packed headers available (wanted 0xd, found 0x1f).
ffmpeg: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed.

โœ“ vainfo --display drm --device /dev/dri/renderD128
Trying display: drm
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0

@spatenchb that output is exactly what I needed. Your chip's current driver can't encode the way we ask it to, and the older fallback driver crashes. Could you try Intel's non-free driver? It only changes the running container, and recreating the container undoes it.

docker exec fastchannels bash -c 'echo "deb http://deb.debian.org/debian trixie non-free" > /etc/apt/sources.list.d/test-nonfree.list && apt-get update && apt-get install -y intel-media-va-driver-non-free'

Then, without recreating the container, click GPU diagnostics on the Bridge page and paste Copy report.

If that doesn't work, there's a second option on the host. It turns on Intel's HuC firmware (Ubuntu/Debian commands, needs a reboot):

echo "options i915 enable_guc=2" | sudo tee /etc/modprobe.d/i915-guc.conf
sudo update-initramfs -u
sudo reboot

To undo it, delete that file, run sudo update-initramfs -u again and reboot.

A note to everyone: Built-in Capture is meeting a huge range of GPUs, drivers and setups, and I can't test most of them. Getting them all working is going to take a while, so please keep the reports coming. The most useful one is Bridge page โ†’ GPU diagnostics โ†’ Copy report, plus how you run FastChannels (compose, Portainer or docker run) and your OS. If it works, tell me your GPU too. That's just as helpful. If your GPU doesn't work yet, Built-in Capture still runs on the CPU. Thanks, everyone.

Very impressed with the depth of features already.........
When using 1080p

When using 720P

I'm using an 32-core 13th Gen Intel(R) Core(TM) i9-13900HX, little surprised that the 1080p is struggling with 2 streams, but not seeing evidence of the choppy in the client app, but usually it's just a matter of time before it shows up. Regardless, super impressed with how stable this is so far. Great job......

See my post above, is that enough info?

1 Like
ยท	Host	Linux ยท Intel(R) Core(TM) i5-7600T CPU @ 2.80GHz ยท 4 cores
โœ“	Memory	15.0 GB available to the container; 2 tuners need about 2.6 GB
ยท	Versions	FastChannels 6.1.1 ยท kernel 7.3.0-11-generic ยท Google Chrome 158.0.8127.88
โœ“	Disk /data	75.7 GB free
โœ“	Disk capture	75.7 GB free
โœ“	/dev/dri	card0, renderD128
โœ“	renderD128 (used)	Intel 8086:5912, kernel driver i915 ยท mode 660, uid 0, gid 988 ยท capture user can open it
โœ“	GPU seen	Intel via dri
โœ“	GPU drivers	installed
โœ“	Mesa	25
ยท	FFmpeg	ffmpeg version 7.1.5-0+deb13u1 Copyright (c) 2000-2026 the FFmpeg developers
โœ“	Encoder setting	Auto
โœ“	vainfo	H.264 encode: EncSliceLP (EncSliceLP is the low-power engine)
ยท	Speed: CPU	1.3x real time at 720p60 (x264)
Test encodes
โœ• -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:v h264_vaapi -low_power 1 -b:v 4000k
[h264_vaapi @ 0x614664b97a40] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x614664b97a40] Input surface format is nv12.
[h264_vaapi @ 0x614664b97a40] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x614664b97a40] Using VAAPI entrypoint VAEntrypointEncSliceLP (8).
[h264_vaapi @ 0x614664b97a40] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x614664b97a40] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
[vost#0:0/h264_vaapi @ 0x614664b9a600] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x614664b9cdc0] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0x614664b9cdc0] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0x614664b9cdc0] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x614664b9a600] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x614664b9a600] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x614664b9a600] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x614664b9a600] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x614664b99d00] [dec:wrapped_avframe @ 0x614664b9e700] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x614664b99d00] [dec:wrapped_avframe @ 0x614664b9e700] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x614664b99d00] All consumers of this stream are done
[in#0/lavfi @ 0x614664b76740] All consumers are done
[in#0/lavfi @ 0x614664b76740] Terminating thread with return code 0 (success)
[out#0/null @ 0x614664b99ec0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x614664b76740] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x614664b76740]   Input stream #0:0 (video): 9 packets read (3960 bytes); 8 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x614664b76740]   Total: 9 packets (3960 bytes) demuxed
Conversion failed!
โœ• -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:v h264_vaapi -b:v 4000k
[h264_vaapi @ 0x5945764c3a80] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x5945764c3a80] Input surface format is nv12.
[h264_vaapi @ 0x5945764c3a80] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x5945764c3a80] Using VAAPI entrypoint VAEntrypointEncSliceLP (8).
[h264_vaapi @ 0x5945764c3a80] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x5945764c3a80] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
[vost#0:0/h264_vaapi @ 0x5945764c6700] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x5945764c8ec0] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0x5945764c8ec0] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0x5945764c8ec0] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x5945764c6700] Encoder thread received EOF
[vost#0:0/h264_vaapi @ 0x5945764c6700] Could not open encoder before EOF
[vost#0:0/h264_vaapi @ 0x5945764c6700] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vaapi @ 0x5945764c6700] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/wrapped_avframe @ 0x5945764c5e00] [dec:wrapped_avframe @ 0x5945764ca700] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0x5945764c5e00] [dec:wrapped_avframe @ 0x5945764ca700] Terminating thread with return code 0 (success)
[vist#0:0/wrapped_avframe @ 0x5945764c5e00] All consumers of this stream are done
[in#0/lavfi @ 0x5945764a2740] All consumers are done
[in#0/lavfi @ 0x5945764a2740] Terminating thread with return code 0 (success)
[out#0/null @ 0x5945764c5fc0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
[in#0/lavfi @ 0x5945764a2740] Input file #0 (testsrc2=size=1280x720:rate=30):
[in#0/lavfi @ 0x5945764a2740]   Input stream #0:0 (video): 6 packets read (2640 bytes); 5 frames decoded; 0 decode errors; 
[in#0/lavfi @ 0x5945764a2740]   Total: 6 packets (2640 bytes) demuxed
Conversion failed!
โœ• -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:v h264_vaapi -b:v 4000k
[vost#0:0/h264_vaapi @ 0x5843f3f91440] Starting thread...
[vf#0:0 @ 0x5843f3f93bc0] Starting thread...
[vist#0:0/wrapped_avframe @ 0x5843f3f90b80] [dec:wrapped_avframe @ 0x5843f3f95380] Starting thread...
[in#0/lavfi @ 0x5843f3f8bf40] Starting thread...
[graph -1 input from stream 0:0 @ 0x7ab444002ac0] w:1280 h:720 pixfmt:yuv420p tb:1/30 fr:30/1 sar:1/1 csp:unknown range:unknown
[auto_scale_0 @ 0x7ab444004d80] w:iw h:ih flags:'' interl:0
[Parsed_format_0 @ 0x7ab444002240] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_format_0'
[auto_scale_0 @ 0x7ab444004d80] w:1280 h:720 fmt:yuv420p csp:unknown range:unknown sar:1/1 -> w:1280 h:720 fmt:nv12 csp:unknown range:tv sar:1/1 flags:0x00000004
[auto_scale_0 @ 0x7ab444004d80] [framesync @ 0x7ab444004ea8] Selected 1/30 time base
[auto_scale_0 @ 0x7ab444004d80] [framesync @ 0x7ab444004ea8] Sync level 1
[graph -1 input from stream 0:0 @ 0x7ab444002ac0] video frame properties congruent with link at pts_time: 0
[h264_vaapi @ 0x5843f3f8e540] Using input frames context (format vaapi) with h264_vaapi encoder.
[h264_vaapi @ 0x5843f3f8e540] Input surface format is nv12.
[h264_vaapi @ 0x5843f3f8e540] Using VAAPI profile VAProfileH264High (7).
[h264_vaapi @ 0x5843f3f8e540] Using VAAPI entrypoint VAEntrypointEncSlice (6).
[h264_vaapi @ 0x5843f3f8e540] Using VAAPI render target format YUV420 (0x1).
[h264_vaapi @ 0x5843f3f8e540] RC mode: VBR.
[h264_vaapi @ 0x5843f3f8e540] Block Level bitrate control: OFF.
[h264_vaapi @ 0x5843f3f8e540] RC target: 50% of 8000000 bps over 500 ms.
[h264_vaapi @ 0x5843f3f8e540] RC buffer: 4000000 bits, initial fullness 3000000 bits.
[h264_vaapi @ 0x5843f3f8e540] RC framerate: 30/1 (30.00 fps).
[h264_vaapi @ 0x5843f3f8e540] Driver does not report any additional prediction constraints.
[h264_vaapi @ 0x5843f3f8e540] Using intra, P- and B-frames (supported references: 4 / 1).
[h264_vaapi @ 0x5843f3f8e540] All wanted packed headers available (wanted 0xd, found 0x1f).
ffmpeg: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed.
โœ“ vainfo --display drm --device /dev/dri/renderD128
Trying display: drm
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
	  VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0

@spatenchb thanks. It looks like the new driver didn't take effect, and my instructions had a flaw: the diagnostics don't recognise that driver. This version tests the GPU directly. It only changes the running container, and recreating the container undoes it.

docker exec fastchannels bash -c 'echo "deb http://deb.debian.org/debian trixie non-free" > /etc/apt/sources.list.d/test-nonfree.list && apt-get update && apt-get install -y intel-media-va-driver-non-free i965-va-driver-shaders; dpkg -l | grep -E "intel-media|i965"; for d in iHD i965; do echo "== $d"; LIBVA_DRIVER_NAME=$d ffmpeg -hide_banner -loglevel error -vaapi_device /dev/dri/renderD128 -f lavfi -i testsrc2=size=1280x720:rate=30 -vf format=nv12,hwupload -c:v h264_vaapi -b:v 4000k -frames:v 30 -f null - && echo "$d WORKS"; done'

Please paste everything it prints. Afterwards, recreate the container to get back to normal.

OK. Here it is.

Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:3 https://dl.google.com/linux/chrome-stable/deb stable InRelease [2548 B]
Get:4 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:5 http://deb.debian.org/debian trixie/non-free amd64 Packages [100 kB]
Get:6 http://deb.debian.org/debian trixie/main amd64 Packages [9679 kB]
Get:7 https://dl.google.com/linux/chrome-stable/deb stable/main amd64 Packages [1405 B]
Get:8 http://deb.debian.org/debian trixie-updates/main amd64 Packages [1108 B]
Get:9 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [311 kB]
Fetched 10.3 MB in 6s (1675 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  i965-va-driver intel-media-va-driver
The following NEW packages will be installed:
  i965-va-driver-shaders intel-media-va-driver-non-free
0 upgraded, 2 newly installed, 2 to remove and 3 not upgraded.
Need to get 7672 kB of archives.
After this operation, 29.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian trixie/non-free amd64 i965-va-driver-shaders amd64 2.4.1-2 [946 kB]
Get:2 http://deb.debian.org/debian trixie/non-free amd64 intel-media-va-driver-non-free amd64 25.2.3+ds1-1 [6726 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, <STDIN> line 2.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Fetched 7672 kB in 2s (5113 kB/s)
(Reading database ... 14835 files and directories currently installed.)
Removing i965-va-driver:amd64 (2.4.1+dfsg1-2) ...
Removing intel-media-va-driver:amd64 (25.2.3+dfsg1-1) ...
Selecting previously unselected package i965-va-driver-shaders:amd64.
(Reading database ... 14824 files and directories currently installed.)
Preparing to unpack .../i965-va-driver-shaders_2.4.1-2_amd64.deb ...
Unpacking i965-va-driver-shaders:amd64 (2.4.1-2) ...
Selecting previously unselected package intel-media-va-driver-non-free:amd64.
Preparing to unpack .../intel-media-va-driver-non-free_25.2.3+ds1-1_amd64.deb ...
Unpacking intel-media-va-driver-non-free:amd64 (25.2.3+ds1-1) ...
Setting up i965-va-driver-shaders:amd64 (2.4.1-2) ...
Setting up intel-media-va-driver-non-free:amd64 (25.2.3+ds1-1) ...
ii  i965-va-driver-shaders:amd64         2.4.1-2                              amd64        VAAPI driver for Intel G45 & HD Graphics family
ii  intel-media-va-driver-non-free:amd64 25.2.3+ds1-1                         amd64        VAAPI driver for the Intel GEN8+ Graphics family
== iHD
iHD WORKS
== i965
i965 WORKS

@spatenchb that's the result I was hoping for: your GPU encodes with Intel's non-free driver. FastChannels won't use it yet, because it only recognises the free driver. I need to make that change, and I'll post here when it's out. Until then you can recreate the container to get back to normal. Thanks very much for testing.

OK. Thanks for working on it. I did recreate the container, but it is still showing GPU encode test failed: [AVHWDeviceContext @ 0x5d3f308acf40] libva: va_openDriver() returns 0.

Is that correct?

correct, once you recreated it, it reverted the test. i'm adding the automatic fix now -- gimme a few and i'll push a new version.

FastChannels 6.1.2 is out

  • More GPUs in Built-in Capture: if the GPU test fails on an Intel chip (such as 7th-gen Kaby Lake), FastChannels now tries Intel's non-free driver automatically and keeps it only if it works.
  • Better GPU diagnostics: it now suggests things to try. If you're still stuck, paste Copy report here.
  • Windows: no GPU showing up? Run wsl --update and restart Docker Desktop.
  • HBO Max: adds the HBO, Comedy, Drama, Hits and Movies channels (needs a plan that includes them). @TerryD
2 Likes

using GPU, or just CPU?