You are not logged in.

#1 2021-09-22 15:19:44

gardenair
Member
Registered: 2021-08-17
Posts: 42

[SOLVED]Is there any command to test Webcam ?

On my laptop, I am using xfce desktop on my Arch Linux. I want to know that just like audio  in Arch there is a command

pc@testpc ~]$ speaker-test -c2

and for testing  microphone

[pc@testpc ~]$ arecord --duration=5 --format=dat test-mic.wav
Recording WAVE 'test-mic.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
[pc@testpc ~]$ aplay test-mic.wav
Playing WAVE 'test-mic.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
[pc@testpc ~]$ 

To check hardware I use the command. (Summary below only of video)

[pc@testpc ~]$ lshw

                      *-usb:1
                      description: Video
                      product: Laptop_Integrated_Webcam_FHD
                      vendor: Sunplus IT Co
                      physical id: 5
                      bus info: usb@1:1.5
                      version: 1c.09
                      capabilities: usb-2.00
                      configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s

In end, I install obs-studio on my Arch system, and in that, I check that my laptop integrated webcam was working successfully. It was a lengthy process but it confirm for me that Arch supports my hardware (Integrated Webcam).

Kindly guide me is there any command/utility in Arch Linux to test Webcam? just like speakers and microphone.

Last edited by gardenair (2021-09-23 16:12:11)

Offline

#2 2021-09-22 15:47:10

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED]Is there any command to test Webcam ?

Offline

#3 2021-09-22 21:35:02

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 649

Re: [SOLVED]Is there any command to test Webcam ?

Use any video web app, e.g go here and click on the settings icon.

Offline

#4 2021-09-22 22:43:38

mpan
Member
Registered: 2012-08-01
Posts: 1,188
Website

Re: [SOLVED]Is there any command to test Webcam ?

community/guvcview is a basic interface to a camera with a lot of options to manipulate its operation, which makes my choice for testing such things.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2021-09-22 22:50:45

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 442

Re: [SOLVED]Is there any command to test Webcam ?

Offline

#6 2021-09-22 22:53:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [SOLVED]Is there any command to test Webcam ?

ffplay /dev/video0

You may have to change the 0 to another number.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2021-09-23 04:48:14

gardenair
Member
Registered: 2021-08-17
Posts: 42

Re: [SOLVED]Is there any command to test Webcam ?

Thanks a lot every one I really appreciate it.My query has been solved  but just for i guidance I want ask about  "guvcview  " Well when I install

[pc@testpc ~]$ sudo pacman -S guvcview

then execute it

pc@testpc ~]$ guvcview
GUVCVIEW: version 2.0.6
GUVCVIEW: couldn't open /home/pc/.config/guvcview2/video0 for read: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
[b]Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started[/b]
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[b]Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started[/b]
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

(guvcview:7417): GLib-CRITICAL **: 09:09:22.843: Failed to set scheduler settings: Operation not permitted
[pc@testpc ~]$

Though my web cam works fine but one thing I notice that there are few errors .What  are these indicating ?

Last edited by gardenair (2021-09-23 11:57:34)

Offline

Board footer

Powered by FluxBB