簡體   English   中英

使用ffmpeg獲取視頻幀信息

[英]Get video frames information with ffmpeg

如何使用ffmpeg或其他方法從視頻中檢索有關每幀開始的字節數的信息?

你可以試試ffprobe

$ ffprobe -show_frames input.mkv
...
[FRAME]
media_type=video
key_frame=0
pkt_pts=3240
pkt_pts_time=3.240000
pkt_dts=N/A
pkt_dts_time=N/A
best_effort_timestamp=3240
best_effort_timestamp_time=3.240000
pkt_duration=40
pkt_duration_time=0.040000
pkt_pos=18009
pkt_size=480
width=320
height=240
pix_fmt=yuv444p
sample_aspect_ratio=1:1
pict_type=P
coded_picture_number=76
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
[/FRAME]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM