Voilà, je reviens.
guy@Guy-host:~$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf0580000 irq 43
1 [U0xeb1a0x2861 ]: USB-Audio - USB Device 0xeb1a:0x2861
USB Device 0xeb1a:0x2861 at usb-0000:00:1d.7-2, high speed
Le code que tu proposes ne me donne toujours aucun son et pas d’image non plus. J’ai une fenêtre mplayer noire.
guy@Guy-host:~$ mplayer -tv device=/dev/video0:input=1:alsa=1:adevice=hw.0,0:audiorate=48000:amode=1 tv://
MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: EM2860/SAA711X Reference Design
Capabilities: video capture VBI capture device audio read/write streaming
supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
inputs: 0 = S-Video; 1 = Composite1;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
Selected input hasn't got a tuner!
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V: 0.0 499/499 ??% ??% ??,?% 0 0
v4l2: 501 frames successfully processed, -7 frames dropped.
Exiting... (Quit)
Édition :
Je viens de faire des essais d’enregistrement de sons avec Audacity : même sanction !
Quand je lance Audacity en console, voici le retour :
guy@Guy-host:~$ audacity
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = Aucun fichier ou dossier de ce type
Cannot connect to server request channel
jack server is not running or cannot be started
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1670
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1830
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
... ici, 100 fois la même ligne !
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1670
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1830
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
Alsa est configuré pour travailler avec la carte son de l’ordi mais il “refuse” de prendre en compte la gestion du son de l’appareil connecté en usb.
root@Guy-host:/home/guy# alsactl init
Found hardware: "HDA-Intel" "Conexant CX20549 (Venice)" "HDA:14f15045,103c30d5,00100100" "0x103c" "0x30d5"
Hardware is initialized using a generic method
Et je continue de farfouiller sur le net :
guy@Guy-host:~$ arecord -l
**** Liste des Périphériques Matériels CAPTURE ****
carte 0: Intel [HDA Intel], périphérique 0: CONEXANT Analog [CONEXANT Analog]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
carte 1: U0xeb1a0x2861 [USB Device 0xeb1a:0x2861], périphérique 0: USB Audio [USB Audio]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
Là, il y a bien mes 2 cartes son mais alsa ne veut travailler qu’avec la carte interne à l’ordi et il ne semble pas voir l’autre.
J’ai lu que normalement, il devrait y avoir 2 fichiers /dev/videox, l’un video0 pour la carte interne et l’autre video1 pour l’appareil d’acquisition du flux de la télé. http://randomlinux.com/uncategorized/how-to-properly-install-usb-easycap-device-in-ubuntu/
Est-ce vrai/possible ?
Si oui, comment créer ce fichier “manquant” ?