I'm searching for a program that can convert .swf into .flv and i can play that converted .flv into flash player. Is it possible in as3, Does anybody have any ideas?
I am not talking about any third party converter software.
Thanks,
I'm searching for a program that can convert .swf into .flv and i can play that converted .flv into flash player. Is it possible in as3, Does anybody have any ideas?
I am not talking about any third party converter software.
Thanks,
An swf file can directly be played by Flash Player. So I am assuming that you are trying to play your swf in a Video Player ( since video players can play the flv format if it is supported. ).
If you are going to be playing this swf file on the web, then with a high degree of probability you are going to be using one of JWPlayer or FlowPlayer. If this is the case, dont bother about conversion since they do directly play an swf file.
".flv and convert it to an AS3 .swf file"
The way this is done 99% of the time is using the as3 api to load play the flv file itself, that is why projects like flow player for example.
See this page with a typical embed code. There are many more opensource flv players. http://flowplayer.org/demos/plugins/flash/index.html
Is there some reason you want to embed the flv into a swf? There would be no difference for the user viewing the video.
You have two options:
For option (2), I'm using this swf video converter.
The ".SWF to .FLV Converter" can batch convert SWF files to FLV files, among other formats.
Download here: http://www.swftovideo.net/swf-to-flv/
I loaded a bunch of old Flash 8 SWFs with audio and video (Sorenson Spark codec) into it and set the output to FLV, picked H.264 as my codec, etc., and it output the FLV files perfectly. The only catch is that a watermark is included unless you enter a registration code.
This conversion process takes some time since it seems to play back the movie and capture frames. The approach makes sense if there's actual vector animation, but there is probably a better way of extracting audio and video to FLV if the SWF is known to contain only an embedded video.