videotestsrc

videotestsrc — Creates a test video stream

Synopsis




                    GstVideoTestSrc;
enum                GstVideoTestSrcPattern;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSrc
                     +----GstPushSrc
                           +----GstVideoTestSrc

Properties


  "pattern"                  GstVideoTestSrcPattern  : Read / Write
  "timestamp-offset"         gint64                : Read / Write
  "is-live"                  gboolean              : Read / Write

Description

The videotestsrc element is used to produce test video data in a wide variaty of formats. The video test data produced can be controlled with the "pattern" property.

Example launch line

gst-launch -v videotestsrc pattern=snow ! ximagesink

Shows random noise in an X window.

Element Information

plugin videotestsrc
author David A. Schleef <ds@schleef.org>
class Source/Video

Details

GstVideoTestSrc

typedef struct _GstVideoTestSrc GstVideoTestSrc;

Opaque data structure.


enum GstVideoTestSrcPattern

typedef enum {
  GST_VIDEO_TEST_SRC_SMPTE,
  GST_VIDEO_TEST_SRC_SNOW,
  GST_VIDEO_TEST_SRC_BLACK,
  GST_VIDEO_TEST_SRC_WHITE,
  GST_VIDEO_TEST_SRC_RED,
  GST_VIDEO_TEST_SRC_GREEN,
  GST_VIDEO_TEST_SRC_BLUE,
  GST_VIDEO_TEST_SRC_CHECKERS1,
  GST_VIDEO_TEST_SRC_CHECKERS2,
  GST_VIDEO_TEST_SRC_CHECKERS4,
  GST_VIDEO_TEST_SRC_CHECKERS8,
  GST_VIDEO_TEST_SRC_CIRCULAR
} GstVideoTestSrcPattern;

The test pattern to produce.

GST_VIDEO_TEST_SRC_SMPTE A standard SMPTE test pattern
GST_VIDEO_TEST_SRC_SNOW Random noise
GST_VIDEO_TEST_SRC_BLACK A black image
GST_VIDEO_TEST_SRC_WHITE A white image
GST_VIDEO_TEST_SRC_RED A red image
GST_VIDEO_TEST_SRC_GREEN A green image
GST_VIDEO_TEST_SRC_BLUE A blue image
GST_VIDEO_TEST_SRC_CHECKERS1 Checkers pattern (1px)
GST_VIDEO_TEST_SRC_CHECKERS2 Checkers pattern (2px)
GST_VIDEO_TEST_SRC_CHECKERS4 Checkers pattern (4px)
GST_VIDEO_TEST_SRC_CHECKERS8 Checkers pattern (8px)
GST_VIDEO_TEST_SRC_CIRCULAR Circular pattern

Property Details

The "pattern" property

  "pattern"                  GstVideoTestSrcPattern  : Read / Write

Type of test pattern to generate.

Default value: Random (television snow)


The "timestamp-offset" property

  "timestamp-offset"         gint64                : Read / Write

An offset added to timestamps set on buffers (in ns).

Default value: 0


The "is-live" property

  "is-live"                  gboolean              : Read / Write

Whether to act as a live source.

Default value: FALSE