<tfoot id='fepxr'></tfoot>
    <legend id='fepxr'><style id='fepxr'><dir id='fepxr'><q id='fepxr'></q></dir></style></legend>

    1. <i id='fepxr'><tr id='fepxr'><dt id='fepxr'><q id='fepxr'><span id='fepxr'><b id='fepxr'><form id='fepxr'><ins id='fepxr'></ins><ul id='fepxr'></ul><sub id='fepxr'></sub></form><legend id='fepxr'></legend><bdo id='fepxr'><pre id='fepxr'><center id='fepxr'></center></pre></bdo></b><th id='fepxr'></th></span></q></dt></tr></i><div id='fepxr'><tfoot id='fepxr'></tfoot><dl id='fepxr'><fieldset id='fepxr'></fieldset></dl></div>

      <small id='fepxr'></small><noframes id='fepxr'>

          <bdo id='fepxr'></bdo><ul id='fepxr'></ul>

      1. 将 HTML5 画布序列转换为视频文件

        时间:2023-09-06

          • <bdo id='7MJrL'></bdo><ul id='7MJrL'></ul>
          • <i id='7MJrL'><tr id='7MJrL'><dt id='7MJrL'><q id='7MJrL'><span id='7MJrL'><b id='7MJrL'><form id='7MJrL'><ins id='7MJrL'></ins><ul id='7MJrL'></ul><sub id='7MJrL'></sub></form><legend id='7MJrL'></legend><bdo id='7MJrL'><pre id='7MJrL'><center id='7MJrL'></center></pre></bdo></b><th id='7MJrL'></th></span></q></dt></tr></i><div id='7MJrL'><tfoot id='7MJrL'></tfoot><dl id='7MJrL'><fieldset id='7MJrL'></fieldset></dl></div>

                <small id='7MJrL'></small><noframes id='7MJrL'>

                  <legend id='7MJrL'><style id='7MJrL'><dir id='7MJrL'><q id='7MJrL'></q></dir></style></legend>
                    <tbody id='7MJrL'></tbody>
                  <tfoot id='7MJrL'></tfoot>
                  本文介绍了将 HTML5 画布序列转换为视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想将 HTML5 画布中的动画转换为可以上传到 YouTube 的视频文件.是否有任何类型的屏幕捕获 API 或可以让我以编程方式执行此操作的东西?

                  I'd like to convert an animation in HTML5 canvas to a video file that could be uploaded to YouTube. Is there any sort of screen capture API or something that could allow me to do this programatically?

                  推荐答案

                  有一个 whammy 库声称可以使用 JavaScript 从静止图像中生成 webm 视频:
                  http://antimatter15.com/wp/2012/08/whammy-a-real-time-javascript-webm-encoder/

                  There exist the whammy library which claims to produce webm videos from stills using JavaScript:
                  http://antimatter15.com/wp/2012/08/whammy-a-real-time-javascript-webm-encoder/

                  请注意,存在一些限制(正如预期的那样).这个编码器基于 webp 图像格式,目前只在 Chrome 中支持(也许新的 Opera 也是,但我没有检查).这意味着您不能在其他浏览器中进行编码,除非您首先找到一种方法来编码您想要用作 webp 图像的图像(请参阅 此链接 了解可能的解决方案.

                  Note that there are limitations (as to be expected). This encoder bases itself on the webp image format which is currently only supported in Chrome (perhaps the new Opera too but I haven't checked). This means you can't encode in other browsers unless you find a way to encode the image you want to use as a webp image first (see this link for possible solution for that).

                  除此之外,无法使用 JavaScript 从图像创建视频文件,也无法使用原生浏览器 API 从画布创建视频文件.

                  Beyond that there is no way to create a video file from images using JavaScript and canvas using native browser APIs.

                  这篇关于将 HTML5 画布序列转换为视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 App Scripts (js) 中运行 Youtube 数据服务时出错 - 已超出未经验证使用的每日限制 下一篇:内容脚本中的 addEventListener 不起作用

                  相关文章

                  <small id='fK0zi'></small><noframes id='fK0zi'>

                    <bdo id='fK0zi'></bdo><ul id='fK0zi'></ul>
                1. <legend id='fK0zi'><style id='fK0zi'><dir id='fK0zi'><q id='fK0zi'></q></dir></style></legend>
                2. <tfoot id='fK0zi'></tfoot>
                    <i id='fK0zi'><tr id='fK0zi'><dt id='fK0zi'><q id='fK0zi'><span id='fK0zi'><b id='fK0zi'><form id='fK0zi'><ins id='fK0zi'></ins><ul id='fK0zi'></ul><sub id='fK0zi'></sub></form><legend id='fK0zi'></legend><bdo id='fK0zi'><pre id='fK0zi'><center id='fK0zi'></center></pre></bdo></b><th id='fK0zi'></th></span></q></dt></tr></i><div id='fK0zi'><tfoot id='fK0zi'></tfoot><dl id='fK0zi'><fieldset id='fK0zi'></fieldset></dl></div>