Sign inSign up

eroji/rtsp2mjpg

By eroji

Updated about 6 years ago

RTSP to MJPEG stream conversion using FFmpeg and FFserver

Image
6

100K+

eroji/rtsp2mjpg repository overview

RTSP to MJPEG stream conversion using FFmpeg and FFserver

Below are the environmental variables available and their default value. Override them as needed.

VariablesDefault
RTSP_URLrtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream
FFSERVER_LOG_LEVELerror
FFMPEG_LOG_LEVELwarning
FFMPEG_INPUT_OPTSempty
FFMPEG_OUTPUT_OPTSempty
Output

Live stream: http://<IP>:8090/live.mjpg
Still snapshot: http://<IP>:8090/still.jpg

The ffserver.conf values are set for Wyze Cam V2 output. If you need to customize it you can pull the source and build with your own values.

Docker Compose
  • Clone the repo
  • Edit docker-compose.yaml for any customizations needed
  • Launch the containers using docker-compose up -d

There will be an nginx container included to proxy ffserver. I find that it handles situations where the ffserver backend becomes unresponse better with a timeout reponse.

With docker-compose, the output can be accessed via:

Live stream: http://<IP>/live.mjpg
Still snapshot: http://<IP>/still.jpg

Tag summary

Content type

Image

Digest

Size

21.9 MB

Last updated

about 6 years ago

docker pull eroji/rtsp2mjpg