Re: No audio with Hauppauge WinTV-HVR-900 (R2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alle giovedì 08 gennaio 2009, Mauro Carvalho Chehab ha scritto:
> On Wed, 7 Jan 2009 20:31:27 +0100
> Nicola Soranzo <nsoranzo@xxxxxxxxxx> wrote:
> > Hi everybody,
> > I have a Hauppauge WinTV-HVR-900 (R2) USB stick, model 65018, which has
> > Empiatech Em2880 chip, Xceive XC3028 tuner and Micronas drx397x DVB-T
> > demodulator.
> > On the same laptop I have an Intel High Definition Audio soundcard and a
> > Syntek DC-1125 webcam.
> > ...
> > I can see analog video, but no audio with any program I used (tvtime,
> > xawtv, MythTV).
> > I'm attaching the part of /var/log/messages after the stick attach and
> > the output of the following commands:
> > aplay -l
> > arecord -l
> > cat /proc/asound/cards
> > cat /proc/asound/devices
> > cat /proc/asound/modules
> > cat /proc/asound/pcm
>
> For you to listen on audio, you need to get the audio from the digital
> em28xx input and write it on your sound card output. Unfortunately, most
> programs don't do this. The only one that does is mplayer, if you pass the
> proper parameters for it. Something like (for PAL-M std):
>
> mplayer -tv
> driver=v4l2:device=/dev/video0:norm=PAL-M:chanlist=us-bcast:alsa=1:adevice=
>hw.1:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 tv://
>
> Assuming that em28xx is detected as hw:1 and your audio as hw:0. You can
> check the wiki for more help about this subject.

I also have a webcam, so the tv is /dev/video1 and relative audio is hw.2 (see 
attachments from my previous email).
Unfortunately I had tried previously with mplayer and using:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe-west tv://

I can see the video without audio, while with:

mplayer -tv driver=v4l2:device=/dev/video1:norm=PAL:chanlist=europe-
west:alsa=1:adevice=hw.2:audiorate=48000:forceaudio=1:immediatemode=0:amode=1 
tv://

mplayer exits immediately with this error:

v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
v4l2: 0 frames successfully processed, 0 frames dropped.

and similarly with amode=0 (obviously except for s/STEREO/MONO).
In attachment the complete standard output and error for the 2 mplayer runs.

Thanks,
Nicola

MPlayer dev-SVN-r27514-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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@xxxxxxxxxxxxxxxx>
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV HVR 900 (R2)
 Tuner cap:
 Tuner rxs:
 Capabilites:  video capture  tuner  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 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
Error opening audio: Permission denied
v4l2: 0 frames successfully processed, 0 frames dropped.


Exiting... (End of file)
MPlayer dev-SVN-r27514-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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@xxxxxxxxxxxxxxxx>
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV HVR 900 (R2)
 Tuner cap:
 Tuner rxs:
 Capabilites:  video capture  tuner  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 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : MONO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
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...


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux