# y4menc

Creates a YU4MPEG2 raw video stream as defined by the mjpegtools project.

## Example launch line

(write everything in one line, without the backslash characters)

     gst-launch-1.0 videotestsrc num-buffers=250 \
     ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \
     ! y4menc ! filesink location=test.yuv

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoEncoder
                        ╰──y4menc

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Wim Taymans <wim.taymans></wim.taymans>

Classification: – `Codec/Encoder/Video`

Rank – primary

Plugin – y4m

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
             format: { I420, Y42B, Y41B, Y444, A444, GRAY8, I420_12LE, I422_12LE, Y444_12LE, I420_10LE, I422_10LE, Y444_10LE, GRAY10_LE16, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    application/x-yuv4mpeg:
         y4mversion: 2

Presence – always

Direction – src

Object type – GstPad

The results of the search are