Skip to content

kevmo314/ffmpeg-webrtc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kevmo314/ffmpeg-webrtc

It's ffmpeg with WebRTC support! This fork uses webrtc-rs to publish WebRTC streams using the WHIP protocol.

This work is inspired by a pull request to add WebRTC support to OBS Studio, which also did most of the heavy lifting for this implementation.

This work is sponsored by Muxable.

Compiling

Build FFmpeg:

./configure
make -j

The build step requires that Rust is installed, as it will call cargo build to build the WebRTC bindings.

Running

A WHIP server is necessary. If you want one to test with, check out TinyWHIP.

Then, run:

./ffmpeg  -re -stream_loop -1 -i ~/video.mp4 -c:v copy -c:a copy -f whip http://localhost:8080

Where ~/video.mp4 is an h264 + opus encoded video file. Some sample videos can be downloaded here.

About

FFmpeg WebRTC (WHIP) muxer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 91.5%
  • Assembly 6.6%
  • Makefile 1.3%
  • C++ 0.2%
  • Objective-C 0.2%
  • Cuda 0.1%
  • Other 0.1%