[FFmpeg-devel] [PATCH 0/2] VDA decoder for ffmpeg

Michael Niedermayer michaelni at gmx.at
Tue Aug 21 23:30:44 CEST 2012

On Tue, Aug 21, 2012 at 04:02:05PM +0800, Xidorn Quan wrote:
> On Tue, Aug 21, 2012 at 3:00 PM, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de>wrote:
> > Thanks, I really like the feature, but why can't you instantiate a full
> > H.264 decoder with VDA HWAccel like an external application would instead
> > of reimplementing lots of the header parsing?
> >
> I have considered the solution you said, and obviously, life would
> be a lot more simple if the decoder be implemented that way. But for
> two reasons I decided not to use it:

> 1. Origin H.264 decoder never guarantees that HWAccel will be used.
>    For some cases, the decoder doesn't call get_format, and we will
>    have no chance to ask it to use HWAccel. If it happens,
>    the h264_vda decoder will automatically fall back to software
>    decoding without any warning or something like this.
>    I don't think it is a proper behavior for this decoder. It should
>    either succeed to initialize and then use VDA to decode, or fail
>    if it can't and let caller to fall back itself.
>    In fact, sometimes, VDA can decode a video but H.264 decoder
>    refuses to use it and do decoding itself.

how can these problems be reproduced? / where can i find h264 samples
that show these problems ?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120821/66e08fb8/attachment.asc>

More information about the ffmpeg-devel mailing list