[FFmpeg-user] html5 Canvas to ffmpeg

Frank Tetzel s1445051 at mail.zih.tu-dresden.de
Thu Jan 11 01:11:53 EET 2018


> I am making animations in html5 canvas. I am able to get frames from
> canvas using requestAnimationFrame() and convert them to png dataurl.
> I want to send these frames to an ffmpeg running on localhost for
> live encoding (I want to send the encoded video to rtmp server
> afterward).
> 
> Does anyone have an experience here? What is the recommended setup
> here? Does it even make sense to use ffmpeg here?

Browsers nowadays have a builtin video encoder for WebRTC [1]. Consider
using this instead of ffmpeg + rtmp.

[1] https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API


More information about the ffmpeg-user mailing list