Video on multiple platforms

Hey all!
I published https://github.com/Dimous/linc_ffmpeg
Utility wrapper for linc_ffmpeg is not production ready and I have no time to debug and test it on other platforms. Sorry for failing your expectations.

To AIR folks I would recommend to use NME (the father of OpenFL) (sorry, Joshua :grin:) because it implements Flash APIs in cpp (I mean – native-first). As far as I remember, I compiled https://github.com/haxenme/nme/tree/master/samples/Camera and https://github.com/haxenme/nme/tree/master/samples/StageVideo for Windows & Android and it worked. And if it doesn’t, you should file a bug. It is still maintained (by the author of hxcpp, btw).

2 Likes

Thanks Dimous!
We will try it when we have some more time …

Thank you very much again for the contribution.

1 Like

Hi again,

We have tried the example the dimous but the problem is that we can not compile it. I think it is developed for haxe 4 onwards and we are now working with Haxe 3.4.4.

I do not want to do experiments since I have a configuration that works for a series of projects. Probably updating Haxe 4 is problematic. Any experience on this topic?

On the other hand, Dimous. Does linc_ffmpeg work on Android ?. I ask it because I have seen the folders and libraries, and the example seems only for windows target. Even the ffmpeg libraries that you have to download are windows or macos version, but nothing Android. Maybe I’m not understanding how ffmpeg works on Android.

Thanks

Hi, Phasor
linc_ffmpeg is a binding to Ffmpeg API. Yes, Ffmpeg itself is working on Android. There are plenty of build scripts, for example – https://github.com/tanersener/mobile-ffmpeg (even prebuilt binaries – https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.2)
I planned to include a minimal set of Ffmpeg source files to compile with Haxe native targets – https://github.com/Dimous/linc_ffmpeg/blob/master/src/linc/ffmpeg_files.xml
But I’m not sure what is more tedious – to configure project.xml/hxp to include prebuilt libs or to integrate Ffmpeg sources. Because first you need to run “configure” script to select needed codecs&formats, then you need to include only needed Ffmpeg source files which is not that simple because of cross-dependencies.

When I stumbled upon https://github.com/halfninja/android-ffmpeg-x264/ I realized that we (Haxe community) should do the same – to bind to fftools/ffmpeg.c and use it in full potential with simple text commands.

FFmpeg is quite powerful, supporting pretty much all audio/video media. But, if I’m not mistaken, FFmpeg/libav and VLC can have attached to them a problematic license, if they’re to be compiled into the application.

I truly appreciate the effort @Dimous has made with sharing his FFmpeg lib and it’s something I hope I’ll have an opportunity to try.

If a more native to OpenFL option was to eventuate though, something like libvpx (VP8/VP9/Vorbis/Opus, ie: webm) might be more appropriate given it was created to free us from restrictive licenses.

2 Likes