我最近在网上买了一个最便宜的红外摄像头。它在我的 Windows 机器上运行良好,但我无法让它在我的 Ubuntu 18.10 上运行。你能帮忙吗?
我已经尝试过的:
打开 Cheese 显示“未找到设备”
打开 VLC,转到媒体 > 打开捕获设备并尝试使用
/dev/video0
或/dev/video1
(我不知道为什么在连接相机时会出现其中 2 个)说:无法打开您的输入:VLC 无法打开 MRL“v4l2:///dev/video0”。请查看日志了解详细信息。”
以下是日志:
main debug: nothing to play main debug: processing request item: v4l2:///dev/video1, node: Playlist, skip: 0 main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index 0 main debug: starting playback of new item main debug: resyncing on v4l2:///dev/video1 main debug: v4l2:///dev/video1 is at 0 main debug: creating new input thread main debug: Creating an input for 'v4l2:///dev/video1' main debug: requesting art for new input thread main debug: using timeshift granularity of 50 MiB main debug: using default timeshift path main debug: `v4l2:///dev/video1' gives access `v4l2' demux `any' path `/dev/video1' main debug: creating demux: access='v4l2' demux='any' location='/dev/video1' file='/dev/video1' main debug: looking for access_demux module matching "v4l2": 21 candidates v4l2 debug: opening device '/dev/video1' v4l2 error: cannot open device '/dev/video1': Operation not permitted v4l2 debug: opening device '/dev/video1' main debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in /home/master/snap/vlc/770/.local/share/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /snap/vlc/770/usr/lib/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /snap/vlc/770/usr/share/vlc/lua/meta/fetcher main debug: no meta fetcher modules matched main debug: looking for art finder module matching "any": 2 candidates lua debug: Trying Lua scripts in /home/master/snap/vlc/770/.local/share/vlc/lua/meta/art lua debug: Trying Lua scripts in /snap/vlc/770/usr/lib/vlc/lua/meta/art v4l2 error: cannot open device '/dev/video1': Operation not permitted main debug: no access_demux modules matched main debug: creating access: v4l2:///dev/video1 main debug: (path: /dev/video1) main debug: looking for access module matching "v4l2": 26 candidates v4l2 debug: opening device '/dev/video1' v4l2 error: cannot open device '/dev/video1': Operation not permitted main debug: no access modules matched lua debug: Trying Lua playlist script /snap/vlc/770/usr/lib/vlc/lua/meta/art/00_musicbrainz.luac main debug: dead input main debug: changing item without a request (current 0/1) main debug: nothing to play
运行时
lsusb -t
,我得到:/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M |__ Port 1: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 2: Dev 11, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 12, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 13, If 3, Class=Audio, Driver=snd-usb-audio, 12M |__ Port 4: Dev 13, If 1, Class=Video, Driver=uvcvideo, 12M |__ Port 4: Dev 13, If 4, Class=Mass Storage, Driver=usb-storage, 12M |__ Port 4: Dev 13, If 2, Class=Audio, Driver=snd-usb-audio, 12M |__ Port 4: Dev 13, If 0, Class=Video, Driver=uvcvideo, 12M
答案1
我打开了 synaptic(我建议安装它)并查找了 VLC 扩展。起初我以为我必须安装 vlc-plugin-zvbi,但它不可用,至少在 20.04 中不可用。
我使用以下命令使其工作: sudo apt install vlc-plugin-access-extra vlc-plugin-base vlc-plugin-qt vlc-plugin-video-output vlc-plugin-video-splitter vlc-plugin-visualization
公平地说,我没有检查它是否适用于较少的软件包。我只是点击了所有多媒体选项。