raspberry pi /dev/video0 #1280
Replies: 4 comments
-
Have you tried with some other webcam? And on the camera you are using currently, what devices are created under /dev/? |
Beta Was this translation helpful? Give feedback.
-
It would work on on USB webcam and use /dev/video0, however I need to use the Raspberry Pi camera. I need a work around. The Pi uses libcamera to acess the camera model |
Beta Was this translation helpful? Give feedback.
-
The rpi camera that you are using must be outputting the video in a different format than usb webcam, and the gstreamer pipeline setup by kinesis may not be setup for this format. Check the pipeline and tweak it. |
Beta Was this translation helpful? Give feedback.
-
I can stream with gstreamer like this
It does not work with |
Beta Was this translation helpful? Give feedback.
-
I am trying to get this code https://github.com/aws-samples/python-samples-for-amazon-kinesis-video-streams-with-webrtc/blob/main/source/simple/kvsWebRTCClientMaster.py to work on a Raspberry Pi. The problem is when I get to
media = MediaPlayer('/dev/video0', format='v4l2', options=options)
I get:
File "/home/pi/python-webrtc/venv/lib/python3.9/site-packages/aiortc/contrib/media.py", line 305, in init
self.__container = av.open(
File "av/container/core.pyx", line 420, in av.container.core.open
File "av/container/core.pyx", line 266, in av.container.core.Container.cinit
File "av/container/core.pyx", line 286, in av.container.core.Container.err_check
File "av/error.pyx", line 326, in av.error.err_check
av.error.ValueError: [Errno 22] Invalid argument: '/dev/video0'
I can run v4l2-ctl -d /dev/video0 --all and I get
Driver Info:
Driver name : unicam
Card type : unicam
Bus info : platform:3f801000.csi
Driver version : 6.1.21
Capabilities : 0xa5a00001
Video Capture
Metadata Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x25200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Beta Was this translation helpful? Give feedback.
All reactions