datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.92k stars 448 forks source link

Build docker image on RPi 4: ffprobe error #242

Closed greycoding closed 3 years ago

greycoding commented 3 years ago

I created a Docker image of restreamer on my Raspberry Pi 4 (4GB) using the following command:

docker build -f dockerfile-rpi -t restreamer .

I then created a container from it:

docker run -d --restart always --name restreamer -e "RS_USERNAME=admin" -e "RS_PASSWORD=*****" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db --tmpfs /tmp/hls restreamer:latest

The web interface is displayed correctly, but when I try to start the stream, I get the following message:

Your stream was not accessible. ffprobe: error while loading shared libraries: libmmal_core.so: cannot open shared object file: No such file or directory

Is this a known issue? Do I need to set any additional parameters?

ioppermann commented 3 years ago

You have to mount the directory /opt/vc into the container.

docker run -d --restart always --name restreamer -e "RS_USERNAME=admin" -e "RS_PASSWORD=*****" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db -v /opt/vc:/opt/vc --tmpfs /tmp/hls restreamer:latest

Please also check this thread: https://github.com/datarhei/restreamer/issues/148

greycoding commented 3 years ago

Hi @ioppermann ,

thank you! The /opt/vc parameter in conjunction with the --privileged parameter (as described in the thread you mentioned) helped to get the stream starting.