简体   繁体   English

允许从 html5 画布下载视频

[英]Allow video download from html5 canvas

I am building a small app that allows to add css3 filters like grayscale in a video and download it.我正在构建一个小应用程序,允许在视频中添加 css3 过滤器(如灰度)并下载它。 The video won't be longer than 6 seconds.视频不会超过 6 秒。 So, I am first loading the video in the canvas and then applying the filter that user demands.因此,我首先在画布中加载视频,然后应用用户要求的过滤器。 Now I want user to be able to download the filtered video.现在我希望用户能够下载过滤后的视频。 The canvas.toDataURL() is only meant for images. canvas.toDataURL()仅用于图像。 Is there any high level canvas api to achieve this?是否有任何高级画布 api 来实现这一目标?

Thank you谢谢

Not that I know of.从来没听说过。 I think this is something that should be done server-side.我认为这是应该在服务器端完成的事情。 Either send the raw video to the server and tell it what filters were applied so you can re-create the effect on the server OR use the solution proposed here capturing html5 canvas output as video or swf or png sequence?将原始视频发送到服务器并告诉它应用了哪些过滤器,以便您可以在服务器上重新创建效果,或者使用此处提出的解决方案将 html5 画布输出捕获为视频或 swf 或 png 序列? (hint: it's also server side) (提示:它也是服务器端)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM