MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software. It is the successor of uvc-streamer, a Linux-UVC streaming application with Pan/Tilt.
This snap ships the input_uvc, input_file, input_http and input_ptp2 as well as the output_file, output_http, output_rtsp, output_udp and output_viewer plugins by default, opencv is currently not supported.
Additionally to the mjpg-streamer command the snap ships a service that can be configured via the /var/snap/mjpg-streamer/current/config file. Set the DAEMON= option in there to "true", then run "snap restart mjpg-streamer" (or reboot the system) to get the mjpg-streamer service up and running.
Please make sure to run "snap connect mjpg-streamer:camera" to allow the app to access /dev/video*.
Swap out openSUSE_Leap_15.2 for openSUSE_Leap_15.1, openSUSE_Leap_15.0, or openSUSE_Tumbleweed if you’re using a different version of openSUSE.
With the repository added, import its GPG key:
sudo zypper --gpg-auto-import-keys refresh
Finally, upgrade the package cache to include the new snappy repository:
sudo zypper dup --from snappy
Snap can now be installed with the following:
sudo zypper install snapd
You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.
Additionally, enable and start both the snapd and the snapd.apparmor services with the following commands: