一、查看媒体文件信息
1.1 查看视频文件格式信息
查询视频文件格式的命令为:
ffprobe -show_format input.mp4
ffprobe version 4.2.2-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2007-2019 the FFmpeg developers
# 省略一些没用的
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/***/Desktop/***.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2020-06-23T02:09:34.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: MacBookPro13,1
com.apple.quicktime.software: Mac OS X 10.15.5 (19F101)
com.apple.quicktime.creationdate: 2020-06-23T10:04:45+0800
Duration: 00:02:21.52, start: 0.000000, bitrate: 19417 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 2880x1800 [SAR 1:1 DAR 8:5], 19403 kb/s, 59.94 fps, 60 tbr, 6k tbn, 12k tbc (default)
Metadata:
creation_time : 2020-06-23T02:09:34.000000Z
handler_name : Core Media Video
encoder : H.264
[FORMAT]
filename=/Users/***/Desktop/***.mov
nb_streams=1
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=141.515000
size=343474749
bit_rate=19417008
probe_score=100
TAG:major_brand=qt
TAG:minor_version=0
TAG:compatible_brands=qt
TAG:creation_time=2020-06-23T02:09:34.000000Z
TAG:com.apple.quicktime.make