Converting Mpeg file to flv and simultaneously playing the converted file in flash cs3 using as3

坚强是说给别人听的谎言 提交于 2019-12-13 07:16:19

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/10679606/converting-mpeg-file-to-flv-and-simultaneously-playing-the-converted-file-in-fla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!