Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

create mpeg 4 file at runtime

Explorer ,
Jun 02, 2014 Jun 02, 2014

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.

TOPICS
ActionScript
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 02, 2014 Jun 02, 2014

you can export your project as a mov (if you have quicktime) and use adobe media encoder to convert to an mpeg5.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 03, 2014 Jun 03, 2014

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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 03, 2014 Jun 03, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 06, 2014 Jun 06, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2014 Jun 06, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 06, 2014 Jun 06, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2014 Jun 06, 2014

Ok Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jan 12, 2018 Jan 12, 2018
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines