restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

vaapi error

Open etofi opened this issue 10 months ago • 4 comments

Describe the bug Unfortunately, streaming suddenly stopped working. Previously it worked perfectly with the existing settings and now an error message appears when loading the stream..

To Reproduce Steps to reproduce the behavior:

  1. Create Docker Container
docker create \
--name restreamer \
--restart=always \
--device=/dev/dri/renderD128:/dev/dri/renderD128 \
--privileged \
-v /volume1/docker/restreamer/config:/core/config \
-v /volume1/docker/restreamer/data:/core/data \
-p 31000:8080 \
-p 31001:8181 \
-p 31002:1935 \
-e TZ=Europe/Berlin \
datarhei/restreamer:vaapi-latest
  1. Start Stream

  2. See error

Fehler: ffmpeg: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed.

Expected behavior Stream should be loaded.

Log

@1714334197 ffmpeg version 6.1.1-datahrei Copyright (c) 2000-2023 the FFmpeg developers
@1714334197   built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
@1714334197   configuration: --extra-version=datahrei --prefix=/usr/local --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-vaapi --enable-libv4l2 --enable-libfreetype --enable-alsa --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libdav1d --enable-librav1e --disable-ffplay --disable-ffprobe --disable-debug --disable-doc
@1714334197   libavutil      58. 29.100 / 58. 29.100
@1714334197   libavcodec     60. 31.102 / 60. 31.102
@1714334197   libavformat    60. 16.100 / 60. 16.100
@1714334197   libavdevice    60.  3.100 / 60.  3.100
@1714334197   libavfilter     9. 12.100 /  9. 12.100
@1714334197   libswscale      7.  5.100 /  7.  5.100
@1714334197   libswresample   4. 12.100 /  4. 12.100
@1714334197   libpostproc    57.  3.100 / 57.  3.100
@1714334197 Input #0, mpjpeg, from 'http://192.168.178.33:8080/?action=stream':
@1714334197   Duration: N/A, bitrate: N/A
@1714334197   Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080, 25 tbr, 25 tbn
@1714334197 Input #1, lavfi, from 'anullsrc=r=44100:cl=mono':
@1714334197   Duration: N/A, start: 0.000000, bitrate: 352 kb/s
@1714334197   Stream #1:0: Audio: pcm_u8, 44100 Hz, mono, u8, 352 kb/s
@1714334197 Stream mapping:
@1714334197   Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_vaapi))
@1714334197   Stream #1:0 -> #0:1 (pcm_u8 (native) -> aac (native))
@1714334197 Press [q] to stop, [?] for help
@1714334197 [swscaler  ] deprecated pixel format used, make sure you did set range correctly
@1714334197 ffmpeg: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed.

etofi avatar Apr 28 '24 20:04 etofi

I fixed the error myself. Install this via the console of the container:

apt install intel-media-va-driver-non-free i965-va-driver-shaders

Can you please install this permanently in the Docker container?

etofi avatar May 01 '24 08:05 etofi

Please try the latest vaapi-dev image: docker pull datarhei/restreamer:vaapi-dev

ioppermann avatar May 02 '24 15:05 ioppermann

Please try the latest vaapi-dev image: docker pull datarhei/restreamer:vaapi-dev

This version is working

etofi avatar May 03 '24 06:05 etofi

Had the same problem. I have a Debian 11 LXC running on a Proxmox 8.1 host. The current DEV version works.

Docker Intel GPU Passtrough LXC Container Proxmox

Problem https://github.com/datarhei/restreamer/issues/655 remains unchanged :(

Hoerli1337 avatar May 17 '24 14:05 Hoerli1337