shapewipe

The shapewipe element provides custom transitions on video streams based on a grayscale bitmap. The state of the transition can be controlled by the position property and an optional blended border can be added by the border property.

Transition bitmaps can be downloaded from the Cinelerra pages here or here.

Example launch line

 gst-launch-1.0 -v videotestsrc ! video/x-raw,format=AYUV,width=640,height=480 ! shapewipe position=0.5 name=shape ! videomixer name=mixer ! videoconvert ! autovideosink     filesrc location=mask.png ! typefind ! decodebin ! videoconvert ! videoscale ! queue ! shape.mask_sink    videotestsrc pattern=snow ! video/x-raw,format=AYUV,width=640,height=480 ! queue ! mixer.

This pipeline adds the transition from mask.png with position 0.5 to an SMPTE test screen and snow.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──shapewipe

Factory details

Authors: – Sebastian Dröge

Classification:Filter/Editor/Video

Rank – none

Plugin – shapewipe

Package – GStreamer Good Plug-ins

Pad Templates

mask_sink

video/x-raw:
         format: GRAY8
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: 0/1
video/x-raw:
         format: GRAY16_LE
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: 0/1

Presencealways

Directionsink

Object typeGstPad


src

video/x-raw:
         format: { AYUV, ARGB, BGRA, ABGR, RGBA }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsrc

Object typeGstPad


video_sink

video/x-raw:
         format: { AYUV, ARGB, BGRA, ABGR, RGBA }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink

Object typeGstPad


Properties

border

“border” gfloat

Border of the mask

Flags : Read / Write

Default value : 0


position

“position” gfloat

Position of the mask

Flags : Read / Write

Default value : 0


The results of the search are