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

info video like bitrate #335

Open MohtashamVahid opened 5 years ago

MohtashamVahid commented 5 years ago

Hi How can I get video info like bitrate? now I run "FFmpeg -i inputfile" and get the result

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/test1/20180113_112128.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2018-01-13 07:52:30 com.android.version: 6.0 Duration: 00:01:00.59, start: 0.000000, bitrate: 6107 kb/s Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 5909 kb/s, SAR 1:1 DAR 4:3, 29.60 fps, 29.58 tbr, 90k tbn, 180k tbc (default) Metadata: rotate : 90 creation_time : 2018-01-13 07:52:30 handler_name : VideoHandle Side data: displaymatrix: rotation of -90.00 degrees Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 156 kb/s (default) Metadata: creation_time : 2018-01-13 07:52:30 handler_name : SoundHandle At least one output file must be specified