Skip to content

Latest commit

 

History

History

ustreamer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

This Image is built and used by prind.

ustreamer packaged in Docker

What is ustreamer?

µStreamer is a lightweight and very quick server to stream MJPEG video from any V4L2 device to the net. All new browsers have native support of this video format, as well as most video players such as mplayer, VLC etc. µStreamer is a part of the Pi-KVM project designed to stream VGA and HDMI screencast hardware data with the highest resolution and FPS possible.

via https://github.com/pikvm/ustreamer

Usage

By default, ustreamer is looking for device /dev/video0. A docker device binding can be utilized to provide this device without the need to change the default CMD.

Run

docker run -p 8080:8080 --device /dev/video0:/dev/video0 mkuf/ustreamer:latest

Compose

services:
  ustreamer:
    image: mkuf/ustreamer:latest
    ports:
      - "8080:8080"
    devices:
      - /dev/video0:/dev/video0

Defaults

Entity Description
User ustreamer (1000:1000)
Workdir /opt
Entrypoint /opt/ustreamer
Cmd --host=0.0.0.0 --port=8080

Ports

Port Description
8080/tcp Default WebUi Port

Volumes

none

Tags

Tag Description Static
latest Refers to the most recent runtime Image. May point to a new build within 24h, depending on code changes in the upstream repository.
<git description>
eg: v5.51-1-g3c7564d
Refers to a specific git description in the upstream repository. eg: pikvm/ustreamer:v5.51-1-g3c7564d Yes

Targets

Target Description Pushed
build Pull Upstream Codebase and build application No
run Default runtime Image Yes

Healthcheck

/opt/health.sh gets executed every 5s inside the container.
The script does the following:

  • gets the JSON structure with the state of the server
  • Checks the following values
    • .ok is set to true, which indicates ustreamer is working
    • .result.source.online is set to true, which indicates the source (webcam) is returning an image rather than NO SIGNAL
  • If one of the above requirements is not met, the script exits with a failure state to indicate the container is unhealthy