On 2012-06-12 19:05:05 +0100, Mark Kenna wrote: > > Is there any way to specify an output fps on decoding? So in other words it > will only actually decode every n-th frame? I'm trying to reduce CPU usage as > were not interested in receiving every single frame from the decoder.
Just decoding every n-th frame is not possible unless it's an intra only codec. For other codecs you can try settting skip_frame to AVDISCARD_NONREF, AVDISCARD_BIDIR or AVDISCARD_NONKEY. How regularly resulting frames will be depends on the input. All except the first value might result in incorrectly decoded frames due to missing references. Janne _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
