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

Example launch line

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.

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,
} 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

Properties

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