[Libav-user] Difference between AVCodecParserContext->parser->parser_parse() and avcodec_decode_video2()

Hendrik Leppkes h.leppkes at gmail.com
Fri Jun 10 14:47:05 CEST 2011


Hi,

You must've missed part of the mplayer code.
The parser is only that, a parser. It parses the data, extracts some
metadata and puts complete frames back together, it doesn't do any
actual decoding.
For decoding you'll always have to use avcodec_decode_video2.

In my experience, you'll usually want to do both, but that depends on
the source of the content.

Regards,

Hendrik


More information about the Libav-user mailing list