Plugin Writing - Pad Caps Format Change
j1432
other3 at buffingtonfx.com
Tue Feb 26 17:34:27 UTC 2019
I'm having the same problem I think with a very similar transformation. I'm
going from YUY2 (but not really YUY2, it is just being called that and has
two bytes per pixel) into RGB, where I need three bytes per pixel.
I can get everything to connect up by either using fakesink or videoconvert
and my caps appear to be as I set them. Transform_caps is being called a
few times before the start function is called. Things go south on the first
sink event after that.
Here are the caps that are being set on my src pad:
video/x-raw, width=(int)1280, height=(int)960, framerate=(fraction)[ 0/1,
2147483647/1 ], format=(string)RGB
On the first sink event, it gives an error that there is an internal data
stream error then I get
streaming stopped, reason not-negotiated (-4)
On the second sink event, I get the same two errors and then it tells me
that execution ended.
I feel that this is purely about the caps that I am specifying but am
stumbling in the dark. My transform function where I am intending to copy
the input buffer over to the output buffer is never being called so the
issue isn't there.
If you or anyone reading this can help, I'd appreciate it.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list