cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

Use ffprobe #51

Open Rhtyme opened 8 years ago

Rhtyme commented 8 years ago

Firstly thanks for this great library that I'm using in my app. So tell me please how to use ffprobe to get info from video file? I'm currently using these lines of codes : ffmpeg.execute("ffprobe -v quiet -print_format json -show_format -show_streams some.mp4" new ExecuteBinaryResponseHandler() { ... }); Above code lines don't work and "onFailure" method get called. But "message" of "onFailure" is empty. I don't know what I'm doing wrong.

svenoaks commented 8 years ago

It won't work ffprobe is a different command, not even sure if the binaries are built with it.

devslava commented 8 years ago

I've solved this executing command "-i path/to.media". It gives some info about input.