[Libav-user] avcodec_decode_video2

wm4 nfxjfg at googlemail.com
Fri Apr 18 02:04:14 CEST 2014

On Thu, 17 Apr 2014 10:50:29 -0400
"Peter Stevens" <pstevens at evertz.com> wrote:

> When video is decoded using avcodec_decode_video2 is there an
> intermediate/internal pixel format that is converted to by default? or
> is it kept in the original source pixel format? I ask as I need

Normally, the decoder outputs the format that's most convenient and
fastest to output. Maybe some fringe codecs are handled less
efficiently, though.

> transcode to one raw format as fast as possible and the overhead of
> sws_scale is becoming a problem.

Depending in what the source/target formats are, and if you don't need
scaling, writing your own conversion routines instead of using
libswscale might be faster. libswscale's architecture can make some
conversions pretty slow.

More information about the Libav-user mailing list