检查是否检测到捕获设备
hutber@hutber:~$ v4l2-ctl --list-devices
Razer Ripsaw X: Razer Ripsaw X (usb-0000:00:14.0-6.2):
/dev/video0
/dev/video1
我还有一个可以使用的 Camlink:
hutber@hutber:~$ v4l2-ctl --list-devices
Cam Link 4K: Cam Link 4K (usb-0000:00:14.0-6.1):
/dev/video0
/dev/video1
OBS 输出
info: v4l2-input: Start capture from
error: v4l2-input: Unable to open device
error: v4l2-input: Initialization failed, errno: No such file or directory
info: xshm-input: Geometry 2560x1440 @ 2560,0
[png_pipe @ 0x556b01ddb000] Stream #0: not enough frames to estimate rate; consider increasing probesize
info: adding 64 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: Mic/Aux)
info: xshm-input: Geometry 2560x1440 @ 5120,0
info: xshm-input: Geometry 2560x1440 @ 0,0
info: xshm-input: Geometry 2560x1440 @ 5120,0
info: v4l2-input: Start capture from /dev/video2
error: v4l2-input: Unable to open device
error: v4l2-input: Initialization failed, errno: No such file or directory
info: v4l2-input: Start capture from /dev/video0
info: v4l2-input: Input: 0
info: v4l2-input: Resolution: 3840x2160
info: v4l2-input: Pixelformat: YU12
info: v4l2-input: Linesize: 3840 Bytes
info: v4l2-input: Framerate: 30.00 fps
info: v4l2-input: /dev/video0: select timeout set to 166666 (5x frame periods)
info: v4l2-input: Start capture from /dev/video2
error: v4l2-input: Unable to open device
error: v4l2-input: Initialization failed, errno: No such file or directory
info: alsa-input: PCM 'default' rate set to 44100
info: alsa-input: PCM 'default' channels set to 2
Segmentation fault (core dumped)
当然,如果不插入 Ripsaw,OBS 可以打开并正常工作。但我对它为什么不工作还不是很理解。
答案1
我不确定这是否会对其他人有帮助,但是在对 settings.ini 进行了大量修改后,我意识到这对我根本没有帮助,但是我通过删除文件夹使视频正常工作,.config/obs-studio
这让我意识到它一定是保存的相机设置。
因为我不想丢失所有的 OBS 结构,所以我删除了每个场景中的每个摄像机,重置了 OBS 并再次添加了摄像机......然后它就成功了。