[linux] mplayer & ALSA

Fragaria

скачал из CVS последний mplayer, скомпилил, запускаю - а в нём, оказывается, отключена поддржка ALSA
и как в таком случае с его помощью смотреть фильмы? OSS не предлагать, хочется 6-канальный звук

a10063

а как ты компилил?
и что говорит ./configure --help?

Fragaria

компилил --enable-gui и всё вроде, а ./configure --help говорит
 
Usage: ./configure [OPTIONS]...

Configuration:
-h, --help display this help and exit

Installation directories:
--prefix=DIR use this prefix for installing mplayer [/usr/local]
--bindir=DIR use this prefix for installing mplayer binary
[PREFIX/bin]
--datadir=DIR use this prefix for installing machine independent
data files (fonts, skins) [PREFIX/share/mplayer]
--mandir=DIR use this prefix for installing manpages [PREFIX/man]
--confdir=DIR use this prefix for installing configuration files
[PREFIX/etc/mplayer]
--libdir=DIR use this prefix for object code libraries [PREFIX/lib]

Optional features:
--disable-mencoder disable mencoder (a/v encoder) compilation [enable]
--enable-gui enable gmplayer compilation (GTK 1.2 GUI) [disable]
--enable-largefiles enable support for files > 2 GBytes [disable]
--enable-linux-devfs set default devices to devfs ones [disable]
--enable-termcap use termcap database for key codes [autodetect]
--enable-termios use termios database for key codes [autodetect]
--disable-iconv do not use iconv(3) function [autodetect]
--disable-setlocale disable setlocale using in mplayer [autodetect]
--disable-langinfo do not use langinfo [autodetect]
--enable-lirc enable LIRC (remote control) support [autodetect]
--enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect]
--enable-joystick enable joystick support [disable]
--disable-vm disable support X video mode extensions [autodetect]
--disable-xf86keysym disable support for 'multimedia' keys [autodetect]
--disable-tv disable TV Interface (tv/dvb grabbers) [enable]
--disable-tv-v4l disable Video4Linux TV Interface support [autodetect]
--disable-tv-v4l2 disable Video4Linux2 TV Interface support [autodetect]
--disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect]
--disable-edl disable EDL (edit decision list) support [enable]
--disable-rtc disable RTC (/dev/rtc) on Linux [autodetect]
--disable-network disable network support (for: http/mms/rtp) [enable]
--enable-winsock2 enable winsock2 usage [autodetect]
--enable-smb enable Samba (SMB) input support [autodetect]
--enable-live enable LIVE.COM Streaming Media support [autodetect]
--disable-dvdread Disable libdvdread support [autodetect]
--disable-mpdvdkit Disable mpdvdkit/mpdvdkit2 support [autodetect]
--disable-cdparanoia Disable cdparanoia support [autodetect]
--disable-freetype Disable freetype2 font rendering support [autodetect]
--disable-fontconfig Disable fontconfig font lookup support [autodetect]
--disable-unrarlib Disable Unique RAR File Library [enabled]
--enable-menu Enable OSD menu support (NOT DVD MENU) [disabled]
--disable-sortsub Disable subtitles sorting [enabled]
--enable-fribidi Enable using the FriBiDi libs [disabled]
--disable-enca Disable using ENCA charset oracle library [autodetect]
--disable-macosx Disable Mac OS X specific features [autodetect]
--enable-macosx-finder-support Enable Mac OS X Finder invocation parameter parsing [disabled]
--disable-inet6 Disable IPv6 support [autodetect]
--disable-gethostbyname2 gethostbyname function is not provided by the C
library [autodetect]
--disable-ftp Disable ftp support [enabled]
--disable-vstream Disable tivo vstream client support [autodetect]

Codecs:
--enable-gif enable gif support [autodetect]
--enable-png enable png input/output support [autodetect]
--enable-jpeg enable jpeg input/output support [autodetect]
--enable-liblzo enable external liblzo support [autodetect]
--disable-win32 disable Win32 DLL support [autodetect]
--disable-dshow disable Win32/DirectShow support [autodetect]
--disable-qtx disable Quicktime codecs [autodetect]
--disable-xanim disable XAnim DLL support [autodetect]
--disable-real disable RealPlayer DLL support [autodetect]
--disable-xvid disable XviD codec [autodetect]
--disable-x264 disable H.264 encoder [autodetect]
--disable-divx4linux disable DivX4linux/Divx5linux codec [autodetect]
--enable-opendivx enable _old_ OpenDivx codec [disable]
--disable-libavcodec disable libavcodec [autodetect]
--disable-libavformat disable libavformat [autodetect]
--enable-libfame enable libfame realtime encoder [autodetect]
--disable-internal-tremor do not build internal OggVorbis support [enabled]
--enable-tremor-low build with lower accuracy internal tremor [disabled]
--enable-external-tremor build with external tremor [disabled]
--disable-vorbis disable OggVorbis support entirely [autodetect]
--enable-theora build with OggTheora support [autodetect]
--disable-internal-matroska disable internal Matroska support [enabled]
--enable-external-faad build with external FAAD2 (AAC) support [autodetect]
--disable-internal-faad disable internal FAAD2 (AAC) support [autodetect]
--disable-ladspa disable LADSPA plugin support [autodetect]
--disable-libdv disable libdv 0.9.5 en/decoding support [autodetect]
--disable-mad disable libmad (MPEG audio) support [autodetect]
--disable-toolame disable Toolame (MPEG layer 2 audio) support in mencoder [autodetect]
--enable-xmms build with XMMS inputplugin support [disabled]
--disable-mp3lib disable builtin mp3lib [enabled]
--disable-liba52 disable builtin liba52 [enabled]
--enable-libdts enable libdts support [autodetect]
--disable-libmpeg2 disable builtin libmpeg2 [enabled]
--disable-amr_nb disable amr narrowband, floating point [autodetect]
--disable-amr_nb-fixed disable amr narrowband, fixed point [autodetect]
--disable-amr_wb disable amr wideband, floating point [autodetect]

Video output:
--disable-vidix disable VIDIX [enable on x86 *nix]
--enable-gl build with OpenGL render support [autodetect]
--enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
--enable-vesa build with VESA support [autodetect]
--enable-svga build with SVGAlib support [autodetect]
--enable-sdl build with SDL render support [autodetect]
--enable-aa build with AAlib render support [autodetect]
--enable-caca build with CACA render support [autodetect]
--enable-ggi build with GGI render support [autodetect]
--enable-directx build with DirectX support [autodetect]
--enable-dxr2 build with DXR2 render suppor

Makc500

Переконфигурирую с нормальными ключами: добавь straem video (гей-tv смотреть samba и .т.п

a10063

когда скрипт работает, должен выводить что-то вроде
Checking for ALSA audio ... yes (using alsa 0.9.x and alsa/asoundlib.h)
иначе он не определяет, что у тебя есть алса

Chupa

хедеры от alsa установлены?

Fragaria

это-то я сделаю, но проблемы отсутствия поддержки алсы это не решает

Fragaria

 ##########################################

============ Checking for ALSA audio ============

#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5; }

cc /tmp/mplayer-conf-25223-10192.c -o /tmp/mplayer-conf-27100-10192.o -lasound -ldl -lpthread
/tmp/mplayer-conf-25223-10192.c:1:27: sys/asoundlib.h: No such file or directory
/tmp/mplayer-conf-25223-10192.c: In function `main':
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MAJOR' undeclared (first use in this function)
/tmp/mplayer-conf-25223-10192.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-25223-10192.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MINOR' undeclared (first use in this function)

ldd /tmp/mplayer-conf-27100-10192.o
ldd: /tmp/mplayer-conf-27100-10192.o: No such file or directory


#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9; }

cc /tmp/mplayer-conf-25223-10192.c -o /tmp/mplayer-conf-27100-10192.o -lasound -ldl -lpthread
/tmp/mplayer-conf-25223-10192.c:1:27: sys/asoundlib.h: No such file or directory
/tmp/mplayer-conf-25223-10192.c: In function `main':
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MAJOR' undeclared (first use in this function)
/tmp/mplayer-conf-25223-10192.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-25223-10192.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MINOR' undeclared (first use in this function)

ldd /tmp/mplayer-conf-27100-10192.o
ldd: /tmp/mplayer-conf-27100-10192.o: No such file or directory


#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9; }

cc /tmp/mplayer-conf-25223-10192.c -o /tmp/mplayer-conf-27100-10192.o -lasound -ldl -lpthread
/tmp/mplayer-conf-25223-10192.c:1:28: alsa/asoundlib.h: No such file or directory
/tmp/mplayer-conf-25223-10192.c: In function `main':
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MAJOR' undeclared (first use in this function)
/tmp/mplayer-conf-25223-10192.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-25223-10192.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MINOR' undeclared (first use in this function)

ldd /tmp/mplayer-conf-27100-10192.o
ldd: /tmp/mplayer-conf-27100-10192.o: No such file or directory


#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0; }

cc /tmp/mplayer-conf-25223-10192.c -o /tmp/mplayer-conf-27100-10192.o -lasound -ldl -lpthread
/tmp/mplayer-conf-25223-10192.c:1:27: sys/asoundlib.h: No such file or directory
/tmp/mplayer-conf-25223-10192.c: In function `main':
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MAJOR' undeclared (first use in this function)
/tmp/mplayer-conf-25223-10192.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-25223-10192.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MINOR' undeclared (first use in this function)

ldd /tmp/mplayer-conf-27100-10192.o
ldd: /tmp/mplayer-conf-27100-10192.o: No such file or directory


#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0; }

cc /tmp/mplayer-conf-25223-10192.c -o /tmp/mplayer-conf-27100-10192.o -lasound -ldl -lpthread
/tmp/mplayer-conf-25223-10192.c:1:28: alsa/asoundlib.h: No such file or directory
/tmp/mplayer-conf-25223-10192.c: In function `main':
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MAJOR' undeclared (first use in this function)
/tmp/mplayer-conf-25223-10192.c:2: error: (Each undeclared identifier is reported only once
/tmp/mplayer-conf-25223-10192.c:2: error: for each function it appears in.)
/tmp/mplayer-conf-25223-10192.c:2: error: `SND_LIB_MINOR' undeclared (first use in this function)

ldd /tmp/mplayer-conf-27100-10192.o
ldd: /tmp/mplayer-conf-27100-10192.o: No such file or directory

Result is: no

Fragaria

угу, спасибо, установил - и проблема решилась

a10063

/tmp/mplayer-conf-25223-10192.c:1:27: sys/asoundlib.h: No such file or directory
а где находятся хедеры алсы, раз он их не находит?
и еще: какая-нибудь стабильная версия mplayer-а желательна, чтобы сравнить... может в cvs кто-то что-то напутал
Оставить комментарий
Имя или ник:
Комментарий: