This is the Dockerfile for the mjpeg-proxy written by the user vvidic.
Sources for the Dockerfile:
Sources for mjpeg-proxy can be found in the repository mjpeg-proxy of the user vvidic.
Images can be pulled from the following container registries:
docker pull hafu/mjpeg-proxy-godocker pull ghcr.io/hafu/mjpeg-proxy-godocker pull registry.gitlab.com/hafu/docker-mjpeg-proxy-go/mjpeg-proxy-goThere only exists a latest image. It is rebuild once a week.
With arguments:
$ docker run -it --rm -p 8080:8080 hafu/mjpeg-proxy-go mjpeg-proxy \
-source http://source.stream.tld/stream.mjpg
With sources file:
$ cat sources.json
[
{
"Source" : "http://213.193.89.202/axis-cgi/mjpg/video.cgi",
"Path" : "/source1"
},
{
"Source" : "http://klosterplatz.selfip.info/axis-cgi/mjpg/video.cgi",
"Path" : "/source2"
}
]
$ docker run -it --rm -p 8080:8080 -v $(pwd)/sources.json:/srv/sources.json:ro \
hafu/mjpeg-proxy-go mjpeg-proxy -sources /srv/sources.json
Usage of mjpeg-proxy:
-bind string
proxy bind address (default ":8080")
-clientheader string
request header with client address
-maxprocs int
limit number of CPUs used
-password string
source uri password
-path string
proxy serving path (default "/")
-rate float
limit output frame rate
-sendbuffer int
limit buffering of frames (default 4096)
-source string
source uri (default "http://example.com/img.mjpg")
-sources string
JSON configuration file to load sources from
-stopduration duration
follow source after last client (default 1m0s)
-username string
source uri username
Content type
Image
Digest
sha256:6ea0c6347…
Size
11.9 MB
Last updated
7 days ago
docker pull hafu/mjpeg-proxy-go