简体   繁体   English

如何将Flash视频转换为html5视频?

[英]How do I convert flash video to html5 video?

I want to convert a flash video to HTML5 on the fly. 我希望即时将Flash视频转换为HTML5。 Not having to download it and upload it and then convert it again to HTML5 video? 无需下载并上传,然后再将其转换为HTML5视频?

This is a video link source code from Adobe 这是Adobe的视频链接源代码

<embed type="application/x-shockwave-

flash"src="/swf/software/flash/about/flash_about_793x170.swf" width="793" height="225" 

id="shell_object" name="shell_object" bgcolor="#ffffff" quality="high" scale="noscale" 

salign="tl" wmode="opaque" title="Adobe Flash Player">

Flash Source Link Flash源链接

/swf/software/flash/about/flash_about_793x170.swf /swf/software/flash/about/flash_about_793x170.swf

Actual HTML Link 实际的HTML链接

http://www.adobe.com/software/flash/about/ http://www.adobe.com/software/flash/about/

How would I convert it on the fly and show it in a device that is only capable of playing HTML5 video? 我如何在运行中将其转换并在只能播放HTML5视频的设备中显示? In other words an on the fly Flash (*.swf) to HTML5 converter Is there like a API that can do this? 换句话说,即时Flash(* .swf)到HTML5转换器是否有像这样的API?

You need to use a converter like ffmpeg . 你需要使用像ffmpeg这样的转换器。 The command would look like this: 命令看起来像这样:

ffmpeg -i flashvid.swf html5.mp4

And the html: 和HTML:

<video>
    <source src="html5.mp4" type="video/mp4" />
</video>

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

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