Changes between Version 1 and Version 2 of Ticket #1607, comment 7


Ignore:
Timestamp:
Aug 7, 2012, 11:28:43 AM (4 years ago)
Author:
DonMoir
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1607, comment 7

    v1 v2  
    11This is best looked at by a developer. Trying to produce something using ffmpeg or ffplay may be difficult to visualize for you. Sometimes recovery is quick and is not as noticeable. If a developer will try to seek on the above file and look at the first packet read after the seek, most likely it will not be a key packet. Sometimes you get lucky and you will land on a keyframe but mostly not. Since in general you do not land on keyframe after a seek for mpeg2video files, there will be a delay before animation begins. This can be a 2 second delay and just depends on the file and the time you attempted to seek to. 
    22 
    3 The seek for mpeg2video files uses ff_seek_frame_binary and it's just not smart enough to to do keyframe seeking. Any format that is using the generic seek code may also have the same problem. Best thing is to add specialized seeking for mpeg2video like most of the other formats that work have. 
     3The seek for mpeg2video files uses ff_seek_frame_binary/ff_gen_search and it's just not smart enough to to do keyframe seeking because there are no index entries. Any format that is using the generic seek code may also have the same problem. Best thing is to add specialized seeking for mpeg2video like most of the other formats that work have. 
    44 
    55I put in bold some hints at the bottom of this ffplay output.