As a follow up on this, I determined the issue, which is that I needed to
effectively restart my AVFormatContext object, with av_open_input_file, and
switch the audio and video streams to the new streams allocated there. But
is there any way to avoid this? Like being able to reset the audio and video
streams back to the beginning, after eof has been reached?

On Fri, Jun 26, 2009 at 12:39 PM, Tyler Laing <[email protected]> wrote:

> Hello there,
>
> I am writing the pygame/Python movie module using ffmpeg. One of the
> requirements I need to implement is to provide looping capability. What I
> have is most of the video initialization stuff, like initializating an
> AVFormatContext, etc is done once, then once one playthrough is done, and if
> more playbacks are demanded, then its supposed to seek back to the beginning
> of the stream(s). I use most of the same seeking code as ffplay does.
> However, av_read_frame is returning a -32. Obviously, there's something I'm
> forgetting to do with my AVFormatContext. Before, I went through the whole
> initialization process every time I wanted to loop, but this isn't quite
> satisfactory, and causes a few problems. So what am I missing?
>
> -Tyler
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to