Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mpolinowski/rtsptowebrtc

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mpolinowski/rtsptowebrtc

  • v0.0.0-20210216115251-c07c5de6c828
  • Source
  • Go
  • Socket score

Version published
Created
Source

RTSP to WebRTC

Embed your Cameras RTSP Stream via WebRTC

This is a clone of the RTSPtoWebRTC Project deepch!

Steps to run this project:

  1. Install Go for LINUX, Windows or macOS

  2. Download /Clone this Repository RTSPtoWebRTC

  3. Enter the folder you downloaded the code into and edit the file ./config.json to add your personal IP camera URLs, e.g.:

}
   "INSTAR_8015_FHD": {
      "on_demand": true,
      "url": "rtsp://admin:instar@192.168.2.77/11"
   },
    "INSTAR_9020_FHD": {
      "on_demand": true,
      "url": "rtsp://admin:instar@192.168.2.117/12"
   },
    "INSTAR_IN-7011_HD": {
      "on_demand": true,
      "url": "rtsp://admin:instar@192.168.2.63/11"
   }
}
  1. Now run the following command to run the application in development mode:
$ go run .

or build and run your application:

$ go build .
$ ./RTSPtoWebRTC

The build command will build the binary release version of your Go application. This file will be called RTSPtoWebRTC - without an extension - on LINUX and can be executed from your command line or through a script (make sure that the file is made executable before running). If you run the command on Windows, you end up with an RTSPtoWebRTC.exe file that you can execute by double-clicking.

  1. Open your Web browser and visit the following URL:
http://127.0.0.1:8888

RTSPtoWebRTC


################ ORIGINAL README #####################


RTSPtoWebRTC

RTSP Stream to WebBrowser over WebRTC based on Pion

full native! not use ffmpeg or gstreamer

if you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f

Team

Deepch - https://github.com/deepch streaming developer

Dmitry - https://github.com/vdalex25 web developer

Now test work on (chrome, safari, firefox) no MAC OS

RTSPtoWebRTC image

Installation

$ export GO111MODULE=on
$ go get github.com/deepch/RTSPtoWebRTC
$ cd ~/go/src/github.com/deepch/RTSPtoWebRTC
$ go run .

or

$ go build .
$ ./RTSPtoWebRTC
open web browser http://127.0.0.1:8083 work chrome, safari, firefox

Configuration

Edit file config.json

format:

{
  "server": {
    "http_port": ":8083"
  },
  "streams": {
    "demo1": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    },
    "demo2": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    },
    "demo3": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    }
  }
}

Limitations

Video Codecs Supported: H264

Audio Codecs Supported: pcm alaw and pcm mulaw

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

FAQs

Package last updated on 16 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc