[FFmpeg-trac] #504(undetermined:new): Fixing av_seek_frame

FFmpeg trac at avcodec.org
Tue Sep 27 05:04:14 CEST 2011

#504: Fixing av_seek_frame
             Reporter:  DonMoir      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0

Comment (by DonMoir):

 With dumbdog.mpg and I think several other MPEG1 files, the index_entries
 are all flagged with AVINDEX_KEYFRAME. When you start reading, the packets
 are flagged with AV_PKT_FLAG_KEY. When you start decoding after a seek and
 you get a finished frame, the AVFrame key_frame field is zero. Can someone
 explain why this is ? It seems since I have seeked to a keyframe and I
 start reading and decoding at the seeked position, I should be getting a
 keyframe. It appears that the index_entries being flagged as
 AVINDEX_KEYFRAME is a bug and they do not really represent keyframes??

 With ffplay, the seek sort of works when you hit left arrow, but right
 arrow will cause it to stop playing. The fact the left seek kind of works
 with ffplay is more accidental then correctly working. I know why that is
 but I don't think it's relevant to the problem.

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/504#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list