Closed ScruffySoft closed 2 years ago
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.
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
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.