Topic - mplayer says it's playing the sound but nothing from speakers?



Reply to this topic

Topic Starter lugoteehalt - Posted on Saturday, January 10 2009 10:52:39 AM
Have problems with lag between picture, first, and then sound latency on tv. Thought get round this with mplayer because you can change the audio/visual delay. But mplayer, although it says it is playing the sound, gives nothing out of the loudspeakers. Using sox does give the sound out of the loudspeakers but it has the said latency problem.

Anybody any thoughts about how to get the sound audible? aplay says the sound device is busy - so this might suggest mplayer is producing sound but it is muted or something.

Code:

mplayer tv:// -tv driver=v4l2:norm=PAL:input=0:amode=1:width=768:height=576:outfmt=yuy2:device=/dev/video0:chanlist=europe-west:alsa:adevice=hw.0:immediatemode=0 -key-fifo-size 2

inputs: 0 = Television; 1 = Composite1; 2 = Composite2; 3 = S-Video;
Current input: 0
Current format: BGR24
v4l2: current audio mode is : STEREO
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x576 => 720x576 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...

Got this at one point: ioctl set mute failed:
Code:

v4l2: current audio mode is : STEREO
ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
Broken configuration for this PCM: no configurations available.
Error opening audio: Device or resource busy
Error opening audio: Device or resource busy
v4l2: 0 frames successfully processed, 0 frames dropped.
v4l2: ioctl set mute failed: Bad file descriptor
v4l2: 0 frames successfully processed, 0 frames dropped.

Have tried mute/unmuted, volume.