tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

How should I add files from raw or assets to ffmpeg command? #533

Closed ghost closed 3 years ago

ghost commented 4 years ago

I am trying to add gif overlay on video, but don't know how should I add the path of the gif which is stored either in raw or asset folder to the ffmpeg command. I tried file:///android_asset/indi.gif in command but its isn't working.

msabo1 commented 4 years ago

Take a look at rawResourceToFile method in this file https://github.com/tanersener/mobile-ffmpeg/blob/master/android/test-app/src/main/java/com/arthenica/mobileffmpeg/util/ResourcesUtil.java . You should implement something like that and than you can concatenate file.toString() to your ffmpeg command.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.