videotestsrc

The plug-in videotestsrc is used to generate video data.

The following code block provides an example of generating video output in the default format.
gst-launch-1.0 videotestsrc ! xvimagesink
The following code block provides an example of generating video output in a specified format (NV12) with specified width and height.
gst-launch-1.0 videotestsrc ! "video/x-raw,width=1920,height=1080,format=(string)NV12" !xvimagesink

The plug-in is part of the standard GStreamer plug-in tools, see GStreamer Official Documentation on Plug-in for more information on how to use the plug-in.