## mplex mplex |

## Synopsis

                        GstMplex;

## Properties

      "bufsize"                  gint                  : Read / Write
      "format"                   GstMplexFormat        : Read / Write
      "mux-bitrate"              gint                  : Read / Write
      "packets-per-pack"         gint                  : Read / Write
      "sector-size"              gint                  : Read / Write
      "system-headers"           gboolean              : Read / Write
      "vbr"                      gboolean              : Read / Write

## Description

## Synopsis

### Element Information

plugin | mplex
author | Andrew Stevens <andrew.stevens@nexgo.de> Ronald Bultje <rbultje@ronald.bitfreak.net> Mark Nauwelaerts <mnauw@users.sourceforge.net>
class | Codec/Muxer

### Element Pads

name | audio_%u
direction | sink
presence | request
details | audio/mpeg, mpegversion=(int)1, layer=(int)[ 1, 3 ], channels=(int)[ 1, 8 ], rate=(int)[ 8000, 96000 ]
| audio/x-ac3, channels=(int)[ 1, 8 ], rate=(int)[ 8000, 96000 ]
| audio/x-dts
| audio/x-raw, format=(string){ S16BE, S20BE, S24BE }, rate=(int){ 48000, 96000 }, channels=(int)[ 1, 6 ]

name | video_%u
direction | sink
presence | request
details | video/mpeg, mpegversion=(int){ 1, 2 }, systemstream=(boolean)false, width=(int)[ 16, 4096 ], height=(int)[ 16, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/mpeg, systemstream=(boolean)true

## Details

### GstMplex

    typedef struct {
      GstElement parent;

      /* pads */
      GSList *pads;
      GstPad *srcpad;
      guint num_apads, num_vpads;

      /* options wrapper */
      GstMplexJob *job;

      /* lock for syncing */
      GMutex tlock;
      /* with TLOCK */
      /* muxer writer generated eos */
      gboolean eos;
      /* flowreturn obtained by muxer task */
      GstFlowReturn srcresult;
    } GstMplex;

## Property Details

### The `"bufsize"` property

      "bufsize"                  gint                  : Read / Write

Target decoders video buffer size (kB) [default determined by format if not explicitly set].

Allowed values: [20,4000]

Default value: 46

### The `"format"` property

      "format"                   GstMplexFormat        : Read / Write

Encoding profile format.

Default value: DVD MPEG-2

### The `"mux-bitrate"` property

      "mux-bitrate"              gint                  : Read / Write

Bitrate of output stream in kbps (0 = autodetect).

Allowed values: [0,15360]

Default value: 0

### The `"packets-per-pack"` property

      "packets-per-pack"         gint                  : Read / Write

Number of packets per pack for generic formats.

Allowed values: [1,100]

Default value: 1

### The `"sector-size"` property

      "sector-size"              gint                  : Read / Write

Specify sector size in bytes for generic formats.

Allowed values: [256,16384]

Default value: 2048

### The `"system-headers"` property

      "system-headers"           gboolean              : Read / Write

Create system header in every pack for generic formats.

Default value: FALSE

### The `"vbr"` property

      "vbr"                      gboolean              : Read / Write

Whether the input video stream is variable bitrate.

Default value: FALSE