如何检查视频文件的关键帧间隔?
我在ffmpeg输出中看到的只有:
Metadata:
metadatacreator : Yet Another Metadata Injector for FLV - Version 1.8
hasKeyframes : true
hasVideo : true
hasAudio : true
hasMetadata : true
canSeekToEnd : true
datasize : 256600272
videosize : 210054362
audiosize : 45214634
lasttimestamp : 5347
lastkeyframetimestamp: 5347
lastkeyframelocation: 256649267
Duration: 01:29:07.24, start: 0.040000, bitrate: 383 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 312 kb/s, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: mp3, 44100 Hz, mono, s16p, 64 kb/s
Run Code Online (Sandbox Code Playgroud)
llo*_*gan 32
您可以使用以下内容显示每个关键帧的时间戳ffprobe:
ffprobe -loglevel error -select_streams v:0 -show_entries packet=pts_time,flags -of csv=print_section=0 input.mp4 | awk -F',' '/K/ {print $1}'
Run Code Online (Sandbox Code Playgroud)
结果是:
ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_pts_time -of csv=print_section=0 input.mp4
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅awk文档.
| 归档时间: |
|
| 查看次数: |
18726 次 |
| 最近记录: |