Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get video codec properties of video? [closed]

Tags:

android

codec

I need to extract the codec properties like bit rate frames resolution file format of video captures from camcorder.

like image 304
RanjitRock Avatar asked Nov 07 '11 10:11

RanjitRock


2 Answers

Check out https://ffmpeg.org/, https://github.com/tanersener/mobile-ffmpeg#22-android

One way would be: ffmpeg -i myfile.mp4

like image 97
sneusse Avatar answered Sep 28 '22 01:09

sneusse


ffprobe can used to list the properties of streams available in the video.

ffprobe -i <input_file_path> -show_streams

Above command list codec properties such as codec_name, codec_long_name, codec_type etc., of each stream individually.

Refer this stackoverflow answer for more info.

https://github.com/bravobit/FFmpeg-Android - FFMpeg/FFprobe compiled for Android.

like image 28
Gowtham Nagarajan Avatar answered Sep 27 '22 23:09

Gowtham Nagarajan