aspectratiocrop

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

Synopsis

                    GstAspectRatioCrop;

Object Hierarchy

  GObject
   +----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

gst-launch -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.

Details

GstAspectRatioCrop

typedef struct _GstAspectRatioCrop GstAspectRatioCrop;

Property Details

The "aspect-ratio" property

  "aspect-ratio"             GstFraction           : Read / Write

Target aspect-ratio of video.

See Also

GstVideoCrop