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 #69

Closed
ScruffySoft opened this issue Mar 11, 2021 · 1 comment
Closed

ioctl(VIDIOC_STREAMON): Invalid argument #69

ScruffySoft opened this issue Mar 11, 2021 · 1 comment

Comments

@ScruffySoft
Copy link

Hi

I'm running a Raspberry Pi 4 under Raspbian OS Buster (fully updated) and running a native Pi camera (V2)

PyLivestream produces the command:

ffmpeg -loglevel error -y -f v4l2 -i /dev/video0 -f pulse -i n -codec:v libx264 -pix_fmt yuv420p -preset ultrafast -b:v 2500k -g 60 -codec:a aac -b:a 128k -ar 44100 -maxrate 2500k -bufsize 1250k -strict experimental -f flv -t 5000 rtmps://live-api-s.facebook.com:443/rtmp/

which results in the error:

[video4linux2,v4l2 @ 0x39d5630] ioctl(VIDIOC_STREAMON): Invalid argument
/dev/video0: Invalid argument

my ini file contains:
[DEFAULT]
screencap_origin: 500,150
screencap_res: 1280x720
screencap_fps: 25
webcam_res: 1280x720
webcam_fps: 30
audiofs: 44100
keyframe_sec: 2
audio_bps: 128k
preset: ultrafast
exe: ffmpeg
ffprobe_exe: ffprobe
timelimit:

[linux]
webcamchan: /dev/video0
screenchan: :0.0
audiochan: n
vcap: x11grab
acap: pulse
hcam: v4l2

[facebook]
server: rtmps://live-api-s.facebook.com:443/rtmp/
key: ~/facebook.key

I have tried all sorts - including compiling everything from the latest releases (even ffmpeg.) This seems to be a hard fault and I have no idea what causes it or how to fix it.

@scivision
Copy link
Owner

Not sure, sounds like a system issue maybe not having /dev/video0 setup? Maybe try the Linux section of https://trac.ffmpeg.org/wiki/Capture/Webcam

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

2 participants