Skip to content

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

License

Notifications You must be signed in to change notification settings

wakabayashik/mpegts-to-webrtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages