将Mpeg文件转换为flv,然后使用as3在Flash CS3中同时播放转换后的文件 [英] Converting Mpeg file to flv and simultaneously playing the converted file in flash cs3 using as3

查看:94
本文介绍了将Mpeg文件转换为flv,然后使用as3在Flash CS3中同时播放转换后的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要转换为flv格式的mpg文件,但是我有一个要求,即在转换mpg文件时,我还必须同时在Flash CS3中播放转换后的flv文件.怎么做?我正在使用CS3和AS3.

I have an mpg file which I want to convert to flv format, but I have a requirement that while converting the mpg file, I also have to simultaneously play the converted flv file in the flash cs3. How to do it? I am using cs3 and as3.

推荐答案

如果要以编程方式转换文件,请使用 ffmpeg .这是一个命令行工具,可以将视频文件转换为几乎所有内容.您必须使用正确的参数执行ffmpeg并等待视频准备就绪.这仅适用于服务器端.表示Flash客户端将视频文件加载到服务器.在那里被转换.您可以使用任何服务器端语言(例如php)执行ffmpeg.

If you want to convert your files programmaticly then use ffmpeg. This is a commandline tool which can convert video files to nearly everything. You have to execute ffmpeg with the correct params and wait until the video is ready. This works only on serverside. Means the flash client loads up the video file to the server. There it gets converted. You can execute ffmpeg with any serverside language like php.

可悲的是,我不知道转换时是否可以观看视频.我认为不是,但也许其他人知道更多.

Sadly I have no idea if it is possible to watch the video while converting. I think not but maybe someone else knows more.

这篇关于将Mpeg文件转换为flv,然后使用as3在Flash CS3中同时播放转换后的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆