Форум русскоязычного сообщества Ubuntu


Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco

Автор Тема: проблемы со звуком в mplayer  (Прочитано 5513 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
проблемы со звуком в mplayer
« : 04 Июля 2013, 20:44:27 »
Использую Ubuntu-server 12.04 x64, без иксов.
Решил слушать инет-радио, поставил mplayer.

Издаю команду:
mplayer http://radio.bestfm.fm:8080/bestfm64получаю вывод:
root@ubuntu:~# mplayer http://radio.bestfm.fm:8080/bestfm64
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 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 http://radio.bestfm.fm:8080/bestfm64.
Resolving radio.bestfm.fm for AF_INET6...

Couldn't resolve name for AF_INET6: radio.bestfm.fm
Resolving radio.bestfm.fm for AF_INET...
Connecting to server radio.bestfm.fm[193.193.194.77]: 8080...

Public : no
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)
ICY Info: StreamTitle='';
Cache fill: 12.50% (40960 bytes)

Audio only file format detected.
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 48000 Hz, 2 ch, floatle, 64.0 kbit/2.08% (ratio: 8000->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A:   5.7 (05.7) of -0.0 (unknown)  0.7% 20%

MPlayer interrupted by signal 2 in module: enable_cache



MPlayer interrupted by signal 2 in module: play_audio
A:   5.8 (05.7) of -0.0 (unknown)  0.7% 20%

Exiting... (Quit)
звука нет.

root@ubuntu:~# lspci
00:00.0 Host bridge: Intel Corporation Atom Processor D2xxx/N2xxx DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D2xxx/N2xxx Integrated Graphics Controller (rev 09)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
03:00.0 Network controller: Ralink corp. RT3060 Wireless 802.11n 1T/1R

Посоветуйте, пожалуйста, что дальше-то делать...

Оффлайн victor00000

  • Старожил
  • *
  • Сообщений: 15568
  • Глухонемой (Deaf)
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #1 : 04 Июля 2013, 20:47:59 »
aplay -l
aplay -L
?
Wars ~.o

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #2 : 04 Июля 2013, 21:00:18 »
root@ubuntu:~# aplay -l
The program 'aplay' is currently not installed.  You can install it by typing:
apt-get install alsa-utils

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Intel
    HDA Intel, ALC888-VD Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, ALC888-VD Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Hardware device with all software conversions

поставил. звука нет.
« Последнее редактирование: 04 Июля 2013, 21:06:40 от kolesov »

Оффлайн victor00000

  • Старожил
  • *
  • Сообщений: 15568
  • Глухонемой (Deaf)
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #3 : 04 Июля 2013, 21:05:59 »
apt-get install alsa-utils
aplay -l
aplay -L
?
Wars ~.o

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #4 : 04 Июля 2013, 21:09:42 »
alsa-utils поставил

root@ubuntu:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888-VD Analog [ALC888-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888-VD Digital [ALC888-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@ubuntu:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Intel
    HDA Intel, ALC888-VD Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, ALC888-VD Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC888-VD Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC888-VD Digital
    Hardware device with all software conversions

Оффлайн victor00000

  • Старожил
  • *
  • Сообщений: 15568
  • Глухонемой (Deaf)
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #5 : 04 Июля 2013, 21:15:47 »
mplayer -ao alsa:device=hw=0.0 http://radio.bestfm.fm:8080/bestfm64
mplayer -ao alsa:device=hw=1.0 http://radio.bestfm.fm:8080/bestfm64
mplayer -ao alsa:device=hw=0.1 http://radio.bestfm.fm:8080/bestfm64
mplayer -ao alsa:device=hw=1.1 http://radio.bestfm.fm:8080/bestfm64
слышно?
Wars ~.o

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #6 : 04 Июля 2013, 21:33:10 »
нет, не слышно.
mplayer -ao alsa:device=hw=0.0 http://radio.bestfm.fm:8080/bestfm64
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 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 http://radio.bestfm.fm:8080/bestfm64.
Resolving radio.bestfm.fm for AF_INET6...

Couldn't resolve name for AF_INET6: radio.bestfm.fm
Resolving radio.bestfm.fm for AF_INET...
Connecting to server radio.bestfm.fm[193.193.194.77]: 8080...

Public : no
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill:  2.50% (8192 bytes)
ICY Info: StreamTitle='';


Audio only file format detected.
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 48000 Hz, 2 ch, floatle, 64.0 kbit/2.08% (ratio: 8000->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  28.3 (28.3) of -0.0 (unknown)  1.0% 19%

и так же при : mplayer -ao alsa:device=hw=0.1 http://radio.bestfm.fm:8080/bestfm64

при: mplayer -ao alsa:device=hw=1.0 http://radio.bestfm.fm:8080/bestfm64
и mplayer -ao alsa:device=hw=1.1 http://radio.bestfm.fm:8080/bestfm64
так:
root@ubuntu:~# mplayer -ao alsa:device=hw=1.0 http://radio.bestfm.fm:8080/bestfm64
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 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 http://radio.bestfm.fm:8080/bestfm64.
Resolving radio.bestfm.fm for AF_INET6...

Couldn't resolve name for AF_INET6: radio.bestfm.fm
Resolving radio.bestfm.fm for AF_INET...
Connecting to server radio.bestfm.fm[193.193.194.77]: 8080...

Public : no
Bitrate: 64kbit/s
Cache size set to 320 KBytes
Cache fill:  2.50% (8192 bytes)
ICY Info: StreamTitle='';


Audio only file format detected.
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 48000 Hz, 2 ch, floatle, 64.0 kbit/2.08% (ratio: 8000->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-2): No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=1.0'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

Оффлайн victor00000

  • Старожил
  • *
  • Сообщений: 15568
  • Глухонемой (Deaf)
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #7 : 04 Июля 2013, 21:46:24 »
ls /dev/sndребут и
ls /dev/snd?
Wars ~.o

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #8 : 04 Июля 2013, 21:49:52 »
до ребута:
root@ubuntu:~# ls /dev/snd
by-id  by-path  controlC0  controlC1  hwC0D2  pcmC0D0c  pcmC0D0p  pcmC0D1p  pcmC0D2c  pcmC1D0c  seq  timer
после:
root@ubuntu:~# ls /dev/snd
by-id  by-path  controlC0  controlC1  hwC0D2  pcmC0D0c  pcmC0D0p  pcmC0D1p  pcmC0D2c  pcmC1D0c  seq  timer
« Последнее редактирование: 04 Июля 2013, 21:53:12 от kolesov »

Оффлайн victor00000

  • Старожил
  • *
  • Сообщений: 15568
  • Глухонемой (Deaf)
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #9 : 04 Июля 2013, 22:04:35 »
Цитировать
pcmC0D2c
amixer set Master 100;amixer set PCM 100mplayer -ao alsa:device=hw=0.2 http://radio.bestfm.fm:8080/bestfm64
Wars ~.o

Оффлайн kolesov

  • Автор темы
  • Участник
  • *
  • Сообщений: 196
    • Просмотр профиля
Re: проблемы со звуком в mplayer
« Ответ #10 : 04 Июля 2013, 22:15:20 »
спасибо! все заработало! :)

можно просто

alsamixer
P.S. Когда я увидел ваш аватар - меня заинтересовала фотография, не так давно узнал, что это фото Аведона)

 

Страница сгенерирована за 0.073 секунд. Запросов: 25.