Copy link to clipboard
Copied
Hello,
I am loading external images, sounds to flash using as3.
and creating a tween animation.
Is this possible to auto save this animation to mpeg 4 in my folder using actionscript.
I mean once the animation completes I wish to auto save this animation as mpeg4 file in the same folder, at runtime using as3.
Copy link to clipboard
Copied
you can export your project as a mov (if you have quicktime) and use adobe media encoder to convert to an mpeg5.
Copy link to clipboard
Copied
You can do it at runtime if you really need to, but it'll need to be an AIR application. I actually just got done creating an app that renders a twitter feed to a .mov file. I used the leelib flv encoder (zeropointnine (Lee Felarca) · GitHub) to create an flv file and then ran FFMPEG using NativeProcess in AIR, to convert the FLV to MOV. Here's a good example of using FFMPEG from AIR: http://www.purplesquirrels.com.au/2013/02/converting-video-with-ffmpeg-and-adobe-air/
Copy link to clipboard
Copied
Thanks for the reply, So its not possible to do in Flash player?
I am loading external images and sounds, I just want to convert this to video.
I am ok with any video format, If I manually do "export Movie as" all ?I get is empty video.
Copy link to clipboard
Copied
What are you trying to do anyway? You say Flash Player - but then you ask about Export Movie which is using the IDE. Please clarify.
Copy link to clipboard
Copied
I am loading external images and sound using AS#, and creating tween animations.
My ultimate goal is to create a video file(any format) at runtime.
If it is not possible at least I would like to create it using export movie,
When I try to export movie externally loaded images are not getting displayed in the video.
Copy link to clipboard
Copied
I see, you can try with the FLV encoder I pointed to. But I don't think you'll get further than FLV output unless you move to AIR.
Copy link to clipboard
Copied
Ok Thank you.
Copy link to clipboard
Copied
yes, you can create an mp4 on the fly and save it to your local drive.
for that you need:
- to program the entire H264 encoder in As3
- or hack the H264 encoder resided inside flash player
- program a timeline sequence
or embed FFmpeg into a swf with crossbridge
Good luck!