Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vaapi error #743

Open
etofi opened this issue Apr 28, 2024 · 4 comments
Open

vaapi error #743

etofi opened this issue Apr 28, 2024 · 4 comments
Labels
bug Program error or software error or software anomaly.

Comments

@etofi
Copy link

etofi commented Apr 28, 2024

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 etofi added the bug Program error or software error or software anomaly. label Apr 28, 2024
@etofi
Copy link
Author

etofi commented May 1, 2024

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?

@ioppermann
Copy link
Member

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

@etofi
Copy link
Author

etofi commented May 3, 2024

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

This version is working

@Hoerli1337
Copy link

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 #655 remains unchanged :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Program error or software error or software anomaly.
Projects
None yet
Development

No branches or pull requests

3 participants