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

StackOverflow https://stackoverflow.com//questions/10679606

سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top