aspectratiocrop

## aspectratiocrop aspectratiocrop — Crops video into a user-defined aspect-ratio |

## Synopsis

    struct              GstAspectRatioCrop;

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GstObject
                   +----GstElement
                         +----GstBin
                               +----GstAspectRatioCrop

## Implemented Interfaces

GstAspectRatioCrop implements GstChildProxy.

## Properties

      "aspect-ratio"             GstFraction           : Read / Write

## Description

This element crops video frames to a specified "aspect-ratio".

If the aspect-ratio is already correct, the element will operate in pass-through mode.

### Example launch line

    1
    gst-launch-1.0 -v videotestsrc ! video/x-raw-rgb,height=640,width=480 ! aspectratiocrop aspect-ratio=16/9 ! ximagesink

This pipeline generates a videostream in 4/3 and crops it to 16/9.

## Synopsis

### Element Information

plugin | videocrop
author | Thijs Vermeir <thijsvermeir@gmail.com>
class | Filter/Effect/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw, format=(string){ RGBx, xRGB, BGRx, xBGR, RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, YVYU, UYVY, I420, RGB16, RGB15, GRAY8 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/x-raw, format=(string){ RGBx, xRGB, BGRx, xBGR, RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, YVYU, UYVY, I420, RGB16, RGB15, GRAY8 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

## Details

### struct GstAspectRatioCrop

    struct GstAspectRatioCrop;

## Property Details

### The `"aspect-ratio"` property

      "aspect-ratio"             GstFraction           : Read / Write

Target aspect-ratio of video.

## See Also

GstVideoCrop