Make sure the resource will not be compressed when creating the APK. (so we can access its file descriptor) Make sure Ffmpeg is built with protocol protocol support. Take the asset file descriptor from AAsset_manager. create a file name like this ...
char fn [32]; sprintf (fn, "pipe: //% d", your_assets_fd);
open it like this ... av_open_input_file (x, fn, ...);
Good luck.
PS do not hardcode / sdcard / path.
source share