[MPlayer-users] Problem with capturing audio
Martin Edlman
martin.edlman at gmail.com
Sun Jul 31 19:15:40 CEST 2011
Hello,
I have Digitus USB AV capture device, which is initialized by em28xx kernel
module (card=3, which is Pinacle, but works with this Digitus too).
When I try to play the stream with mplayer, I get video but no audio. I run
mplayer tv:// -tv
width=768:device=/dev/video1:audiorate=48000:normid=5:input=1:forceaudio:alsa:amode=1:adevice=hw.1,0
-ao pulse
I can change the adevice to whatever I can imagine, but MPlayer still says
No Audio (full dump below)
I tried hw=1.0, hw.1.0, hw.1,0, 1.0, /dev/snd/pcmC1D0c, no luck. The
capture card has ALSA id 1:0.
But while Mplayer plays the video, I see in Pulse Audio Volume Control /
Input devices that there is USB 2821 Analogue stereo device and its meter
shows that there is some input on the device. So I tried to record from the
device with "arecord -d /dev/snd/pcmC1D0c x.wav" and then I played x.wav
and I heard the audio I wanted.
How can I make mplayer (mencoder) to play and grab audio from the device?
Regards,
Martin E.
I'm running Fedora 15, packages yumed to latest repository versions.
kernel-2.6.38.8-35.fc15.x86_64
mplayer-1.0-0.124.20110412svn.fc15.x86_64
mencoder-1.0-0.124.20110412svn.fc15.x86_64
pulseaudio-0.9.22-5.fc15.x86_64
alsa-firmware-1.0.24.1-2.fc15.noarch
alsa-lib-1.0.24-2.fc15.x86_64
alsa-utils-1.0.24.1-3.fc15.x86_64
alsa-tools-firmware-1.0.24.1-2.fc15.x86_64
alsa-plugins-pulseaudio-1.0.24-2.fc15.x86_64
alsamixergui-0.9.0-0.10.rc2.fc15.x86_64
MPlayer SVN-r33251-4.6.0 (C) 2000-2011 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 at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Pinnacle PCTV USB 2
Tuner cap:
Tuner rxs:
Capabilities: 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
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 720x480 => 720x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V: 0.0 40/ 40 ??% ??% ??,?% 0 0
v4l2: 42 frames successfully processed, 0 frames dropped.
There is pulseaudio running under my userid
/usr/bin/pulseaudio --start --log-target=syslog
These processes have the card opened (according to lsof)
xfce4-mix 2260 /dev/snd/controlC1
task0 2260 /dev/snd/controlC1
task1 2260 /dev/snd/controlC1
task2 2260 /dev/snd/controlC1
task3 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
threaded- 2260 /dev/snd/controlC1
xfce4-mix 6247 /dev/snd/controlC1
task0 6247 /dev/snd/controlC1
task1 6247 /dev/snd/controlC1
task2 6247 /dev/snd/controlC1
task3 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
threaded- 6247 /dev/snd/controlC1
pulseaudi 7918 /dev/snd/pcmC1D0c
pulseaudi 7918 /dev/snd/controlC1
pulseaudi 7918 /dev/snd/pcmC1D0c
alsa-sink 7918 /dev/snd/pcmC1D0c
alsa-sink 7918 /dev/snd/controlC1
alsa-sink 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/controlC1
alsa-sour 7918 /dev/snd/pcmC1D0c
alsa-sink 7918 /dev/snd/pcmC1D0c
alsa-sink 7918 /dev/snd/controlC1
alsa-sink 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/controlC1
alsa-sour 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/pcmC1D0c
alsa-sour 7918 /dev/snd/controlC1
alsa-sour 7918 /dev/snd/pcmC1D0c
More information about the MPlayer-users
mailing list