[FFmpeg-devel] [PATCH 2/3] avfiltergraph: don't query formats if filter has uninitialized inputs

Michael Niedermayer michaelni at gmx.at
Thu May 3 19:48:04 CEST 2012


On Thu, May 03, 2012 at 07:19:48PM +0200, Nicolas George wrote:
> Le quintidi 15 floréal, an CCXX, Michael Niedermayer a écrit :
> > after merging formats
> > each filters output could be choosen so as to maximize the similarity
> > to its input and minimize loss of information.
> 
> That does not work with amerge. Lavfi has two models for the
> interdependencies of formats for links:
> 
> - the links point to the same list of format, in the end they will have the
>   same format;
> 
> - the links point to different lists, lavfi can choose the formats
>   independently.
> 
> amerge does not fit these models: it accepts anything as input, but the
> format for the output is entirely determined by the formats for the inputs,
> with a non-trivial function.
> 
> The solution would probably be to re-call query_format during the graph
> configuration to let it recompute the output format.

what disadvantage does it have if it supports any output and calls
libswresample when it cannot otherwise produce it ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- 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/20120503/c2306850/attachment.asc>


More information about the ffmpeg-devel mailing list