Hi, I’m try to open logitech c270 usb cam with python and gstreamer. I’m using the next pipeline in the script of python, and the camera doesn’t work:
v4l2src device=/dev/video0 ! video/x-raw, width=640, height=480, framerate=30/1,format=YUY2 ! nvvidconv ! video/x-raw(memory:NVMM) ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink"
The terminal show the next error:
Can not open video stream at video0
When I use the next command in the jetsnon nano terminal, the camera work fine.
gst-launch-1.0 v4l2src device=“/dev/video0” name=e ! ‘video/x-raw, width=640, height=480’ ! videoconvert ! ‘video/x-raw, width=640, height=480, format=(string)YUY2’ ! xvimagesink
How can I solve the problem?
thanks