Hi Mark, On Thu, Apr 5, 2012 at 8:43 AM, Mark Kenna <[email protected]> wrote: > Hi Guys > > I am aware that it's possible to have an FLV containing h.264 that changes > resolution mid-stream. I have an example that does exactly what I need > (http://ffmpeg.org/trac/ffmpeg/raw-attachment/ticket/499/resolutionchange.flv). > > My question is how is this done in code? I have attempted clearing down the > video stream and re-creating a new one against the same AVFormatContext with > the desired resolution but this gives all kinds of errors.
In general, with threading, adaptive (changing resolution) is not supported. You can make it work by disabling threads (AVcodecContext->thread_count = 1). I do intend to fix this at some point. Another adaptive sample is at http://roundup.libav.org/issue2393, if you could upload yours to upload.libav.org so we don't lose it and could open a bugzilla ticket, that would be greatly appreciated. Ronald _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
