html5 Canvas to ffmpeg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

html5 Canvas to ffmpeg

kamal shadi
Hi all,

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?

Thanks,
Kamal
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: html5 Canvas to ffmpeg

Frank Tetzel
> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".