如何从视频文件中获取元数据,例如帧速率、分辨率、音频和视频比特率?可以从 VLC 和 Media Player Classic 等播放器获取这些数据吗?
小智 5
$ ffprobe -show_data -hide_banner xyz.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'xyz.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2017-04-26T19:36:24.000000Z
com.android.version: 8.0.0
Duration: 00:00:51.81, start: 0.000000, bitrate: 14257 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 13936 kb/s, SAR 1:1 DAR 16:9, 24.58 fps, 50 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 270
creation_time : 2017-04-26T19:36:24.000000Z
handler_name : VideoHandle
Side data:
displaymatrix: rotation of 90.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
creation_time : 2018-05-26T19:36:24.000000Z
handler_name : SoundHandle
Run Code Online (Sandbox Code Playgroud)