Plugin Writing - Pad Caps Format Change

j1432 other3 at buffingtonfx.com
Tue Feb 26 19:45:49 UTC 2019


<MODERATOR:   Why are my messages getting moderated?  I am a member of this
forum, which I understand means that I shouldn't get moderated.>

Here's a follow up on your message after my last reply:

  I see after re-reading that you are trying to use transform_ip.  My
understanding is that if have different caps on the input and output pads,
you need to use the transform function rather than transform_ip, which
stands for "transform in place".   With the transform function, you are
manually copying from one buffer into another.  With transform in place, you
just modify the buffer.

Another thing that I just tried that had some results was that if I set my
caps to RGBx instead of RGB, autovideosink now will connect to my element (I
think). Before that change, when connecting to autovideosink,  I would see
that my caps were EMPTY in the transform_caps function but now they are what
I expect.

I'm still getting the following debug messages though:

gst_ocamelement_sink_event

New clock: GstSystemClock
0:00:00.174752476  3517 0x55dfb07c9280 DEBUG            ocamelement
ocamelement.c:382:gst_ocamElement_transform_caps:<ocamelement0> transformed
video/x-raw, format=(string)RGBx, width=(int)1280, height=(int)960,
framerate=(fraction)[ 0/1, 2147483647/1 ] into video/x-raw,
format=(string)RGBx, width=(int)1280, height=(int)960
0:00:00.174780592  3517 0x55dfb07c9280 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<autovideosrc0-actual-src-v4l> error:
Internal data stream error.
0:00:00.174787494  3517 0x55dfb07c9280 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<autovideosrc0-actual-src-v4l> error:
streaming stopped, reason not-negotiated (-4)

gst_ocamelement_sink_event

ERROR: from element
/GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstV4l2Src:autovideosrc0-actual-src-v4l:
Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop ():
/GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstV4l2Src:autovideosrc0-actual-src-v4l:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000186306




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list