Code Monkey home page Code Monkey logo

rtsptoimage's Introduction

RTSPtoImage

RTSP Stream to Image or Mjpeg

use ffmpeg

RTSPtoImage image

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
    $ 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. ๐Ÿต

rtsptoimage's People

Contributors

deepch avatar renovate-bot avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.