[Libav-user] seek broken
Ratin
ratin3 at gmail.com
Tue Nov 10 02:29:10 CET 2015
Never mind It was a mis-understanding in my part, due to file being small
and frames being buffered to a circular frame buffer almost instantaneously
made me think seek was not working.
On Mon, Nov 9, 2015 at 1:55 PM, Ratin <ratin3 at gmail.com> wrote:
> Hi, I use seek to loop back to beginning of a normal mp4 file with h.264
> codec video and aac audio. It appears that av_read_frame keep throwing
> AVERROR_EOF after seek. It wasn't like this in earlier versions.
>
> int64_t seek_target=av_rescale_q(seek_target, AV_TIME_BASE_Q,
> pFormatCtx->streams[packet->stream_index]->time_base);
>
> error = av_seek_frame(pFormatCtx, -1, seek_target, AVSEEK_FLAG_ANY);
>
> While the seek itself doesnt produce any error, the av_read_frame keep
> throwing the error code 0xdfb9b0bb, which av_strerror reports as EOF. The
> file loops fine in vlc.
>
> fileStreamingThread: Error while reading dfb9b0bb : End of file
>
>
> Anybody know what I am doing wrong?
>
> Thanks
>
> Ratin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20151109/4489eb9e/attachment.html>
More information about the Libav-user
mailing list