mpegts-to-webrtc

command module
v0.1.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 18 Imported by: 0

README

mpegts-to-webrtc

Go Report

demux mpegts to H264 and Opus then send to a WebRTC client using pion.

  • offer from file, mpegts from stdin
    • read base64 offer from file (needed -offerFile)
    • read mpegts stream from stdin
ffmpeg -i {{src}} -c:v copy -c:a libopus -ar 48000 -ac 2 -f mpegts -pes_payload_size 0 pipe:1 | mpegts-to-webrtc -offerFile {{offer-file-path}}
  • offer from stdin, mpegts from ffmpeg
    • read base64 offer from stdin
    • launch ffmpeg as child process and read stdout (needed -ffmpeg)
mpegts-to-webrtc -ffmpeg ffmpeg -i {{src}} -c:v copy -c:a libopus -ar 48000 -ac 2 -f mpegts -pes_payload_size 0 pipe:1 < {{offer-file-path}}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL