Re: [Libav-user] Seeking by byte position in H.264 video

2011-08-07 Thread Alex Cohn
Note that you can start decoding h264 stream from a keyframe (i-frame). Therefore a full index for the stream is almost useless. Usually, it's wiser to store index to key frames. Alex PS this can also explain the behavior of ffmpeg for the "tail", if it doesn't start with i-frame. BR, Alex On S

[Libav-user] Seeking by byte position in H.264 video

2011-08-06 Thread Дмитрий Дороговцев
Hello. I am trying to implement some kind of seeking mechanism in H.264 files without any container, just raw H.264 stream. I have some troubles with it. 1) Problem #1. I am using ffmpeg to cut let's say 143 frames from video in this way: ffmpeg -i source.h264 -vcodec libx264 -b 1200k -r 30 -vfra