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 to exclude FFprobe? #544

Closed uzaysan closed 3 years ago

uzaysan commented 4 years ago

Description I want to exclude ffprobe from library.

Expected behavior I want to exclude FFprobe from library. I don't need FFprobe. So it's just increasing apk size and taking unnneccessary space.

Current behavior FFprobe included by default.

I was using bravobit ffmpeg library. For that library we can exclude ffprobe by using this in app.gradle file:

aaptOptions {
        ignoreAssetsPattern "!*ffprobe"
    }

How can we do same in this library? Thank you very much.

alexcohn commented 4 years ago

In mobile-ffmpeg, extra size of FFprobe is minimal. See How to decrease binary size wiki page.

uzaysan commented 3 years ago

hey @alexcohn Sorry for the late reply. And thank you for your answer. I only use ffmpeg for compressing video. This is my one and only command:

FFmpeg.execute("-y -i "+ path +" -vcodec libx264 -vf scale="+resol+":-2 -crf 28 -movflags +faststart -acodec copy "+ context.getCacheDir()+File.separator+"compressedvideo.mp4");

I really dont know about fmpeg and NDK in android development. Can you help me with this?

I'm using verison implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.4.LTS'

alexcohn commented 3 years ago

@uzaysan help you with what, exactly?

uzaysan commented 3 years ago

@alexcohn nevermind. I switched to epmedia.

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.