mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.66k stars 168 forks source link

feature request: HA addon: pass /dev/dri to container for hwaccel in ffmpeg #874

Open gtxaspec opened 1 year ago

gtxaspec commented 1 year ago

in the HA addon, pass the /dev/dri to the container to enable hwaccel in ffmpeg

currently:

# cat /dev/dri/renderD128 
cat: /dev/dri/renderD128: Operation not permitted
mrlt8 commented 1 year ago

does the HW branch I the edge repo work? https://github.com/mrlt8/edge-repo

gtxaspec commented 1 year ago
Input #0, rtsp, from 'rtsp://0.0.0.0:8554/bedroom':
  Metadata:
    title           : Stream
  Duration: N/A, start: 0.065417, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn
  Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp
implib-gen: libX11.so.6: failed to load library 'libX11.so.6' via dlopen: libX11.so.6: cannot open shared object file: No such file or directory
ffmpeg: libX11.so.6.init.c:61: load_library: Assertion `0 && "Assertion in generated code"' failed.
Aborted (core dumped)

IIRC, debian 12 bookworm includes ffmpeg 5.0, perhaps thats an option to use a newer base image, just FYI.