Opened 4 weeks ago

Closed 4 weeks ago

Last modified 3 weeks ago

#7227 closed defect (fixed)

`skip_frames nokey` not working correctly for some videos

Reported by: Hett Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: hevc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

skip_frames nokey not working correctly for some videos

How to reproduce:

ffprobe -v error -select_streams v:0 -skip_frame nokey -show_frames ~/Downloads/Marco.Polo.S01E05.720p.mkv

[FRAME]
media_type=video
stream_index=0
key_frame=1
pkt_pts=0
pkt_pts_time=0.000000
pkt_dts=N/A
pkt_dts_time=N/A
best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=41
pkt_duration_time=0.041000
pkt_pos=7364
pkt_size=2043
width=1280
height=640
pix_fmt=yuv420p10le
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
color_range=tv
color_space=unknown
color_primaries=unknown
color_transfer=unknown
chroma_location=unspecified
[/FRAME]

Out contain only one frame.
Run ffprobe without skip_frames nokey frames will be recognized correctly:

$ ffprobe -v error -select_streams v:0 -show_frames ~/Downloads/Marco.Polo.S01E05.720p.mkv | grep key_frame=1
key_frame=1
key_frame=1
key_frame=1
key_frame=1
key_frame=1
^C

Version: ffmpeg-git-20180521-64bit-static

Change History (5)

comment:1 Changed 4 weeks ago by Hett

oops, file limit is too low, I will look for a solution to provide mkv file.

Last edited 4 weeks ago by Hett (previous) (diff)

comment:3 Changed 4 weeks ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords hevc added
  • Priority changed from normal to minor

Use -skip_frame nointra to get more frames.

comment:4 Changed 4 weeks ago by cehoyos

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 3 weeks ago by Hett

Thanks!

Note: See TracTickets for help on using tickets.