Building ffmpeg with executable output

I don’t like to ask such questions as “you understood me for me”, but I suspect that it will be very simple for the C ++ guru. I want to build ffmpeg for Android, and I would like it to output an executable, not a set of libraries.

We used the guardian project assembly:

https://github.com/guardianproject/android-ffmpeg

It produces what we want, but I found that setting it up for different architectures would be, at best, unpleasant.

I got this build version:

https://github.com/appunite/AndroidFFmpeg

It does a great job of slicing and decorating various architectures, but creates a jni version.

There is a long story about why I want to use exe, but now I will skip it. Is there a flag that needs to be flipped? Some way or other setting? I am at this point completely puzzled.

Thanks in advance.

+4
source share
2 answers

Consider using scratchbox for static cross-compilation for ARM (and the test) FFMPEG to suit your desktop requirements (still inside SB ).
Once you are happy, get enough space on your droid to save more than otherwise binary, and adb that will be there. Do not forget chmod +x

+1
source

This link I posted earlier in the comments a lot of general information about FFmpeg and Android. Then there is the Estevex tutorial on Android, FFmpeg and x264. Also here is a Roman10 blog post about the topic.

When you manage to create the binaries, remember to set the permissions on the files (for example, chmod 777 or chmod 775 ). FFmpeg launch command -

 Process p = Runtime.getRuntime().exec("/data/data/yourpackagename/files/ffmpeg") 


References

Some implementations:

Discussion:

+1
source

Source: https://habr.com/ru/post/1487392/


All Articles