From https://ffbinaries.com/downloads download the latest 4.1 version of the Windows 64-bit FFprobe, FFprobe used to obtain relevant information from multimedia streaming file formats or view information in a readable way and printed, FFprobe can be used as a command line program alone.
By executing the command information is relocated to ffprobe_help.txt FFprobe file for easy viewing, FFprobe using the method: ffprobe.exe [options] [input_file].
ffprobe.exe --help > ffprobe_help.txt
The following summary FFprobe of common operations:
1. See png, or a single image information, such as jpg, the following command is executed, the results shown below: wide input image may be acquired, high; obtaining encoding format corresponding to the type enumerated in AVCodecID FFmpeg source, such as 1.png encoding format is png (AV_CODEC_ID_PNG), while 1.jpg coding format mjpge (AV_CODEC_ID_MJPEG); Get the pixel format, corresponding to the enumeration of type AVPixelFormat FFmpeg source, such as the pixel format for 1.png rgb24 (AV_PIX_FMT_RGB24), and 1 .jpg format pixel yuvj444p (AV_PIX_FMT_YUVJ444P)
ffprobe.exe 1.png
ffprobe.exe 1.jpg
2. View information avi file, the following command is executed, the results shown below: There are two streams, a video stream, an audio stream, a video stream is used in MPEG4 (i.e. corresponding to an enumerated type AVCodecID in AV_CODEC_ID_MPEG4) encoding , AC3 audio stream is used (i.e., corresponding to the AVCodecID AV_CODEC_ID_AC3 enumerated type) encoding format; this file playback length 11.26 seconds; the frame rate is 24; the pixel format of the video frame is YUV420P (corresponding to the enumerated type AVPixelFormat AV_PIX_FMT_YUV420P ); video size is 720x528
ffprobe.exe 1.avi
3. mp4 file format json printout (-print_format, available print formats include: default, compact, csv, flat, ini, json, xml), the output format information (-show_format), the output stream information (-show_streams) , the following command is executed, the results shown below: there are two streams, a video stream, an audio stream, video stream H264 is used (i.e., corresponding to the AVCodecID AV_CODEC_ID_H264 enumerated type) encoding method, the audio stream used is AAC (i.e., corresponding to the AVCodecID AV_CODEC_ID_AAC enumerated type) encoding format; this file playback length 16.64 seconds; frame rate is 30; the pixel format of the video frame is YUV420P (corresponding to the enumerated type AVPixelFormat AV_PIX_FMT_YUV420P); video size of 544x960 ; 1.mp4.info.txt generated content as follows:
ffprobe.exe -print_format json -show_format -show_streams -i 1.mp4 > 1.mp4.info.txt
{
"streams": [
{
"index": 0,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "mp4a",
"codec_tag": "0x6134706d",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/48000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 798720,
"duration": "16.640000",
"bit_rate": "96000",
"max_bit_rate": "94904",
"nb_frames": "780",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"creation_time": "2019-07-28T09:30:06.000000Z",
"language": "und"
}
},
{
"index": 1,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "146669/8802000",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 544,
"height": 960,
"coded_width": 544,
"coded_height": 960,
"has_b_frames": 2,
"pix_fmt": "yuv420p",
"level": 31,
"chroma_location": "left",
"refs": 1,
"is_avc": "true",
"nal_length_size": "4",
"r_frame_rate": "30/1",
"avg_frame_rate": "4401000/146669",
"time_base": "1/90000",
"start_pts": 5998,
"start_time": "0.066644",
"duration_ts": 1466690,
"duration": "16.296556",
"bit_rate": "1157602",
"bits_per_raw_sample": "8",
"nb_frames": "489",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"creation_time": "2019-07-28T09:30:06.000000Z",
"language": "und",
"encoder": "JVT/AVC Coding"
}
}
],
"format": {
"filename": "1.mp4",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "16.640000",
"size": "2571206",
"bit_rate": "1236156",
"probe_score": 100,
"tags": {
"major_brand": "mp42",
"minor_version": "0",
"compatible_brands": "mp42isom",
"creation_time": "2019-07-28T09:30:06.000000Z"
}
}
}
4. See h264 video stream information: command is executed, the results as shown below: Only a video stream, a video stream is used h264 (i.e. corresponding to an enumerated type AVCodecID in AV_CODEC_ID_H264) coding; frame rate is 25; pixel format of the video frame is YUV420P (corresponding to the enumerated type AVPixelFormat AV_PIX_FMT_YUV420P); video size of 384x288
ffprobe.exe 1.264
5. View the video stream information rtsp: execute the following command, the results shown below: There are two streams, a video stream, an audio stream, video stream H264 is used (i.e., corresponding to an enumerated type AVCodecID in AV_CODEC_ID_H264) encoding embodiment, the audio stream uses AAC (i.e. corresponding to an enumerated type AVCodecID in AV_CODEC_ID_AAC) encoding format; this file played for 9 minutes 56.48 seconds; the frame rate is 24; the pixel format of the video frame is YUV420P (corresponding to an enumerated type AVPixelFormat the AV_PIX_FMT_YUV420P); video size of 240x160
ffprobe.exe rtsp://184.72.239.149/vod/mp4://BigBuckBunny_115k.mov