Mplayer 移植到tiny6410开发板
来源:互联网 发布:js qq分享回调地址 编辑:程序博客网 时间:2024/05/20 01:47
交叉编译器:arm-linux-gcc-4.5.1
解压MPlayer-1.0rc2.tar.bz2:
tar –xjvf MPlayer-1.0rc2.tar.bz2
进入解压文件 MPlayer-1.0rc2
进行configure配置
./configure --host-cc=gcc --cc=arm-linux-gcc --target=arm-linux --enable-static --disable-win32dll --disable-dvdread --disable-dvdread-internal --disable-dvdnav --disable-libdvdcss-internal --enable-fbdev --disable-mencoder --disable-live --disable-mp3lib --enable-mad --enable-libavcodec_a --disable-live--disable-ivtv --prefix=/usr/local/mplayer
在这里需要添加--disable-ivtv不然会出现如下错误:
vo_ivtv.c:79: error: storage size of ’sd’ isn’t known
vo_ivtv.c:80: error: storage size of’sd1′ isn’t known
vo_ivtv.c:84: error: ‘IVTV_STOP_FL_HIDE_FRAME’ undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: ‘IVTV_IOC_STOP_DECODE’ undeclared (first use in this function)
vo_ivtv.c:97: error: ‘IVTV_IOC_START_DECODE’ undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable’sd1′
vo_ivtv.c:79: warning: unused variable ’sd’
make[1]: *** [vo_ivtv.o] Error 1
注 :我把生成的mplayer安装到/usr/local/mplayer目录。
Configure配置完之后,在目录下会生成Makefile
再编译,输入如下命令
make
注:这里应该会出错,在libmpeg2/motion_comp_arm_s.S文件的最前面加上如下的内容:
#ifndef HAVE_PLD
.macro pld reg
.endm
#endif
再make时,应该不会出错了
· 安装时,输入如下命令
make install
注 :这里会提示,不能更改权限的错误,不用理它
· 手动更改一下生成的mplayer权限设置,命令如下:
chmod 755 /usr/local/mplayer/bin/mplayer
注:这里要有root权限才行
· 此时把/usr/local/mplayer/bin/目录下的mplayer拷贝到开发板文件系统的/bin目录下
· 开发板文件系统的/etc/目录下新建一个mplayer.conf文件,其内容如下:
vo=fbdev2
ao=oss
framedrop = yes
joystick = no
vf=rotate=2,scale=480:272
· 其中480:272为显示屏的尺寸,具体尺寸根据板子的显示屏大小来定。
移植好之后重启开发板系统,在终端中运行:mplayer 视频名 即可看到视频文件
- Mplayer 移植到tiny6410开发板
- Mplayer移植到开发板
- MPlayer移植到mini2440开发板
- MPlayer移植到tq2440开发板
- Mplayer移植到Arm开发板
- 移植Mplayer到OK6410开发板
- Mplayer移植到Arm开发板
- 移植Mplayer到OK6410开发板
- Mplayer 移植到UP6410 开发板
- 移植Mplayer到OK6410开发板
- 移植mplayer到itop4412开发板
- 移植u-boot-2010.09到Tiny6410开发板
- mtd-utils 移植到 ARM 开发板 Tiny6410
- 成功移植Mplayer到OK6410开发板上了
- [转帖]移植mplayer到迅为itop4412开发板
- Tiny4412开发板Mplayer 移植
- alsa移植到tiny6410
- 移植SYSZUXpinyin到tiny6410
- iphone 计算文件长度
- ORACLE的在线表格重定义
- 引用clone 浅clone 深clone 利用序列化clone 利用反射深clone
- 数据库连接池的配置
- json从数据库中获取数据
- Mplayer 移植到tiny6410开发板
- linux之getopt 函数
- ClassLoader原理
- Delphi DLL动态链接库的初始化和善后工作
- A*算法浅谈
- 提高班的假期
- mysql插入图片
- DEV调用单元说明。
- PowerDesigner创建表的约束