[FFmpeg-user] Using the testsrc filter in older ffmpeg versions without the lavfi device
Dave Rice
daverice at mac.com
Fri Apr 6 15:53:19 CEST 2012
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.
Dave Rice
More information about the ffmpeg-user
mailing list