// the find
ashellunts/ffmpeg-to-webrtc
Stream video from ffmpeg to web(rtc)
A minimal Go demo that pipes ffmpeg's H.264 stdout into a browser via WebRTC using the pion library. It's a working proof-of-concept for screen/camera streaming without a media server. The target audience is developers who want to understand the ffmpeg→WebRTC plumbing, not ship a product.
Uses pion, which is the serious Go WebRTC library — not a toy wrapper. The SDP exchange is manual-copy, which strips away all the signaling complexity and makes the core data path easy to follow. Surprisingly small codebase (~4 files of real logic) so you can actually read and understand the whole thing. The bat files for screen capture and webcam are practical starting points for Windows users.
Manual SDP copy-paste via jsfiddle is not a signaling mechanism — you can't build anything on top of this without replacing that entirely. Audio is not handled at all. The README warns about 'several seconds of delay' with no guidance on fixing it. Committed `test_program.exe` binary in the repo is a red flag for any serious use. Hasn't had meaningful development in years; ~975 stars are from curiosity, not adoption.