# aasink

Displays video as b/w ascii art.

## Example launch line

     gst-launch-1.0 filesrc location=test.avi ! decodebin ! videoconvert ! aasink

This pipeline renders a video to ascii art into a separate window.

     gst-launch-1.0 filesrc location=test.avi ! decodebin ! videoconvert ! aasink driver=curses

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

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseSink
                        ╰──GstVideoSink
                            ╰──aasink

## Factory details

Authors: – Wim Taymans

Classification: – `Sink/Video`

Rank – none

Plugin – gstaasink

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

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

Presence – always

Direction – sink

Object type – GstPad

## Properties

### 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

### brightness

    “brightness” gint

brightness

Flags : Read / Write

Default value : 0

### contrast

    “contrast” gint

contrast

Flags : Read / Write

Default value : 16

### dither

    “dither” GstAASinkDitherers *

dither

Flags : Read / Write

Default value : no-dithering (0)

### driver

    “driver” GstAASinkDrivers *

driver

Flags : Read / Write

Default value : x11 (0)

### enable-last-sample

    “enable-last-sample” gboolean

Enable the last-sample property

Flags : Read / Write

Default value : true

### frame-time

    “frame-time” gint

frame time

Flags : Read

Default value : 0

### frames-displayed

    “frames-displayed” gint

frames displayed

Flags : Read

Default value : 0

### gamma

    “gamma” gfloat

gamma

Flags : Read / Write

Default value : 1

### height

    “height” gint

height

Flags : Read / Write

Default value : 24

### inversion

    “inversion” gboolean

inversion

Flags : Read / Write

Default value : false

### 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 : 5000000

### processing-deadline

    “processing-deadline” guint64

Maximum processing time for a buffer in nanoseconds

Flags : Read / Write

Default value : 15000000

### qos

    “qos” gboolean

Generate Quality-of-Service events upstream

Flags : Read / Write

Default value : true

### randomval

    “randomval” gint

randomval

Flags : Read / Write

Default value : 0

### render-delay

    “render-delay” guint64

Additional render delay of the sink in nanoseconds

Flags : Read / Write

Default value : 0

### show-preroll-frame

    “show-preroll-frame” gboolean

Whether to render video frames during preroll

Flags : Read / Write / Construct

Default value : true

### 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

### width

    “width” gint

width

Flags : Read / Write

Default value : 80

## Named constants

### GstAASinkDitherers

#### Members

`no-dithering` (0) – no dithering
`error-distribution` (1) – error-distribution
`floyd-steelberg-dithering` (2) – floyd-steelberg dithering

### GstAASinkDrivers

#### Members

`x11` (0) – X11 driver 1.1
`linux` (1) – Linux pc console driver 1.0
`slang` (2) – Slang driver 1.0
`curses` (3) – Curses driver 1.0
`stdout` (4) – Standard output driver
`stderr` (5) – Standard error driver

The results of the search are