PDA

View Full Version : Is it possible to encode/export video from an AIR application?


derek1ner
05-28-2009, 07:04 AM
hi,
trying to develop my first non-tutorial led air app, any help is very appreciated :cool:

one of my ideas for an app involves dragging and dropping 1 image and 1 mp3 file
from the desktop onto the AIR app then clicking a button that triggers it to encode
and export a youtube ready video of just the audio playing with the image showing
for the duration of the vid.

does anyone know if this is possible in AIR?
thanks again

rkstar
10-22-2010, 03:50 PM
hi - did you ever get this figured out? i'm interested in doing something similar.

springframework
11-26-2010, 10:45 PM
since air has a byte array you can of course do this... i wouldnt want to do that though.

what i did was include some compiled python files that convert videos then i can call those files from air. this requires air 2.0+

Dholem
12-03-2010, 10:25 PM
Hey,

You could use ffmpeg to encode the video by using the nativeProcess api in air 2.0+.
Here is an example of how to get started:

(I'm not allowed to post links yet so this is going to look weird, but you'll get the idea. Just take out all the spaces)
ht tp :// n8o. org /video /play-video-in-air-with-ffmpeg /

You would just set your output as an mp4 for youtube.