Open abaybektursun opened 3 years ago
ERROR | root | 18.09 00:33:00.836 | Dummy-1 | cannot reshape array of size 307200 into shape (240,320,3)
@abaybektursun I have the exact same issue. It seems that the videotestsrc has 4 channels (RGBA I assume?) - so it would be 320 240 4 = 307200 in size. But the target shape is RGB (320 240 3).
I tinkered a bit in the code but could not solve the problem yet. @jackersson any hints?
ok, it turns out I can do the following before and after the custom element to solve the issue:
video/x-raw, format=RGBA ! videoconvert
@petergerten Thanks for the hint. Actually you only need video/x-raw, format=RGBA
before the custom plugin.
gst-launch-1.0 videotestsrc ! video/x-raw, format=RGBA ! gaussian_blur ! videoconvert ! autovideosink
When I run
gst-launch-1.0 videotestsrc ! gaussian_blur kernel=9 sigmaX=5.0 sigmaY=5.0 ! videoconvert ! autovideosink
I get this:Any idea what's happening?