将 Flash 视频转换为 HTML5

问题描述 投票:0回答:7

我的网站上有一个 Flash 视频(.swf),我希望将其转换为这样的格式,以便可以在 iPhone/iPad 上使用。有什么可能的方法吗?我可以将其转换为 HTML5 吗?如果是,任何人都可以建议该过程,如果不是,任何人都可以建议任何其他方法吗?任何帮助将不胜感激。

flash html safari
7个回答
3
投票

完全可以将 flash 转换为 html 5,具体取决于您想要做什么。一个很好的例子是 www.zombo.com (flash) -> http://html5zombo.com/ (html 5)。

如果你查看 html5zombo.com 上的源代码,就会看到他是如何做到这一点的解释(下面转载)

HTML5zombo.com Bertrand Fan ([电子邮件受保护]) 2010 年 5 月 19 日

        I wanted zombo.com on my iPad. That is all.

        ===================================================================
        How I did it, for nerds:
        ===================================================================

        Watched the Net tab for zombo.com in Firebug            

        wget http://www.zombo.com/inrozxa.swf
        wget http://www.zombo.com/welcomeclip.swf

        Opened them in SWFRIP to extract the MP3 and SVG representations of the logo and spinner.
        Opened the SVG files in Adobe Illustrator (ironic, I know), tweaked a bit, exported new SVG files

        Copy-pasted the SVG contents into this HTML file, tweaked the attributes a bit

        Wrote the JS code to rotate the SVG spinner

        Converted the MP3 to OGG using oggenc2 (not really necessary for the iPad, but apparently for Firefox)

        Discovered that the iPad does not respect autoplay on HTML5 audio tags, crafted a javascript link for iPads

        wget http://www.zombo.com/favicon.ico

        ===================================================================
        References:
        ===================================================================

        http://www.zombo.com/
        http://twitter.com/zombocom
        http://sourceforge.net/projects/swfrip/
        http://developer.apple.com/safari/library/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/AudioandVideoTagBasics/AudioandVideoTagBasics.html
        http://html5doctor.com/native-audio-in-the-browser/
        http://emacsformacosx.com/
        http://www.apple.com/hotnews/thoughts-on-flash/

2
投票

为什么不两者兼而有之。这是一个视频教程,展示了如何使用 HTML5 后备 Flash 视频 http://gotoandlearn.com/play.php?id=128 [编辑] 假设这确实是一个视频,并且您需要转换它到一个合适的视频文件


1
投票

我们与 Gordon 取得了良好的成果。确实适用于简单的视频,但我们无法获得任何交互式的工作。


0
投票

简而言之,不不不你不能。 Flash 使用完全独立的语言 Actionscript,它与 HTML 或 XHTML 完全不同! Actionscript 几乎可以被视为一种与 Javascript 属性相似的语言,而 XHTML 几乎可以被视为 XML 的后代,虽然它不是 XML,但你明白我的意思了。

不幸的是,就您的情况而言,我认为您需要重新开发您的网站或为移动用户提供替代页面。您始终可以拥有一个登陆页面,并检测用户是否不是 iPhone、Android 等移动设备,并将他们重定向到针对其需求进行优化的网站。

我认为 Flash 到 HTML 或 XHTML 转换器会受到我们许多人的欢迎,因为对于现在希望他/她的 Flash 网站为静态或 XHTML 的客户来说,它比您想象的更常见。


0
投票

使用 swftools 的 swfextract 获取视频:

http://wiki.swftools.org/wiki/Swfextract


0
投票

www.doom9.org 有您需要的所有视频转换教程

编辑:您的意思是实际flash视频(flv),如格式或只是flash(swf)?

编辑评论好的,如果没有交互,你仍然可以将其转换为html5友好的视频格式,有谷歌,有很多转换器。在没有 html5 兼容浏览器的情况下,您可能希望使用 Flash 作为后备,这样您就可以支持 Microsoft 推出的旧(和新)垃圾以及符合现代标准的浏览器。


-1
投票

mobisoftinfotech.com 网站上的此页面有助于理解所涉及的标准流程。 http://mobisoftinfotech.com/wp-includes/development%20methodology%20flash%20to%20html5.pdf

© www.soinside.com 2019 - 2024. All rights reserved.