Sign inSign up

snowzach/mjproxy

By snowzach

Updated almost 7 years ago

MJPEG Proxy Server

Image
0

1.3K

snowzach/mjproxy repository overview

MJPEG Streaming Library - And Proxy

I borrowed this code from github.com/saljam/mjpeg and made a few tweaks and fixed a few issues. It needs some optimzing still

Proxy - Config

The proxy is in the mjproxy directory.

The config is very simple, by default the docker image looks for a config file /opt/rts2p/rts2p.yaml but the config library supports yaml, toml or json. You can specify -c to the config file you want.

Every config option is shown:

server:
  port: 8080
  username: myusername
  password: mypassword

streams:
  - url: "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"
    name: "mytestfeed"
    interval: "250ms"

This would create the mjpeg feed http://server:8080/mytestfeed and require a login of myusername with password mypassword Omit the username and password fields if you do not want to require a login. This will send a new image every 250ms. The default is no delay (send frames as fast as possible)

Docker

Example docker command: docker run -it -p 5554:5554 -v /my/config.yaml:/opt/mjproxy/mjproxy.yaml snowzach/mjproxy:latest

Tag summary

Content type

Image

Digest

Size

85.4 MB

Last updated

almost 7 years ago

docker pull snowzach/mjproxy