cacasink

Displays video as color ascii art.

Example launch line

 CACA_GEOMETRY=160x60 CACA_FONT=5x7 gst-launch-1.0 filesrc location=test.avi ! decodebin ! videoconvert ! cacasink

This pipeline renders a video to ascii art into a separate window using a small font and specifying the ascii resolution.

 CACA_DRIVER=ncurses gst-launch-1.0 filesrc location=test.avi ! decodebin ! videoconvert ! cacasink

This pipeline renders a video to ascii art into the current terminal.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──cacasink

Factory details

Authors: – Zeeshan Ali

Classification:Sink/Video

Rank – none

Plugin – gstcacasink

Package – GStreamer Good Plug-ins git

Pad Templates

sink

video/x-raw:
         format: { RGB, BGR, RGBx, xRGB, BGRx, xBGR, RGB16, RGB15 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink


Properties

anti-aliasing

“anti-aliasing” gboolean

Enables Anti-Aliasing

Flags : Read / Write

Default value : true


async

“async” gboolean

Go asynchronously to PAUSED

Flags : Read / Write

Default value : true


blocksize

“blocksize” guint

Size in bytes to pull per buffer (0 = default)

Flags : Read / Write

Default value : 4096


dither

“dither” Cacasink-dithering

Set type of Dither

Flags : Read / Write

Default value : none (49)


enable-last-sample

“enable-last-sample” gboolean

Enable the last-sample property

Flags : Read / Write

Default value : true


last-sample

“last-sample” GstSample *

The last sample received in the sink

Flags : Read


max-bitrate

“max-bitrate” guint64

The maximum bits per second to render (0 = disabled)

Flags : Read / Write

Default value : 0


max-lateness

“max-lateness” gint64

Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)

Flags : Read / Write

Default value : 18446744073709551615


name

“name” gchararray

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


processing-deadline

“processing-deadline” guint64

Maximum processing deadline in nanoseconds

Flags : Read / Write

Default value : 20000000


qos

“qos” gboolean

Generate Quality-of-Service events upstream

Flags : Read / Write

Default value : false


render-delay

“render-delay” guint64

Additional render delay of the sink in nanoseconds

Flags : Read / Write

Default value : 0


screen-height

“screen-height” gint

The height of the screen

Flags : Read

Default value : 25


screen-width

“screen-width” gint

The width of the screen

Flags : Read

Default value : 80


stats

“stats” GstStructure *

Sink Statistics

Flags : Read

Default value :

application/x-gst-base-sink-stats, average-rate=(double)0, dropped=(guint64)0, rendered=(guint64)0;

sync

“sync” gboolean

Sync on the clock

Flags : Read / Write

Default value : true


throttle-time

“throttle-time” guint64

The time to keep between rendered buffers (0 = disabled)

Flags : Read / Write

Default value : 0


ts-offset

“ts-offset” gint64

Timestamp offset in nanoseconds

Flags : Read / Write

Default value : 0


Named constants

Cacasink-dithering

Members

none (49) – No dithering
2x2 (50) – Ordered 2x2 Bayer dithering
4x4 (51) – Ordered 4x4 Bayer dithering
8x8 (52) – Ordered 8x8 Bayer dithering
random (53) – Random dithering

The results of the search are