how to interpret pads manual

Nirbheek Chauhan nirbheek.chauhan at gmail.com
Thu Oct 14 05:09:02 UTC 2021


On Thu, Oct 14, 2021 at 2:30 AM Marc via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> How do I go from something like this:
>
> video/mpeg:
>     mpegversion: { (int)1, (int)2, (int)4 }
>    systemstream: false
> video/x-h264:
>   stream-format: byte-stream
> video/x-h265:
>   stream-format: byte-stream
> video/x-dirac:
> video/x-cavs:
> video/x-wmv:
>      wmvversion: 3
>          format: WVC1
> image/x-jpc:
>
> to this video_0_0100 or video_0_0041?
>
> I take this first _0_ is the first video stream?
>

The srcpad naming is done by tsdemux. You can look at the source
code[1] to see what it means, but generally you do not need to think
about it. If you want to enumerate the srcpads for an element, there
is API for that, such as gst_element_iterate_src_pads()

1. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/0a781424e6bf11d8c6dff50f3a16c9dbb9690cec/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c#L1903

Cheers,
Nirbheek


More information about the gstreamer-devel mailing list