[Libav-user] Switching codecs from encode to playback on the fly

Kalileo kalileo at universalx.net
Mon May 7 04:16:04 CEST 2012

On May 7, 2012, at 02:28 , Bruce Wheaton wrote:

> Good question. The intent is to seamlessly move from ingesting a movie and viewing it to playing back. I can't find a way to access the same movie for playback as it's being ingested (that would work fine too), can't tell which media container might support that even. So my workaround was to get frames, cache them for playback and record at the same time.
> I was hoping to use all the same structures to minimize the interruption as I switch between modes. It was more the time to set up the new structures - opening the movie file etc. that was a pain, and having to have a double set of structures that will bloat my playback code.

Why don't you simply play the movie _before_ you encode it, when you still have the raw data?

More information about the Libav-user mailing list