Entra

View Full Version : Help con Mplayer (problemi audio)


Zeno Cosini
04-07-2004, 21:06
Ciao ragazzi, non riuscendo a vedere filmati con l'audio con xine ho provato ad installare VLC sulla mia Knoppix. Il problema come ingenuamente speravo non era il player, infatti dopo aver installato anche mplayer riesco al massimo a visualizzare il flusso video senza però avere un output audio, eccovi cosa "dice" mplayer:
zeno@AleBox:~$ mplayer /home/zeno/Desktop/3.mpg
MPlayer dev-CVS--3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1396 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for Debian.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/zeno/.mplayer/config
Reading /home/zeno/.mplayer/codecs.conf: Can't open '/home/zeno/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Failed to open /dev/rtc: Dispositivo o risorsa occupata (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/zeno/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Permission denied
Can't init input joystick
Setting up LIRC support...
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 /home/zeno/Desktop/3.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 25,000 fps 750,0 kbps (93,8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: no soundcards found: Success
audio_setup: Can't open audio device /dev/dsp: Dispositivo o risorsa occupata
alsa-init: no soundcards found: Success
AO: [arts] can't connect to aRts soundserver
AO: [esd] esd_open_sound failed: No such file or directory
ao_nas: init(): Can't open nas audio server -> nosound
SDL: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: Unable to open audio: No available audio device
AO: [null] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 320x240 => 320x240 Planar YV12
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
A: 9,2 V: 9,2 A-V: -0,004 ct: 0,137 217/217 2% 5% 1,6% 1 0 5%%

MPlayer interrupted by signal 15 in module: sleep_usleep
Che devo fare? Non ho mai avuto problemi relativi all'audio con linux su questo portatile, prima avevo mandrake, quindi non so proprio che pesci prendere, magari si reisce a comprendere il problema da ciò che dice mplayer... :rolleyes:
Cmq non è che l'audio nn funzioni proprio, infatti ad esempio i suoni di Gaim vengono riprodotti e provando un mp3 con XMMS veniva riprodotto (anche se a velocità accelerata tipo falsetto)...

:cry: H E L P :cry:

Zeno Cosini
05-07-2004, 12:53
Ragazzi nessuno riesce a darmi una mano? Linux dice che ha un problema con /dev/dsp... Io non so proprio cosa fare! :rolleyes:
please... :(

VICIUS
05-07-2004, 13:50
Che driver usi oss ? alsa ?
Hai per caso qualche demone audio che gira quando cerchi di lanciare un filmato ?

Prova a specificare il driver usando -ao nome_del_driver

ciao ;)

Zeno Cosini
05-07-2004, 14:22
Intanto ti ringrazio per l'aiuto, se ho ben capito devo scrivere così:
mplayer /home/zeno/Desktop/1.mpg -ao alsa
oppure
mplayer /home/zeno/Desktop/1.mpg -ao oss
in entrambe i casi i risultati sono questi:

mplayer /home/zeno/Desktop/1.mpg -ao alsa
zeno@AleBox:~$ mplayer /home/zeno/Desktop/1.mpg -ao alsa
MPlayer dev-CVS--3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1396 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for Debian.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/zeno/.mplayer/config
Reading /home/zeno/.mplayer/codecs.conf: Can't open '/home/zeno/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/zeno/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Permission denied
Can't init input joystick
Setting up LIRC support...
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 /home/zeno/Desktop/1.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 640x480 (aspect 1) 30,000 fps 750,0 kbps (93,8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8000->176400 (64,0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: no soundcards found: Success
Could not open/initialize audio device -> no sound.


MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
mplayer /home/zeno/Desktop/1.mpg -ao oss
zeno@AleBox:~$ mplayer /home/zeno/Desktop/1.mpg -ao oss
MPlayer dev-CVS--3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1396 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for Debian.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/zeno/.mplayer/config
Reading /home/zeno/.mplayer/codecs.conf: Can't open '/home/zeno/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/zeno/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Permission denied
Can't init input joystick
Setting up LIRC support...
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 /home/zeno/Desktop/1.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 640x480 (aspect 1) 30,000 fps 750,0 kbps (93,8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8000->176400 (64,0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: Can't open audio device /dev/dsp: Dispositivo o risorsa occupata
Could not open/initialize audio device -> no sound.


MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
mplayer /home/zeno/Desktop/1.mpg
zeno@AleBox:~$ mplayer /home/zeno/Desktop/1.mpg
MPlayer dev-CVS--3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1396 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for Debian.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/zeno/.mplayer/config
Reading /home/zeno/.mplayer/codecs.conf: Can't open '/home/zeno/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/zeno/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Permission denied
Can't init input joystick
Setting up LIRC support...
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 /home/zeno/Desktop/1.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 640x480 (aspect 1) 30,000 fps 750,0 kbps (93,8 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8000->176400 (64,0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: no soundcards found: Success
audio_setup: Can't open audio device /dev/dsp: Dispositivo o risorsa occupata
alsa-init: no soundcards found: Success
AO: [arts] Connected to sound server
AO: [arts] Stream opened
AO: [arts] buffer size: 32768
AO: [arts] packet size: 2048
AO: [arts] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 640x480 => 640x480 Planar YV12
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
A: 0,5 V: 0,5 A-V: -0,083 ct: -0,003 5/ 5 0% 0% 0,0% 0 0 91%

MPlayer interrupted by signal 15 in module: sleep_usleep

Hai per caso qualche demone audio che gira quando cerchi di lanciare un filmato ?
Onestamente non lo so, se mi dici come si vede te lo dico...
Ti ringrazio e spero con il tuo aiuto di risolvere questo problema...

Zeno Cosini
05-07-2004, 16:21
Vicious dove sei finito? (scherzo) Nessuno mi sa aiutare?

VICIUS
05-07-2004, 17:17
audio_setup: Can't open audio device /dev/dsp: Dispositivo o risorsa occupata

Questo messaggio dice che la risorsa è gia occupata. Quindi c'è gia qualcosa che usa il dispositivo audio. Proabilmente il demone audio del tuo DE. Se usi kde il demone si chiama artsd. Ne esistono altri ma questo è il piu comune puoi controllare se è avviato tramite top o ps auxb.

Prova a uccidere il processo tramite killall -9 nomeprocesso. Se proprio non riesci a trovare chi tiene occupato /dev/dsp puoi usare fuser /dev/dsp per sapere il pid giusto.

Io uso kde e ho disabilitato artsd all'avvio tramite il pannello di controllo anche perchè di avere i suoni quando le finestre si ingrandiscono non mi interessa.

La cosa che è piu strana è che specificando il driver da linea di comando mplayer viene terminato da un sig11. Un segmentation fault non è una bella cosa forse ci sono gia dei problemi nel pachetto che hai installato.

ciao ;)

Zeno Cosini
05-07-2004, 17:52
grazie carissimo! ora sto ripassando che domani ho l'ultimo esame prima delle vacanze, magari dopo provo! :cool:

Zeno Cosini
07-07-2004, 00:48
In realtà ho scoperto che il processo che teneva occupato /dev/dsp era gaim... una volta killato l'audio finziona... però mi sembra strano... :confused: