Debian 8 最新更新后,网络摄像头不再工作。特别是奶酪显示“播放网络摄像头视频时出错”。然后我尝试使用 sudo 运行它,它显示另一条错误消息:“缺少一个或多个所需的 gstreamer 元素:cluttervideosink”然后我在网上搜索,发现了这一点:
这建议安装 gstreamer1.0-clutter 并删除文件夹 gstreamer-1.0
但是当我尝试实现该解决方案时,它只工作了一瞬间,因为该文件夹立即重新创建!
如何解决这个问题?我怀疑这是一个过时的解决方案。
我认为奇怪的事情如下:
dmesg less | grep video
很长而且很混乱,我可以发布其中的一部分:
[ 159.090682] Modules linked in: ctr ccm msr cpufreq_stats nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat joydev x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul jitterentropy_rng uvcvideo videobuf2_vmalloc sha256_ssse3 videobuf2_memops sha256_generic videobuf2_core hmac v4l2_common videodev drbg media ansi_cprng snd_hda_codec_hdmi arc4 iTCO_wdt asus_nb_wmi iTCO_vendor_support asus_wmi sparse_keymap ath9k ath9k_common ath9k_hw ath snd_hda_codec_conexant mac80211 snd_hda_codec_generic ath3k aesni_intel cfg80211 aes_x86_64 lrw gf128mul glue_helper btusb btrtl btbcm btintel ablk_helper cryptd i915 efi_pstore snd_hda_intel mei_me pcspkr bluetooth drm_kms_helper psmouse evdev snd_hda_codec serio_raw drm
[ 159.090741] rfkill efivars snd_hda_core mei lpc_ich i2c_algo_bit snd_hwdep mfd_core shpchp i2c_i801 wmi snd_soc_rt5640 snd_soc_rl6231 snd_soc_core dw_dmac snd_compress dw_dmac_core video snd_pcm battery snd_timer snd soundcore regmap_i2c int3402_thermal snd_soc_sst_acpi processor_thermal_device i2c_designware_platform intel_soc_dts_iosf i2c_designware_core int3400_thermal int340x_thermal_zone ac iosf_mbi acpi_thermal_rel processor button fuse parport_pc ppdev lp parport autofs4 ext4 crc16 mbcache jbd2 sg sd_mod crc32c_intel ahci xhci_pci libahci xhci_hcd libata scsi_mod usbcore usb_common thermal thermal_sys sdhci_acpi sdhci i2c_hid hid mmc_core
[ 159.090850] [<ffffffffa08bf207>] ? uvc_delete+0x17/0x150 [uvcvideo]
[ 159.090868] [<ffffffffa089044a>] ? v4l2_release+0x4a/0x80 [videodev]
[ 159.106724] Modules linked in: ctr ccm msr cpufreq_stats nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat joydev x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul jitterentropy_rng uvcvideo videobuf2_vmalloc sha256_ssse3 videobuf2_memops sha256_generic videobuf2_core hmac v4l2_common videodev drbg media ansi_cprng snd_hda_codec_hdmi arc4 iTCO_wdt asus_nb_wmi iTCO_vendor_support asus_wmi sparse_keymap ath9k ath9k_common ath9k_hw ath snd_hda_codec_conexant mac80211...
另一个可能有用的输出是这样的,这就是当我在没有 sudo 的情况下从终端运行 Cheese 时发生的情况:
(cheese:7654): cheese-WARNING **: Could not read from resource.: gstv4l2bufferpool.c(995): gst_v4l2_buffer_pool_poll (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin28/GstV4l2Src:video_source:
poll error 1: Invalid argument (22)
** (cheese:7654): CRITICAL **: cheese_preferences_dialog_on_source_change: assertion '_tmp2_ > ((guint) 0)' failed
(cheese:7654): cheese-CRITICAL **: cheese_camera_device_get_device_node: assertion 'CHEESE_IS_CAMERA_DEVICE (device)' failed
(cheese:7654): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed
(cheese:7654): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion 'value != NULL' failed
(cheese:7654): GLib-CRITICAL **: g_variant_get_type_string: assertion 'value != NULL' failed
(cheese:7654): GLib-GIO-CRITICAL **: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given
** (cheese:7654): CRITICAL **: cheese_preferences_dialog_setup_resolutions_for_device: assertion 'device != NULL' failed
编辑:正如评论中所要求的那样
sudo apt-get -f install 的输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.