- 论坛徽章:
- 0
|
现在把支持rtsp协议的MPlayer安装成功了.
做个笔记如下:
首先要安装流媒体服务器,使用了REALNETWORKS的Helix Server Basic,
30天的试用期,最大联接数5,去注册个license先
config.armlinux_270 编译liveMedia live555
下载realPcodec4ARM
./configure mplayer
下载skin和gtk-dev for FC 4 i386
安装glib dev 1.2和 gtk dev 1.2
./configure --enable-gui --enable-x11
因为没有安装x11-dev,所以不能使用--enable-static
建立一个FIFO
mkfifo mypipe
./mplayer -slave -quiet -input file=path/mypipe test.rm
echo "pause" > path/mypipe
可以使用管道向mplayer传递控制参数
arm:
./configure --host-cc=gcc --cc=arm-linux-gcc --target=arm-armv4l-linux --enable-static --disable-win32 --disable-dvdread --enable-fbdev --enable-live --with-livelibdir=/usr/local/lib/live --with-reallibdir=/usr/local/lib/codecs/
x86:
./configure --enable-static --enable-gui --enable-x11 --enable-live --with-livelibdir=/usr/local/lib/liveX86 --with-reallibdir=/usr/local/lib/codecs/
live模块的config文件修改
CROSS_COMPILE= arm-linux-
COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_STRSTREAM=1 -D_LARGEFILE_SOURCE=1
C = c
C_COMPILER = $(CROSS_COMPILE)gcc
C_FLAGS = $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(CROSS_COMPILE)gcc
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1
OBJ = o
LINK = $(CROSS_COMPILE)gcc -o
LINK_OPTS = -L.
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(CROSS_COMPILE)ld -o
LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17503/showart_119398.html |
|