最近,我在 Ubuntu 22.04.3 LTS(64 位)上的相机开始出现问题。相机会重复拍摄帧,最终不会显示任何比开头的片段更新的帧。
我用来捕获图像的程序是 Cheese,在命令行中运行时它会输出消息
(cheese:4398): cheese-WARNING **: 13:53:33.993: 许多缓冲区被丢弃。: ../libs/gst/base/gstbasesink.c(3143): gst_base_sink_is_too_late (): /GstCameraBin:camerabin/GstViewfinderBin:vf-bin/ClutterGstVideoSink:cluttergstvideosink0:
可能存在时间戳问题,或者这台计算机太慢。
但是,如果我改用 sudo 运行 Cheese,这种行为就会改变,它会输出以下内容:
(cheese:4458): GLib-GObject-CRITICAL **: 13:54:56.298: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed
(cheese:4458): dconf-WARNING **: 13:54:56.546: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.546: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.546: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.548: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.548: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.548: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.548: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.549: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.550: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.551: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.551: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.553: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.553: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.553: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.554: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): GLib-GObject-CRITICAL **: 13:54:56.554: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed
(cheese:4458): dconf-WARNING **: 13:54:56.555: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.557: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.557: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.557: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.562: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
(cheese:4458): dconf-WARNING **: 13:54:56.562: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
奇怪的是,使用 sudo 运行它允许相机再次开始工作。
有人知道如何修复它,以便我不需要使用 sudo 来使用我的相机吗?