Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from eroji/rtsp2mjpg

RTSP to MJPEG stream conversion using FFmpeg and FFserver

Notifications You must be signed in to change notification settings

idoodler/rtsp2mjpg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTSP to MJPEG stream conversion using FFmpeg and FFserver

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

Variables Default
RTSP_URL rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream
FFSERVER_LOG_LEVEL error
FFMPEG_LOG_LEVEL warning
FFMPEG_INPUT_OPTS empty
FFMPEG_OUTPUT_OPTS empty

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

About

RTSP to MJPEG stream conversion using FFmpeg and FFserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 59.0%
  • Shell 41.0%