Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7227 closed defect (fixed)

`skip_frames nokey` not working correctly for some videos

Reported by: Anton 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 by Anton, 6 years ago

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

Last edited 6 years ago by Anton (previous) (diff)

comment:3 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavcodec
Keywords: hevc added
Priority: normalminor

Use -skip_frame nointra to get more frames.

comment:4 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: newclosed

comment:5 by Anton, 6 years ago

Thanks!

Note: See TracTickets for help on using tickets.