How to modify ffmpeg source code in VLC-Android?

This forum is about all development around libVLC.
hiliyg
New Cone
New Cone
Posts: 1
Joined: 31 Jan 2023 09:50

How to modify ffmpeg source code in VLC-Android?

Postby hiliyg » 31 Jan 2023 10:11

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!

Alaric
Developer
Developer
Posts: 36
Joined: 27 Apr 2022 18:37

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

Postby Alaric » 31 Jan 2023 10:35

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests