GUVCVIEW 配置文件在哪里?

GUVCVIEW 配置文件在哪里?

我之前曾使用过 GUVCVIEW。它突然停止工作。这是我收到的错误......

bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
video device: /dev/video0 
/dev/video0 - device 1
Init. Intergrated Webcam (location: usb-0000:00:1a.7-2)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 352, height = 288 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 320, height = 240 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 176, height = 144 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 160, height = 120 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 1024, height = 768 }
    Time interval between frame: 1/9, 1/5, 
{ discrete: width = 1280, height = 1024 }
    Time interval between frame: 1/9, 1/5, 
checking format: 1196444237
Format unavailable: 1196444237.
Init v4L2 failed !! 
Init video returned -2
trying minimum setup ...
video device: /dev/video0 
/dev/video0 - device 1
Init. Intergrated Webcam (location: usb-0000:00:1a.7-2)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 352, height = 288 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 320, height = 240 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 176, height = 144 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 160, height = 120 }
    Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, 
{ discrete: width = 1024, height = 768 }
    Time interval between frame: 1/9, 1/5, 
{ discrete: width = 1280, height = 1024 }
    Time interval between frame: 1/9, 1/5, 
checking format: 1448695129
Requested Format unavailable: get width 640 height 480 
vid:0c45 
pid:6410 
driver:uvcvideo

(guvcview:4079): Gtk-CRITICAL **: gtk_hscale_new_with_range: assertion `min < max' failed

(guvcview:4079): Gtk-CRITICAL **: gtk_scale_set_draw_value: assertion `GTK_IS_SCALE (scale)' failed
Segmentation fault

我猜问题在于我找不到要编辑的配置文件。有人能帮忙知道这个文件在哪里吗?我尝试搜索与 guvcview 相关的任何内容,但一无所获。

感谢您花时间阅读本文,并希望提供解决方案。

答案1

文档有误,或者至少是过时的。对于目前 ubuntu 存储库中的 guvcview 版本 (1.7.1),配置文件写入:

~/.config/guvcview/videoN

其中 videoN 对应于设备 (/dev/video0、/dev/video1、...)

答案2

引自官方文档

Guvcview 将所有选项存储在名为 .guvcviewrc 的配置文件中,该文件存储在用户主目录中。该文件在启动时打开,并在退出时重写。通过删除该文件,将加载默认值,并在退出时写入新文件。

您可以使用指定配置文件-G选项

相关内容