![]() |
![]() |
![]() |
GStreamer Bad Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
"analyse" GstX264EncAnalyse : Read / Write "b-pyramid" gboolean : Read / Write "bframes" guint : Read / Write "bitrate" guint : Read / Write "byte-stream" gboolean : Read / Write "cabac" gboolean : Read / Write "dct8x8" gboolean : Read / Write "key-int-max" guint : Read / Write "me" GstX264EncMe : Read / Write "pass" GstX264EncPass : Read / Write "ref" guint : Read / Write "sps-id" guint : Read / Write "stats-file" gchar* : Read / Write "subme" guint : Read / Write "threads" guint : Read / Write "trellis" gboolean : Read / Write "vbv-buf-capacity" guint : Read / Write "weightb" gboolean : Read / Write "b-adapt" gboolean : Read / Write "interlaced" gboolean : Read / Write "ip-factor" gfloat : Read / Write "noise-reduction" guint : Read / Write "pb-factor" gfloat : Read / Write "qp-max" guint : Read / Write "qp-min" guint : Read / Write "qp-step" guint : Read / Write "quantizer" guint : Read / Write
This element encodes raw video into H264 compressed data, also otherwise known as MPEG-4 AVC (Advanced Video Codec).
The "pass" property controls the type of encoding. In case of Constant Bitrate Encoding (actually ABR), the "bitrate" will determine the quality of the encoding. This will similarly be the case if this target bitrate is to obtained in multiple (2 or 3) pass encoding. Alternatively, one may choose to perform Constant Quantizer or Quality encoding, in which case the "quantizer" property controls much of the outcome.
gst-launch -v videotestsrc num-buffers=1000 ! x264enc qp-min=18 ! \ avimux ! filesink location=videotestsrc.avi
gst-launch -v videotestsrc num-buffers=1000 ! x264enc pass=quant ! \ matroskamux ! filesink location=videotestsrc.avi
plugin |
x264 |
author |
Josef Zlomek <josef.zlomek@itonis.tv>, Mark Nauwelaerts <mnauw@users.sf.net> |
class |
Codec/Encoder/Video |
name |
sink |
direction |
sink |
presence |
always |
details |
video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ] |
name |
src |
direction |
source |
presence |
always |
details |
video/x-h264, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ] |
"b-pyramid"
property"b-pyramid" gboolean : Read / Write
Keep some B-frames as references.
Default value: FALSE
"bframes"
property"bframes" guint : Read / Write
Number of B-frames between I and P.
Allowed values: <= 4
Default value: 0
"bitrate"
property"bitrate" guint : Read / Write
Bitrate in kbit/sec.
Allowed values: [1,102400]
Default value: 2048
"byte-stream"
property"byte-stream" gboolean : Read / Write
Generate byte stream format of NALU.
Default value: FALSE
"cabac"
property"cabac" gboolean : Read / Write
Enable CABAC entropy coding.
Default value: TRUE
"dct8x8"
property"dct8x8" gboolean : Read / Write
Adaptive spatial transform size.
Default value: FALSE
"key-int-max"
property"key-int-max" guint : Read / Write
Maximal distance between two key-frames (0 for automatic).
Allowed values: <= G_MAXINT
Default value: 0
"me"
property"me" GstX264EncMe : Read / Write
Integer pixel motion estimation method.
Default value: hexagonal search, radius 2
"pass"
property"pass" GstX264EncPass : Read / Write
Encoding pass/type.
Default value: Constant Bitrate Encoding
"ref"
property"ref" guint : Read / Write
Number of reference frames.
Allowed values: [1,12]
Default value: 1
"sps-id"
property"sps-id" guint : Read / Write
SPS and PPS ID number.
Allowed values: <= 31
Default value: 0
"stats-file"
property"stats-file" gchar* : Read / Write
Filename for multipass statistics.
Default value: "x264.log"
"subme"
property"subme" guint : Read / Write
Subpixel motion estimation and partition decision quality: 1=fast, 6=best.
Allowed values: [1,6]
Default value: 1
"threads"
property"threads" guint : Read / Write
Number of threads used by the codec (0 for automatic).
Allowed values: <= 4
Default value: 1
"trellis"
property"trellis" gboolean : Read / Write
Enable trellis searched quantization.
Default value: TRUE
"vbv-buf-capacity"
property"vbv-buf-capacity" guint : Read / Write
Size of the VBV buffer in milliseconds.
Allowed values: [300,10000]
Default value: 600
"weightb"
property"weightb" gboolean : Read / Write
Weighted prediction for B-frames.
Default value: FALSE
"b-adapt"
property"b-adapt" gboolean : Read / Write
Automatically decide how many B-frames to use.
Default value: TRUE
"interlaced"
property"interlaced" gboolean : Read / Write
Interlaced material.
Default value: FALSE
"ip-factor"
property"ip-factor" gfloat : Read / Write
Quantizer factor between I- and P-frames.
Allowed values: [0,2]
Default value: 1.4
"noise-reduction"
property"noise-reduction" guint : Read / Write
Noise reduction strength.
Allowed values: <= 100000
Default value: 0
"pb-factor"
property"pb-factor" gfloat : Read / Write
Quantizer factor between P- and B-frames.
Allowed values: [0,2]
Default value: 1.3
"qp-max"
property"qp-max" guint : Read / Write
Maximum quantizer.
Allowed values: [1,51]
Default value: 51
"qp-min"
property"qp-min" guint : Read / Write
Minimum quantizer.
Allowed values: [1,51]
Default value: 10
"qp-step"
property"qp-step" guint : Read / Write
Maximum quantizer difference between frames.
Allowed values: [1,50]
Default value: 4
"quantizer"
property"quantizer" guint : Read / Write
Constant quantizer or quality to apply.
Allowed values: [1,50]
Default value: 21