简体   繁体   English

ffprobe输出帧,其read_intervals没有匹配给定的时间范围

[英]ffprobe output frame with read_intervals no match given time range

I have read ffprobe document at here . 我在这里阅读了ffprobe文件。

I don't know why my first time of the frame is 11.745 seconds, even given "-read_intervals 12%13". 我不知道为什么我的第一帧时间是11.745秒,即使给出“ -read_intervals 12%13”也是如此。 (12sec ~ 13sec ) (12秒〜13秒)

$ ffprobe -i chrome.webm -show_frames -select_streams v:0 -read_intervals 12%13 -hide_banner -loglevel panic

[FRAME]
media_type=video
stream_index=0
key_frame=1
pkt_pts=11745
pkt_pts_time=11.745000
pkt_dts=11745
pkt_dts_time=11.745000
best_effort_timestamp=11745
best_effort_timestamp_time=11.745000
pkt_duration=33
pkt_duration_time=0.033000
pkt_pos=717643
pkt_size=5864
width=480
height=270
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=I
coded_picture_number=0
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
[/FRAME]
...

As the document says, 如文件所述,

Note that seeking is not accurate, thus the actual interval start point may be different from the specified position. 请注意,搜索不准确,因此实际间隔起点可能与指定位置不同。 Also, when an interval duration is specified, the absolute end time will be computed by adding the duration to the interval start point found by seeking the file, rather than to the specified start value. 同样,当指定间隔持续时间时,将通过将持续时间添加到通过查找文件找到的间隔开始点而不是指定的开始值来计算绝对结束时间。

Correct link to section documenting this option - https://www.ffmpeg.org/ffprobe.html#Main-options 正确链接到记录此选项的部分-https: //www.ffmpeg.org/ffprobe.html#Main-options

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM