# encodebin2

Encodebin2 is an updated version of encodebin which has a request srcpad instead of having an always source pad. This makes the element more flexible and allows supporting muxing sinks for example.

Based on the profile that was set (via the profile property), EncodeBin will internally select and configure the required elements (encoders, muxers, but also audio and video converters) so that you can provide it raw or pre-encoded streams of data in input and have your encoded/muxed/converted stream in output.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBin
                        ╰──GstEncodeBaseBin
                            ╰──encodebin2

## Implemented interfaces

    GstChildProxy

## Factory details

Authors: – Edward Hervey <edward.hervey></edward.hervey>

Classification: – `Generic/Bin/Encoder`

Rank – none

Plugin – encoding

Package – GStreamer Base Plug-ins

## Pad Templates

### `audio_%u`

    ANY

Presence – request

Direction – sink

Object type – GstPad

### `private_%u`

    ANY

Presence – request

Direction – sink

Object type – GstPad

### `src_%u`

    ANY

Presence – sometimes

Direction – src

Object type – GstPad

### `video_%u`

    ANY

Presence – request

Direction – sink

Object type – GstPad

The results of the search are