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

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Jun 18 15:46:24 CEST 2011


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.

See also:
http://en.wikipedia.org/wiki/Test_card
-- 
FFmpeg = Foolish & Faithful Mastering Programmable Enigmatic Governor


More information about the ffmpeg-devel mailing list