cacasink

cacasink — A colored ASCII art videosink

Synopsis

struct              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.

Synopsis

Element Information

plugin

cacasink

author

Zeeshan Ali <zak147@yahoo.com>

class

Sink/Video

Element Pads

name

sink

direction

sink

presence

always

details

video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

video/x-raw-rgb, bpp=(int)16, depth=(int)16, endianness=(int)1234, red_mask=(int)63488, green_mask=(int)2016, blue_mask=(int)31, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

video/x-raw-rgb, bpp=(int)16, depth=(int)15, endianness=(int)1234, red_mask=(int)31744, green_mask=(int)992, blue_mask=(int)31, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

struct GstCACASink

struct GstCACASink {
  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;
};

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