videotestsrc
(from GStreamer Base Plug-ins git)Opaque data structure.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──videotestsrc
Factory details
Authors: – David A. Schleef
Classification: – Source/Video
Rank – none
Plugin – libgstvideotestsrc.so
Package – GStreamer Base Plug-ins git
Pad Templates
src
video/x-raw:
format: { I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
multiview-mode: { (string)mono, (string)left, (string)right }
video/x-bayer:
format: { bggr, rggb, grbg, gbrg }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
multiview-mode: { (string)mono, (string)left, (string)right }
Presence – always
Direction – src
Properties
animation-mode
“animation-mode” Video-test-src-animation-mode
For pattern=ball, which counter defines the position of the ball.
Flags : Read / Write
Default value : frames (0)
background-color
“background-color” guint
Color to use for background color of some patterns. Default is black (0xff000000).
Flags : Read / Write
Default value : -16777216
blocksize
“blocksize” guint
Size in bytes to read per buffer (-1 = default)
Flags : Read / Write
Default value : 4096
do-timestamp
“do-timestamp” gboolean
Apply current stream time to buffers
Flags : Read / Write
Default value : false
flip
“flip” gboolean
For pattern=ball, invert colors every second.
Flags : Read / Write
Default value : false
foreground-color
“foreground-color” guint
Color to use for solid-color pattern and foreground color of other patterns. Default is white (0xffffffff).
Flags : Read / Write
Default value : -1
horizontal-speed
“horizontal-speed” gint
Scroll image number of pixels per frame (positive is scroll to the left)
Flags : Read / Write
Default value : 0
is-live
“is-live” gboolean
Whether to act as a live source
Flags : Read / Write
Default value : false
k0
“k0” gint
Zoneplate zero order phase, for generating plain fields or phase offsets
Flags : Read / Write
Default value : 0
kt
“kt” gint
Zoneplate 1st order t phase, for generating phase rotation as a function of time
Flags : Read / Write
Default value : 0
kt2
“kt2” gint
Zoneplate 2nd order t phase, t*t/256 cycles per picture
Flags : Read / Write
Default value : 0
kx
“kx” gint
Zoneplate 1st order x phase, for generating constant horizontal frequencies
Flags : Read / Write
Default value : 0
kx2
“kx2” gint
Zoneplate 2nd order x phase, normalised to kx2/256 cycles per horizontal pixel at width/2 from origin
Flags : Read / Write
Default value : 0
kxt
“kxt” gint
Zoneplate x*t product phase, normalised to kxy/256 cycles per vertical pixel at width/2 from origin
Flags : Read / Write
Default value : 0
ky
“ky” gint
Zoneplate 1st order y phase, for generating contant vertical frequencies
Flags : Read / Write
Default value : 0
ky2
“ky2” gint
Zoneplate 2nd order y phase, normailsed to ky2/256 cycles per vertical pixel at height/2 from origin
Flags : Read / Write
Default value : 0
motion
“motion” Video-test-src-motion-type
For pattern=ball, what motion the ball does
Flags : Read / Write
Default value : wavy (0)
num-buffers
“num-buffers” gint
Number of buffers to output before sending EOS (-1 = unlimited)
Flags : Read / Write
Default value : -1
pattern
“pattern” Video-test-src-pattern
Type of test pattern to generate
Flags : Read / Write
Default value : smpte (0)
timestamp-offset
“timestamp-offset” gint64
An offset added to timestamps set on buffers (in ns)
Flags : Read / Write
Default value : 0
typefind
“typefind” gboolean
Run typefind before negotiating (deprecated, non-functional)
Flags : Read / Write
Default value : false
Named constants
Video-test-src-animation-mode
Members
frames
(0) – frame count
wall-time
(1) – wall clock time
running-time
(2) – running time
Video-test-src-motion-type
Members
wavy
(0) – Ball waves back and forth, up and down
sweep
(1) – 1 revolution per second
hsweep
(2) – 1/2 revolution per second, then reset to top
Video-test-src-pattern
The test pattern to produce.
The Gamut pattern creates a checkerboard pattern of colors at the edge of the YCbCr gamut and nearby colors that are out of gamut. The pattern is divided into 4 regions: black, white, red, and blue. After conversion to RGB, the out-of-gamut colors should be converted to the same value as their in-gamut neighbors. If the checkerboard pattern is still visible after conversion, this indicates a faulty conversion. Image manipulation, such as adjusting contrast or brightness, can also cause the pattern to be visible.
The Zone Plate pattern is based on BBC R&D Report 1978/23, and can be used to test spatial frequency response of a system. This pattern generator is controlled by the xoffset and yoffset parameters and also by all the parameters starting with 'k'. The default parameters produce a grey pattern. Try 'videotestsrc pattern=zone-plate kx2=20 ky2=20 kt=1' to produce something interesting.
Members
smpte
(0) – SMPTE 100%% color bars
snow
(1) – Random (television snow)
black
(2) – 100%% Black
white
(3) – 100%% White
red
(4) – Red
green
(5) – Green
blue
(6) – Blue
checkers-1
(7) – Checkers 1px
checkers-2
(8) – Checkers 2px
checkers-4
(9) – Checkers 4px
checkers-8
(10) – Checkers 8px
circular
(11) – Circular
blink
(12) – Blink
smpte75
(13) – SMPTE 75%% color bars
zone-plate
(14) – Zone plate
gamut
(15) – Gamut checkers
chroma-zone-plate
(16) – Chroma zone plate
solid-color
(17) – Solid color
ball
(18) – Moving ball
smpte100
(19) – SMPTE 100%% color bars
bar
(20) – Bar
pinwheel
(21) – Pinwheel
spokes
(22) – Spokes
gradient
(23) – Gradient
colors
(24) – Colors
The results of the search are