https://github.com/deepch/rtsptoimage
RTSP to Image Poster JPEG or MJpeg Stream
https://github.com/deepch/rtsptoimage
Last synced: 11 months ago
JSON representation
RTSP to Image Poster JPEG or MJpeg Stream
- Host: GitHub
- URL: https://github.com/deepch/rtsptoimage
- Owner: deepch
- Created: 2021-03-21T18:11:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T07:38:45.000Z (almost 2 years ago)
- Last Synced: 2024-12-07T03:41:04.784Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.42 MB
- Stars: 43
- Watchers: 3
- Forks: 14
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RTSPtoImage
RTSP Stream to Image or Mjpeg
use ffmpeg

## Recommendation
This is an example of getting pictures from rtsp stream
- This is not a working project, this is an example!
- For ip cameras, I recommend using the usual get request for the poster. example for dahua [http:///onvif/media_service/snapshot?channel=0&subtype=0]
- For this example, I recommend using CUDA, but this will require separate work and will greatly reduce the load on the cpu.
- I recommend limiting the number of frames when using mjpeg or using gpu.
## Installation
### mac os
brew install ffmpeg
### debian / ubuntu
apt install libavcodec-dev libavcodec-ffmpeg56 libavformat-dev libavformat-ffmpeg56
### Download Source
1. Download source
```bash
$ git clone https://github.com/deepch/RTSPtoImage
```
3. CD to Directory
```bash
$ cd RTSPtoImage/
```
4. Test Run
```bash
$ GO111MODULE=on go run *.go
```
5. Open Browser
```bash
open web browser http://127.0.0.1:8083 work chrome, safari, firefox
```
## Configuration
### Edit file config.json
format:
```bash
{
"server": {
"http_port": ":8083"
},
"streams": {
"H264_AAC": {
"url": "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"
}
}
}
```
## Limitations
Video Codecs Supported: H264
Audio Codecs Supported: no
## Team
Deepch - https://github.com/deepch streaming developer
Dmitry - https://github.com/vdalex25 web developer
## Other Example
Examples of working with video on golang
- [RTSPtoWeb](https://github.com/deepch/RTSPtoWeb)
- [RTSPtoWebRTC](https://github.com/deepch/RTSPtoWebRTC)
- [RTSPtoWSMP4f](https://github.com/deepch/RTSPtoWSMP4f)
- [RTSPtoImage](https://github.com/deepch/RTSPtoImage)
- [RTSPtoHLS](https://github.com/deepch/RTSPtoHLS)
- [RTSPtoHLSLL](https://github.com/deepch/RTSPtoHLSLL)
[](https://www.paypal.me/AndreySemochkin) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: