play-from-disk
play-from-disk demonstrates how to send video and/or audio to an ion-sfu from files on disk.
Instructions
Create IVF named output.ivf
that contains a VP8 track and/or output.ogg
that contains a Opus track
ffmpeg -i $INPUT_FILE -g 30 output.ivf
ffmpeg -i $INPUT_FILE -c:a libopus -page_duration 20000 -vn output.ogg
Download play-from-disk
go get github.com/pion/ion-sfu/examples/play-from-disk
Run play-from-disk
The output.ivf
you created should be in the same directory as play-from-disk
.
Run play-from-disk $yourroom
Congrats, you are now publishing video to the ion-sfu! Now start building something cool!