|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
Help con Mplayer (problemi audio)
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:
Codice:
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 ![]() 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)... ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
Ragazzi nessuno riesce a darmi una mano? Linux dice che ha un problema con /dev/dsp... Io non so proprio cosa fare!
![]() please... ![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Oct 2001
Messaggi: 11471
|
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 ![]() |
![]() |
![]() |
![]() |
#4 | |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
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 Codice:
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. Codice:
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. Codice:
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 Quote:
Ti ringrazio e spero con il tuo aiuto di risolvere questo problema... |
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
Vicious dove sei finito? (scherzo) Nessuno mi sa aiutare?
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Oct 2001
Messaggi: 11471
|
Codice:
audio_setup: Can't open audio device /dev/dsp: Dispositivo o risorsa occupata 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 ![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
grazie carissimo! ora sto ripassando che domani ho l'ultimo esame prima delle vacanze, magari dopo provo!
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Jan 2004
Città: Giussano (MI)
Messaggi: 1019
|
In realtà ho scoperto che il processo che teneva occupato /dev/dsp era gaim... una volta killato l'audio finziona... però mi sembra strano...
![]() |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:15.