Appsink + Internal Data Error v4l2

Alex Carr abcfilm at gmail.com
Mon May 18 02:20:22 UTC 2020


Thank you for your response!

I thought I tried adding videoconvert before, but very happy it works now!

Thanks!

-Alex

On Sun, May 17, 2020, 18:28 Nicolas Dufresne <nicolas at ndufresne.ca> wrote:

>
>
> Le dim. 17 mai 2020 12 h 00, Alex Carr <abcfilm at gmail.com> a écrit :
>
>> Hello,
>>
>> I have run into a problem with a new capture card, I'm just looking
>> for some suggestions how to collect some more info and hopefully solve
>> this problem.. maybe it's actually an OpenCV or driver problem.
>>
>> This is a working Gstreamer pipeline with this hardware, very happy
>> with this so far.
>>
>> `gst-launch-1.0 v4l2src device=/dev/video0 -e ! video/x-raw,
>> framerate=30/1, width=1920, height=1080 ! xvimagesink`
>>
>> However, This pipeline Does not work when supplied to a
>> cv2.VideoCapture() in OpenCV Python 4.1.0 when I've changed to an
>> Appsink over xvimagesink.
>>
>> cap = cv2.VideoCapture('v4l2src device=/dev/video0 ! video/x-raw,
>> framerate=30/1, width=1920, height=1080 ! appsink')
>>
>> -truncated vague error-
>> ''Error with module v4l2src: Internal Data Error"
>>
>> I've tried wait-on-eos=false (or true).
>>
>> Maybe someone has run into this before, and might have some clue about
>> it. Thanks for your time.
>>
>
> OpenCV likely require specific video format not supported by your capture
> card. Consider adding videoconvert element in your pipeline.
>
>
>
>> -Alex
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200517/842a9da7/attachment-0001.htm>


More information about the gstreamer-devel mailing list