[FFmpeg-user] Using the testsrc filter in older ffmpeg versions without the lavfi device

Tim Nicholson nichot20 at yahoo.com
Tue Apr 17 18:24:34 CEST 2012


On 06/04/12 14:53, Dave Rice wrote:
> Hi,
> 
> On Apr 6, 2012, at 9:46 AM, Roger Berk wrote:
> 
>> Could someone please tell me how to create a test pattern in ffmpeg WITHOUT
>> using lavfi.
>>
>> There must have been a way to use testsrc before lavfi was available.
>>
>> My problem is that ffmpeg requires a -i (input file) parameter, and testsrc
>> does not need or use any input file.
>>
>> Since earlier versions of ffmpeg did not have any -f lavfi option, how was
>> testsrc used previously ?
> 
> There may be more efficient ways, but you could use testsrc in an overlay filter and completely overlay the input video.
> 
> ffmpeg -t 5 -i someVideoToBeCovered.mov -an -vf "testsrc=duration=5:size=200x200:rate=29.97 [overlay]; [in][overlay] overlay" testsrc_movie.mov
> 
> Make sure the testsrc parameters match the input file to cover it.


That's what I used to do, but surely there is a better way....


-- 
Tim


More information about the ffmpeg-user mailing list