[FFmpeg-devel] [PATCH] lavfi test pattern generator

Michael Niedermayer michaelni at gmx.at
Sun Jun 19 04:37:07 CEST 2011


On Sat, Jun 18, 2011 at 03:46:24PM +0200, Stefano Sabatini wrote:
> On date Saturday 2011-06-18 14:55:20 +0200, Michael Niedermayer encoded:
> > On Sat, Jun 18, 2011 at 01:13:11PM +0200, Stefano Sabatini wrote:
> > > On date Friday 2009-01-02 01:20:42 +0100, Stefano Sabatini wrote:
> > > > On date Sunday 2008-12-28 19:51:36 +0100, Stefano Sabatini encoded:
> > > > > Hi all,
> > > > > 
> > > > > useful for testing, it is based on the test pattern generator by
> > > > > Nicolas George:
> > > > > http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-October/036838.html
> > > > > 
> > > > > basically I just stripped the audio signal generator and adapted few
> > > > > things to the lavfi framework, so most credit goes to Nicolas.
> > > > > 
> > > > > And it would plenty cool to find some way to get ffmpeg/ffplay take as
> > > > > input such a generator, but I still can't see how to do that.
> > > > > 
> > > > > What I can do now is to take as input /dev/null, then overlay the
> > > > > test_pattern over it, but this is rather ugly.
> > > > 
> > > > New improved version which avoids an unnecessary memcpy and with misc
> > > > cleanups, also rename it to test_src (better name suggestions are
> > > > welcome, I think the suffix "_src" is needed to avoid clashes with the
> > > > filters namespace, for example "noise" versus "noise_src").
> > > 
> > > Updated version with API updates and some de-obfuscation.
> > > 
> > > This source is useful for testing purposes (e.g. for the lavfi indev),
> > > and also provide a nice example of how to implement a non trivial
> > > source.
> > > 
> > > I'll add the missing docs if I see there is the will to include it in
> > > the actual form.
> > 
> > Fine with me
> 
> Bikeshed painting time, in case we need different test patterns
> (e.g. for the test suite), it may be useful to choose a more
> distinctive name. I'm attaching a sample output for your convenience.

there is
   -vf mp=test

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- 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/20110619/a703f4a9/attachment.asc>


More information about the ffmpeg-devel mailing list