🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/xiangxud/rtmp-to-webrtc

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/xiangxud/rtmp-to-webrtc

v0.0.0-20220608121943-07d7da9197ce
Source
Go
Version published
Created
Source

rtmp-to-webrtc

This repo demonstrates a RTMP server that on every RTMP publish makes the audio/video available via WebRTC playback.

How to use

  • go run *.go
  • Open http://localhost:8080/
  • Publish an RTMP feed to rtmp://localhost:1935/publish/foobar. It must be H264 and alaw

AAC convert to OPUS

Modify from source https://github.com/Glimesh/rtmp-ingest.git thanks Glimesh

Modify from source mediadevices/pkg/codec/opus at master · pion/mediadevices (github.com)

Modify from source hraban/opus: Go wrapper for libopus (golang) (github.com)

Opus lib ref xiph/opus: Modern audio compression for the internet. (github.com)

Opus Lib : static build(please add your lib to path ./opus/lib name like :libopus-linux-x64.a), pkgconfig dynamic

please build your lib or install your opus lib dev env

of course you can use opus "gopkg.in/hraban/opus.v2"

instead of opus "github.com/sean-der/rtmp-to-webrtc/opus" (just my study)

macOS Development

brew install opusfile fdk-aac

Ubuntu / Linux Development

apt install -y pkg-config build-essential libopusfile-dev libfdk-aac-dev libavutil-dev libavcodec-dev libswscale-dev

FAQs

Package last updated on 08 Jun 2022

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