Page 1 of 1

How to modify ffmpeg source code in VLC-Android?

Posted: 31 Jan 2023 10:11
by hiliyg
hi, guys

As the TOPIC says, I need to modify the source code of ffmpeg in VLC-Android for some features.
but After modifying the ffmpeg code downloaded by the compile.sh script and then compiling the apk, the modified content does not take effect.
what should i do next? or is there a correct way to modify the source code of ffmpeg in VLC-Android?

thanks!

Re: How to modify ffmpeg source code in VLC-Android?

Posted: 31 Jan 2023 10:35
by Alaric
You'll probably have to manually rebuild the ffmpeg contrib, our contrib system isn't able to detect local modifications in contrib themselves and rebuild automatically:

Go to your contrib build directory:

Code: Select all

cd vlc/contrib/contrib-android-...
Make sure your modified ffmpeg version is here, then:

Code: Select all

rm .ffmpeg && make .ffmpeg # The dot is important!
Then follow the usual android build procedure!

Good luck.