# v4l2slmpeg2dec

decodes MPEG2 Video bitstreams as DMABuf using Linux V4L2 Stateless API.

## Example launch line

    gst-launch-1.0 filesrc location=some.mov ! parsebin ! v4l2slmpeg2dec ! autovideosink

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──GstMpeg2Decoder
                            ╰──v4l2slmpeg2dec

## Factory details

Authors: – Daniel Almeida

Classification: – `Codec/Decoder/Video/Hardware`

Rank – primary + 1

Plugin – v4l2codecs

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/mpeg:
       systemstream: false
        mpegversion: 2
            profile: { (string)main, (string)simple }

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:DMABuf):
             format: DMA_DRM
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
    video/x-raw:
             format: { MT2110R, MT2110T, NV12_10LE40_4L4, NV12_10LE40, P010_10LE, YUY2, NV12_16L32S, NV12_32L32, NV12_4L4, NV12, I420 }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### media-device

    “media-device” gchararray

Path to the media device node

Flags : Read / Write / Construct Only

Default value : /dev/mediaX

### video-device

    “video-device” gchararray

Path to the video device node

Flags : Read / Write / Construct Only

Default value : /dev/videoX

The results of the search are