How to fucking build FFmpeg using VPlayer?
Soure: GitHub
Question: How to fucking build FFmpeg using VPlayer?
Answer: For FFMPEG v3.0.2 and NDK r11c
Install Ubuntu (16.04) in VirtualBox (building on Windows is a NIGHTMARE, don't even try)
Download and uncompress Android NDK (v11c) to a folder in your home directory (/home/viet/Android
in my case or ~/
)
Since the ffmpeg (v2.6) coming with VPlayer has an annoying text relocation issue, we will build ffmpeg from scratch (FFMPEG v3.0.2 and NDK r11c).
Open a terminal in Ubuntu and do this:
sudo apt-get install autoconf autoconf-archive automake pkg-config git libtool
git clone https://github.com/matthewn4444/VPlayer_lib.git
.bashrc
under your home directory (/home/viet
in my case), need to enable hidden file to see. Add the following at the top of the file (every single dash and slash need to be exactly like this so TRIPLE CHECK IT, I've already done the hard part so dont be lazy):export NDK=~/Android/android-ndk-r11c
export PATH=$PATH:$NDK
You can check to see if this path is set correctly with echo $NDK
.
Application.mk
:APP_ABI
for which architectures to build for (in this case we only build for armeabi
, armeabi-v7a
and x86
).APP_PLATFORM
for which platform to build with (if you use a higher number, it will choose the next lower version; e.g you choose android-10, it will choose android-9 if 10 doesn't exist) (in this case we use android-22
).sudo chmod -R 0777 /home/viet/Desktop/VPlayer_lib
config_and_build.sh
once.android_android.sh
file.build_android.sh
(you do not need to configure again).TO DO: Need update to custom build without subtitles.