y4menc

y4menc — Encodes a YUV frame into the yuv4mpeg format (mjpegtools)

Synopsis

                    GstY4mEncode;

Description

Example launch line

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

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

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

Synopsis

Element Information

plugin

y4menc

author

Wim Taymans <wim.taymans@gmail.com>

class

Codec/Encoder/Video

Element Pads

name

sink

direction

sink

presence

always

details

video/x-raw-yuv, format=(fourcc){ IYUV, I420 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name

src

direction

source

presence

always

details

application/x-yuv4mpeg, y4mversion=(int)2

Details

GstY4mEncode

typedef struct {
  GstElement element;

  GstPad *sinkpad,*srcpad;

  /* caps information */
  gint width, height;
  gint fps_num, fps_den;
  gint par_num, par_den;

  /* state information */
  gboolean header;
} GstY4mEncode;