cacasink

cacasink — A colored ASCII art videosink

Synopsis

                    GstCACASink;

Properties

  "anti-aliasing"            gboolean              : Read / Write
  "dither"                   GstCACASinkDithering  : Read / Write
  "screen-height"            gint                  : Read
  "screen-width"             gint                  : Read

Description

Displays video as color ascii art.

Example launch line

1
CACA_GEOMETRY=160x60 CACA_FONT=5x7 gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink
This pipeline renders a video to ascii art into a separate window using a small font and specifying the ascii resolution.
1
CACA_DRIVER=ncurses gst-launch filesrc location=test.avi ! decodebin ! ffmpegcolorspace ! cacasink
This pipeline renders a video to ascii art into the current terminal.

Details

GstCACASink

typedef struct {
  GstBaseSink parent;

  gint width, height;
  gint screen_width, screen_height;
  guint bpp;
  guint dither;
  gboolean antialiasing;
  guint red_mask, green_mask, blue_mask;

  struct caca_bitmap *bitmap;
} GstCACASink;

Property Details

The "anti-aliasing" property

  "anti-aliasing"            gboolean              : Read / Write

Enables Anti-Aliasing.

Default value: TRUE


The "dither" property

  "dither"                   GstCACASinkDithering  : Read / Write

Set type of Dither.

Default value: No dithering


The "screen-height" property

  "screen-height"            gint                  : Read

The height of the screen.

Allowed values: >= 0

Default value: 25


The "screen-width" property

  "screen-width"             gint                  : Read

The width of the screen.

Allowed values: >= 0

Default value: 80

See Also

GstAASink