Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ioctl(VIDIOC_STREAMON): Invalid argument #1195

Open
tqdinh opened this issue Nov 26, 2024 · 0 comments
Open

ioctl(VIDIOC_STREAMON): Invalid argument #1195

tqdinh opened this issue Nov 26, 2024 · 0 comments

Comments

@tqdinh
Copy link

tqdinh commented Nov 26, 2024

i have use aiortc to create

player =MediaPlayer('/dev/video0',format="v4l2", options={
            'video_size': '640x480'})

I am using RaspberryPi 4B with 64 os bookworm

I face the issue :

[video4linux2,v4l2 @ 0x36a57f10] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x36a57f10] Time per frame unknown
[video4linux2,v4l2 @ 0x36a57f10] ioctl(VIDIOC_STREAMON): Invalid argument
Traceback (most recent call last):
  File "/home/pi/Documents/webrtc/test.py", line 28, in <module>
    player =MediaPlayer('/dev/video0',format="v4l2", options={
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/Documents/webrtc/.venv/lib/python3.11/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'

Please help what I was wrong or need setting up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant