| Top |
| gint | bufsize | Read / Write |
| GstMplexFormat | format | Read / Write |
| gint | mux-bitrate | Read / Write |
| gint | packets-per-pack | Read / Write |
| gint | sector-size | Read / Write |
| gboolean | system-headers | Read / Write |
| gboolean | vbr | Read / Write |
This element is an audio/video multiplexer for MPEG-1/2 video streams and (un)compressed audio streams such as AC3, MPEG layer I/II/III. It is based on the mjpegtools library. Documentation on creating MPEG videos in general can be found in the
MJPEG Howtoand the man-page of the mplex tool documents the properties of this element, which are shared with the mplex tool.
1 |
gst-launch -v videotestsrc num-buffers=1000 ! mpeg2enc ! mplex ! filesink location=videotestsrc.mpg |
If several streams are being multiplexed, there should (as usual) be a queue in each stream, and due to mplex' buffering the capacities of these may have to be set to a few times the default settings to prevent the pipeline stalling.
“bufsize” property “bufsize” gint
Target decoders video buffer size (kB) [default determined by format if not explicitly set].
Owner: GstMplex
Flags: Read / Write
Allowed values: [20,4000]
Default value: 46
“format” property “format” GstMplexFormat
Encoding profile format.
Owner: GstMplex
Flags: Read / Write
Default value: Generic MPEG-1
“mux-bitrate” property “mux-bitrate” gint
Bitrate of output stream in kbps (0 = autodetect).
Owner: GstMplex
Flags: Read / Write
Allowed values: [0,15360]
Default value: 0
“packets-per-pack” property “packets-per-pack” gint
Number of packets per pack for generic formats.
Owner: GstMplex
Flags: Read / Write
Allowed values: [1,100]
Default value: 1
“sector-size” property “sector-size” gint
Specify sector size in bytes for generic formats.
Owner: GstMplex
Flags: Read / Write
Allowed values: [256,16384]
Default value: 2048
“system-headers” property “system-headers” gboolean
Create system header in every pack for generic formats.
Owner: GstMplex
Flags: Read / Write
Default value: FALSE