Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eroji/rtsp2mjpg
RTSP to MJPEG stream conversion using FFmpeg and FFserver
https://github.com/eroji/rtsp2mjpg
Last synced: 4 days ago
JSON representation
RTSP to MJPEG stream conversion using FFmpeg and FFserver
- Host: GitHub
- URL: https://github.com/eroji/rtsp2mjpg
- Owner: eroji
- Created: 2020-01-07T20:41:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T12:36:22.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T21:45:22.210Z (3 months ago)
- Language: Dockerfile
- Homepage:
- Size: 25.4 KB
- Stars: 99
- Watchers: 7
- Forks: 41
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 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://:8090/live.mjpg`
Still snapshot: `http://: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:///live.mjpg`
Still snapshot: `http:///still.jpg`