multiple on request sinks

Greg Wunder gwunder at eoir.com
Fri Jun 17 13:47:25 PDT 2011


I'm unsure if there are other plug-ins structured as this one, but I'm trying to find out how to correctly create a gst-launch string for a plugin with 2 sink pads (one is a on request, the other is an always) & one always source pad.
The pad templates look like this in gst-inspect:

Pad Templates:
  SINK template: 'recsink_%d'
    Availability: On request
      Has request_new_pad() function: gst_cognitecdetnrec_request_new_pad
    Capabilities:
      video/x-raw-rgb
                    bpp: 24
                  depth: 24
             endianness: 4321
               red_mask: 16711680
             green_mask: 65280
              blue_mask: 255
                  width: [ 1, 2147483647 ]
                 height: [ 1, 2147483647 ]
              framerate: [ 0/1, 2147483647/1 ]

  SINK template: 'detsink'
    Availability: Always
    Capabilities:
      video/x-raw-rgb

  SRC template: 'src'
    Availability: Always
    Capabilities:
      video/x-raw-rgb
                    bpp: 24
                  depth: 24
             endianness: 4321
               red_mask: 16711680
             green_mask: 65280
              blue_mask: 255
                  width: [ 1, 2147483647 ]
                 height: [ 1, 2147483647 ]
              framerate: [ 0/1, 2147483647/1 ]

I'm using gstreamer 0.10.30.0

The following pipeline will work ok if used:

gst-launch filesrc location="/TestData/crowd.jpg" ! decodebin ! ffmpegcolorspace ! freeze ! detnrec name=t t.detsink t.src ! ffmpegcolorspace ! glimagesink filesrc location="/TestData/thumbnail_033.jpg" ! decodebin ! imagefreeze ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb, width=100, height=100 ! t.recsink_0

However, if I want to add more than one connection to the on request sink pad called "recsink", how should the pipeline be constructed?






More information about the gstreamer-devel mailing list