Ajuda com Webcam - Arch linux

1. Ajuda com Webcam - Arch linux

Eduardo
egurgle

(usa Arch Linux)

Enviado em 28/04/2020 - 14:16h

Boa tarde,,, Eu usava o Antergos mas, como descontinuaram o projeto acabei migrando de vez para o Arch.
Tudo estava funcionando perfeitamente até que minha filha precisou usar a Webcam integrada ao meu Laptop ASUS A53S. Foi nesse momento que percebi que ela não estava funcionando mas, funcionava perfeitamente no Antergos e funciona no Windows 10.
Acontece o seguinte: se eu abro o v4l2 a luz da Webcam acende (fica verde) mas não aparece imagem. A mesma coisa acontece no hangouts com videoconferência.

usando o comando $dmesg | tail com v4l2 aberto tenho esse resultado:
$ dmesg | tail
[ 3390.894905] audit: type=1130 audit(1588091258.301:159): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 3420.947139] audit: type=1131 audit(1588091288.351:160): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 3421.040884] audit: type=1334 audit(1588091288.448:161): prog-id=32 op=UNLOAD
[ 3421.040897] audit: type=1334 audit(1588091288.448:162): prog-id=31 op=UNLOAD
[ 4303.190551] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4313.993839] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4324.790226] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4335.590549] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4346.390503] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4357.167163] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).


$dmesg | grep uvc
$ dmesg | grep uvc
[ 12.069617] uvcvideo: Found UVC 1.00 device ASUS USB2.0 WebCam (058f:a014)
[ 12.076100] uvcvideo 1-1.2:1.0: Entity type for entity Extension 6 was not initialized!
[ 12.076103] uvcvideo 1-1.2:1.0: Entity type for entity Processing 5 was not initialized!
[ 12.076105] uvcvideo 1-1.2:1.0: Entity type for entity Selector 4 was not initialized!
[ 12.076107] uvcvideo 1-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[ 12.076346] usbcore: registered new interface driver uvcvideo
[ 2021.410355] usbcore: deregistering interface driver uvcvideo
[ 2030.470308] uvcvideo: Found UVC 1.00 device ASUS USB2.0 WebCam (058f:a014)
[ 2030.478989] uvcvideo 1-1.2:1.0: Entity type for entity Extension 6 was not initialized!
[ 2030.478997] uvcvideo 1-1.2:1.0: Entity type for entity Processing 5 was not initialized!
[ 2030.479001] uvcvideo 1-1.2:1.0: Entity type for entity Selector 4 was not initialized!
[ 2030.479005] uvcvideo 1-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[ 2030.479676] usbcore: registered new interface driver uvcvideo
[ 4303.190551] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4313.993839] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4324.790226] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4335.590549] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4346.390503] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).
[ 4357.167163] uvcvideo: Failed to query (GET_CUR) UVC control 10 on unit 5: -110 (exp. 2).


$ ls -la /dev/video*

crw-rw----+ 1 root video 81, 0 abr 28 13:04 /dev/video0
crw-rw----+ 1 root video 81, 1 abr 28 13:04 /dev/video1


v4l2-ctl --list-devices

ASUS USB2.0 WebCam: ASUS USB2.0 (usb-0000:00:1a.0-1.2):
/dev/video0
/dev/video1


Tentei seguir as instruções => https://wiki.archlinux.org/index.php/Webcam_setup
Resultados:
. a câmera não inicializa...
. xawtv não carrega...

Alguma ideia???
No aguardo



  


2. Re: Ajuda com Webcam - Arch linux

niquelnausea
niquelnausea

(usa Arch Linux)

Enviado em 28/04/2020 - 20:17h

poderia ser falta de algum codec como o ffmpeg ou o gstreamer?


3. Re: Ajuda com Webcam - Arch linux

Eduardo
egurgle

(usa Arch Linux)

Enviado em 29/04/2020 - 09:49h

niquelnausea escreveu:

poderia ser falta de algum codec como o ffmpeg ou o gstreamer?


Bom dia, obrigado pela ajuda.
Então, chequei e eles estavam instalados mas mesmo assim rodei um pacman -S para reinstalá-los.
Mas, o problema ainda continua.

novo dmesg | tail sem abrir o v4l2:

$ dmesg | tail
[ 312.477364] kauditd_printk_skb: 13 callbacks suppressed
[ 312.477370] audit: type=1131 audit(1588164108.535:107): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 312.508724] audit: type=1334 audit(1588164108.569:108): prog-id=18 op=UNLOAD
[ 312.508733] audit: type=1334 audit(1588164108.569:109): prog-id=17 op=UNLOAD
[ 656.600114] audit: type=1100 audit(1588164452.662:110): pid=1838 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_unix,pam_permit acct="tcolombo" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 656.600502] audit: type=1101 audit(1588164452.662:111): pid=1838 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="tcolombo" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 656.605744] audit: type=1110 audit(1588164452.669:112): pid=1838 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 656.605918] audit: type=1105 audit(1588164452.669:113): pid=1838 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 668.457937] audit: type=1106 audit(1588164464.519:114): pid=1838 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 668.458073] audit: type=1104 audit(1588164464.519:115): pid=1838 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'


Mais ideias?
Obrigado


4. Re: Ajuda com Webcam - Arch linux

Lucky
LckLinux

(usa Slackware)

Enviado em 29/04/2020 - 12:23h

Bom dia.
Se achar que vale, experimenta testar/instalar este aplicativo aqui e verifica o comportamento do vídeo da tua Webcam (OBS) https://www.archlinux.org/packages/community/x86_64/obs-studio/



5. Re: Ajuda com Webcam - Arch linux

Eduardo
egurgle

(usa Arch Linux)

Enviado em 29/04/2020 - 18:51h

LckLinux escreveu:

Bom dia.
Se achar que vale, experimenta testar/instalar este aplicativo aqui e verifica o comportamento do vídeo da tua Webcam (OBS) https://www.archlinux.org/packages/community/x86_64/obs-studio/


Boa noite,,, instalei o obs-studio e fiz o teste. A câmera não funcionou mas consegui essas informações:
$ obs

$ obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/locale/pt-BR.ini
Attempted path: /usr/share/obs/obs-studio/locale/pt-BR.ini
info: Using preferred locale 'pt-BR'
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
info: CPU Speed: 1410.952MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 3712MB Total, 1476MB Free
info: Kernel Version: Linux 5.6.7-arch1-1
info: Distribution: "Arch Linux" Unknown
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.8
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 25.0.4-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2)
info: OpenGL loaded successfully, version 3.3 (Core Profile) Mesa 20.0.5, shading language 3.30
info: ---------------------------------
info: video settings reset:
base resolution: 1366x768
output resolution: 1364x768
downscale filter: Bicubic
fps: 60/1
format: NV12
YUV mode: 601/Partial
info: NV12 texture support not available
info: Audio monitoring device:
name: Padrão
id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
error: os_dlopen(/usr//lib/obs-plugins/frontend-tools.so->/usr//lib/obs-plugins/frontend-tools.so): libluajit-5.1.so.2: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente

warning: Module '/usr//lib/obs-plugins/frontend-tools.so' not loaded
libDeckLinkAPI.so: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente
warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
info: No blackmagic support
info: NVENC supported
info: FFMPEG VAAPI supported
error: os_dlopen(/usr//lib/obs-plugins/obs-libfdk.so->/usr//lib/obs-plugins/obs-libfdk.so): libfdk-aac.so.2: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente

warning: Module '/usr//lib/obs-plugins/obs-libfdk.so' not loaded
info: VLC found, VLC video source enabled
info: ---------------------------------
info: Loaded Modules:
info: vlc-video.so
info: text-freetype2.so
info: rtmp-services.so
info: obs-x264.so
info: obs-transitions.so
info: obs-outputs.so
info: obs-filters.so
info: obs-ffmpeg.so
info: linux-v4l2.so
info: linux-pulseaudio.so
info: linux-jack.so
info: linux-decklink.so
info: linux-capture.so
info: linux-alsa.so
info: image-source.so
info: decklink-ouput-ui.so
info: ---------------------------------
info: ==== Startup complete ===============================================
error: Service '' not found
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 13.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: pulse-input: Server name: 'pulseaudio 13.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
info: v4l2-input: Start capture from /dev/video0
info: v4l2-input: Input: 0
info: v4l2-input: Resolution: 640x480
info: v4l2-input: Pixelformat: VYUY
info: v4l2-input: Linesize: 1280 Bytes
info: v4l2-input: Framerate: 30,00 fps
info: Switched to scene 'Cena'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Cena':
info: - source: 'Dispositivo de Captura de Vídeo (V4L2)' (v4l2_input)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds (source: Mic/Aux)

info: ---------------------------------
info: [NVENC encoder: 'simple_h264_recording'] settings:
rate_control: CQP
bitrate: 0
cqp: 21
keyint: 250
preset: hq
profile: high
width: 1364
height: 768
2-pass: false
b-frames: 2
GPU: 0

[h264_nvenc @ 0x5603d537fb00] Driver does not support the required nvenc API version. Required: 9.1 Found: 8.1
[h264_nvenc @ 0x5603d537fb00] The minimum required Nvidia driver for nvenc is 435.21 or newer
warning: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec: Função não implementada


No aguardo,,


6. Re: Ajuda com Webcam - Arch linux

Eduardo
egurgle

(usa Arch Linux)

Enviado em 03/05/2020 - 09:09h

Só passando pra atualizar...
Meu problema foi resolvido,,, tentei de tudo e nada resolvia,,, no final rodei um pacman -Syu antes de dormir e no outro dia tudo estava funcionando normal.



7. Re: Ajuda com Webcam - Arch linux

Lucky
LckLinux

(usa Slackware)

Enviado em 03/05/2020 - 12:17h

Bom dia, que bom que você resolveu!

Cuide-se \o/






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts