Skip to main content
Participant
December 2, 2011
Question

Air on mobile with FFmpeg

Hi,  I've searched a lot here and all over the net and couldn't find answer to this so decided to ask it here.  Is it possible to use FFmpeg in a mobile air app. I need to play many video formats so FFmpeg can be used to first convert and then to display them in the app.  I've done similar thing in a desktop air app but there I was calling an executable of FFmpeg and my app was listening when it finishes converting and then continued with its tasks. For the mobile I was thinking for a way to embed the FFmpeg inside the app but I really couldn't understand if that is possible at all.  Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Innovatology
Participating Frequently
December 2, 2011

You'd need to

1) port libffmpeg to the mobile device in question (or find a ported version)

2) wrap it up in a Native Extension so you can call it from Air

It's not rocket science, but you'd need a good understanding of the library and C development (and Java, for Android).

The device would take quite a performance and battery hit with all that number crunching going on. I don't think libffmpeg takes advantage of the GPU. Don't expect anything close to the desktop experience.

Translate
Inspiring
December 2, 2011

Maybe, but only MAYBE if someone ported ffpeg in alchemy... But I think it is impossible. Sorry

Translate