Building FFmpeg for Android

I spent almost a week on this, trying to get FFmpeg "Angel" / "Happiness" for Android. I tried to create scripts from all over the Internet to no avail. I used this the closest. As the author himself says, the script does not work for newer versions of FFmpeg due to this error that was fired on this ticket, saying "I found a Makefile that does this." It was not serious, being the only message in the whole vast world of Google, which was somewhere near my problem. So the question time:

Is there any way around the above error? I'm trying to use the latest ffmpeg API, and Love just gives me a "<90" error link when trying to use av_encode_video2 () and av_free_frame (). The code I worked on the lines is in the ffmpeg git repository under / doc / examples / decoding _encoding.c (the function starting on line 338).

Update: therefore they are done away with codec_names.sh in "Angel". Unfortunately, this has not been noticed before, but the problem persists in another avatar. With each attempt to build the compiler produces a specific

start ndk-building... /home/<user>/android-ndk/build/core/build-binary.mk:41: *** target file `clean' has both : and :: entries. Stop. 

Say what you know !?

+4
source share
1 answer

Given the lack of any answer, I assume that people who know their crap in this topic are really busy using their skills to use with what they managed to compile. For those like me, who have scratched every corner of the Internet for an answer that makes little sense, I have .. more than a decent workaround.

The Guardian project , a terrific resource on github, has an ideal project created to create the ffmpeg binary file with all the settings of your choice, But there is only one big problem with its successful build without the error "Unable to create executable files."

So, there is also a way out. Less flexible, but it saves you from losing more hair than I am sure you (like me) already have. Submit here and make a profit. From running the file command, I noticed that this binary was dynamically linked, which seemed strange, but it works.

In addition, you need to run the chmod before using it on the device (being a binary and all). Therefore, put it in the res / raw / folder, download it when necessary, and edit these videos, like not tomorrow!

+8
source

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


All Articles