[MPlayer-users] Still more "no audio" problems
Don Koch
aardvark at krl.com
Tue Dec 6 18:42:07 CET 2005
It seems that "no audio" from mplayer when using a tv capture card is a common
problem. Sounds like an extensive FAQ entry is needed.
I'm running into the same problem. I looked through the FAQ and searched the
archives. Nothing I've seen so far works.
Software and hardware being used:
MPlayer dev-CVS-051204-14:55-3.4.4 (C) 2000-2005 MPlayer Team
Linux 2.6.15-rc4-gb3c6aeb3
pcHDTV hd3000 card
ICH5/i810 audio
Loopback cable from hd3000 line out to audio line in.
The capture device is set to line and capture is unmuted and set to 100.
Tvtime works fine. Mplayer - nothing. Have tried various combinations of
adevice (/dev/mixer and /dev/dsp), forceaudio, alsa with various alsa devices in adevice (BTW, an example
of what the alsa device name should look like should be added to the man
page, I'm using something like 'hw.0,0'), amode (1) and immediatemode (0 and 1).
I've been using the .mplayer/config file for this lately to keep track of
which options I've used and commenting out stuff that I might need later.
Current line (broken for readability) is:
tv=driver=v4l2:chanlist=us-cable:normid=0:decimation=1:saturation=65
:contrast=25:brightness=50:hue=50:outfmt=i420:width=768:height=576
:forceaudio=yes
Any clues?
Further question: why can't mplayer use the same method for finding the
audio channel when using tv: that tvtime does? Or, better yet, if the
'alsa' flag is used, do the appropriate thing using the alsa interface?
% mplayer -v tv://
MPlayer dev-CVS-051204-14:55-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Celeron D Prescott; Xeon Nocona (Family: 15, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
CommandLine: 'tv://' '-v'
init_freetype
get_path('font/font.desc') -> '/home/aardvark/.mplayer/font/font.desc'
Font /home/aardvark/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /usr/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('.conf') -> '/home/aardvark/.mplayer/.conf'
Playing tv://.
get_path('sub/') -> '/home/aardvark/.mplayer/sub/'
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
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: pcHDTV HD3000 HDTV
Tuner cap:
Tuner rxs:
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = NTSC-M; 1 = NTSC-JP; 2 = PAL-BG; 3 = PAL-DK; 4 = PAL-I; 5 = PAL-M; 6 = PAL-N; 7 = PAL-Nc; 8 = PAL-60; 9 = SECAM-L; 10 = SECAM-DK;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Format GREY ( 8 bits, 8 bpp, gray): Planar Y800
Format RGB555 (16 bits, 15 bpp RGB, le): BGR 15-bit
Format RGB555X (16 bits, 15 bpp RGB, be): Unknown
Format RGB565 (16 bits, 16 bpp RGB, le): BGR 16-bit
Format RGB565X (16 bits, 16 bpp RGB, be): Unknown
Format BGR24 (24 bits, 24 bpp RGB, le): BGR 24-bit
Format BGR32 (32 bits, 32 bpp RGB, le): BGRA
Format RGB32 (32 bits, 32 bpp RGB, be): RGBA
Format YUYV (16 bits, 4:2:2, packed, YUYV): Packed YUY2
Format UYVY (16 bits, 4:2:2, packed, UYVY): Packed UYVY
Current format: BGR24
v4l2: current audio mode is : MONO
v4l2: set format: YUV420
v4l2: ioctl set format failed: Invalid argument
v4l2: set input: 0
Selected norm id: 0
v4l2: set norm: NTSC-M
v4l2: set width: 768
v4l2: set height: 576
Selected channel list: us-cable (including 133 channels)
Current frequency: 5780 (361.250)
==> Found video stream: 0
v4l2: get format: BGR24
v4l2: get fps: 29.970030
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 2 frames, 1 MB total size.
v4l2: set Brightness: 127 [0, 255]
v4l2: set Hue: 127 [0, 255]
v4l2: set Saturation: 165 [0, 255]
v4l2: set Contrast: 63 [0, 255]
[V] filefmt:9 fourcc:0x42475218 size:640x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/aardvark/.mplayer/sub/'
get_path('default.sub') -> '/home/aardvark/.mplayer/default.sub'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours LAYER FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 2046x2046
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: BGR 24-bit)
Trying filter chain: scale vo
VDec: using BGR 24-bit as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x42475218)
SwScaler: using unscaled BGR 24-bit -> Planar YV12 special converter
REQ: flags=0x437 req=0x0
VO: [xv] 640x480 => 640x480 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
geometry set to width: 768,height: 576, xoff: -1, yoff: -1, xper: -1, yper: -1
geometry set to width: 768,height: 576, xoff: -1, yoff: -1, xper: -1, yper: -1
geometry window parameter: widw: 640, widh: 480, scrw: 1600, scrh: 1200
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 105 for hw scaling
[xv] dx: 0 dy: 0 dw: 768 dh: 576
Selected video codec: [rawbgr24] vfm: raw (RAW BGR24)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
v4l2: going to capture
*** [scale] Exporting mp_image_t, 640x480x24bpp BGR packed, 921600 bytes
*** [vo] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
Thanks,
-d
More information about the MPlayer-users
mailing list