Home

Awesome

RTSPtoImage

RTSP Stream to Image or Mjpeg

use ffmpeg

RTSPtoImage image

Recommendation

This is an example of getting pictures from rtsp stream

Installation

mac os

brew install ffmpeg

debian / ubuntu

apt install libavcodec-dev libavcodec-ffmpeg56 libavformat-dev libavformat-ffmpeg56

Download Source

  1. Download source
    $ git clone https://github.com/deepch/RTSPtoImage  
    
  2. CD to Directory
     $ cd RTSPtoImage/
    
  3. Test Run
     $ GO111MODULE=on go run *.go
    
  4. Open Browser
    open web browser http://127.0.0.1:8083 work chrome, safari, firefox
    

Configuration

Edit file config.json

format:

{
  "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

paypal.me/AndreySemochkin - You can make one-time donations via PayPal. I'll probably buy a coffee tea. :tea: