みなさんは、どっちを使っていますか。
❯ ffprobe movie.mov
[aac @ 0x7fa2d9f05f40] Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) layout, use -strict 1 to decode according to the specification instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2023-01-12T09:51:58.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iMac19,1
com.apple.quicktime.software: macOS 13.1 (22C65)
com.apple.quicktime.creationdate: 2023-01-12T18:51:56+0900
Duration: 00:00:03.05, start: 0.000000, bitrate: 998 kb/s
Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 627 kb/s, 60 fps, 60 tbr, 6k tbn (default)
Metadata:
creation_time : 2023-01-12T09:51:58.000000Z
handler_name : Core Media Video
vendor_id : [0][0][0][0]
encoder : H.264
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 7.1, fltp, 8 kb/s (default)
Metadata:
creation_time : 2023-01-12T09:51:58.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
[aac @ 0x7fa2db00f3c0] Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) layout, use -strict 1 to decode according to the specification instead.
❯ mediainfo movie.mov
General
Complete name : movie.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.00 (qt )
File size : 372 KiB
Duration : 3 s 50 ms
Overall bit rate mode : Variable
Overall bit rate : 998 kb/s
Encoded date : UTC 2023-01-12 09:51:58
Tagged date : UTC 2023-01-12 09:52:01
Writing library : Apple QuickTime
com.apple.quicktime.make : Apple
com.apple.quicktime.model : iMac19,1
com.apple.quicktime.software : macOS 13.1 (22C65)
com.apple.quicktime.creationdate : 2023-01-12T18:51:56+0900
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.2
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=2, N=60
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3 s 50 ms
Source duration : 4 s 50 ms
Bit rate mode : Variable
Bit rate : 663 kb/s
Maximum bit rate : 768 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.012
Stream size : 247 KiB (66%)
Source stream size : 310 KiB (83%)
Title : Core Media Video
Encoded date : UTC 2023-01-12 09:51:58
Tagged date : UTC 2023-01-12 09:52:01
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 3 s 50 ms
Source duration : 3 s 971 ms
Bit rate mode : Constant
Bit rate : 8 247 b/s
Nominal bit rate : 960 kb/s
Channel(s) : 8 channels
Channel layout : C L R Ls Rs Lw Rw LFE
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 3.07 KiB (1%)
Source stream size : 4.01 KiB (1%)
Title : Core Media Audio
Encoded date : UTC 2023-01-12 09:51:58
Tagged date : UTC 2023-01-12 09:52:01
どっちがいいんですかね。
👉 FFmpeg/ffprobe.c at master · FFmpeg/FFmpeg