[FFmpeg-trac] #1607(avformat:new): av_seek_frame() without AVSEEK_FLAG_ANY on mpg files returns success without seeking to a keyframe
FFmpeg
trac at avcodec.org
Tue Aug 7 10:44:29 CEST 2012
#1607: av_seek_frame() without AVSEEK_FLAG_ANY on mpg files returns success
without seeking to a keyframe
------------------------------------+------------------------------------
Reporter: mbradshaw | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by cehoyos):
And there is a second possibility how not to extract non-keyframes:
$ ffmpeg -ss 1 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 2 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 3 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 4 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 5 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 6 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 7 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 8 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
$ ffmpeg -ss 9 -i mpeg2video_seek_to_non_keyframe.mpg -vcodec copy
-vframes 1 out.m2v
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1607#comment:11>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list