惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - Franky
F
Fortinet All Blogs
D
Docker
博客园 - 司徒正美
腾讯CDC
Recent Announcements
Recent Announcements
The Cloudflare Blog
B
Blog RSS Feed
GbyAI
GbyAI
T
Tailwind CSS Blog
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志

博客园 - 步青云

comfyui一次成功的抽卡 在 MySQL 5.7 中实现每月手动创建分区 tp5设置log文件输出 微信小程序连接websocket随记 命令提示符 在win64上使用bypy进行百度网盘文件上传 phpqrcode生成任意尺寸的二维码 Visual Studio 2017 安装心得 用火车头采集器8.6免费版采集图片 为了android sdk下载,必须修改hosts win2003服务器网站和数据库的二周自动备份 ultraedit去空行 用Navicat for MySQL进行数据库的导入导出 尝试jquery插件的开发 移动硬盘数据惊魂恢复记 用C#的控制台程序监控apache网站是否正常 织梦内容管理系统 4_0_1 的rand()优化 FlashDevelop的第一个程序 Linux下第一个C程序 用SciTE调试C++程序遇到的小问题
RHEL6下编译Mplayer
步青云 · 2011-06-23 · via 博客园 - 步青云

在Red Hat Enterprise Linux 6下编译Mplayer过程很忐忑,特记录一下:

首先

# wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
# tar -zxvf MPlayer-1.0rc4.tar.bz2
# ./configure
# make

出现错误:

libmpcodecs/vd_mpng.c: In function 'pngReadFN':
libmpcodecs/vd_mpng.c:77: error: dereferencing pointer to incomplete type
libmpcodecs/vd_mpng.c: In function 'decode':
libmpcodecs/vd_mpng.c:114: error: dereferencing pointer to incomplete type
libmpcodecs/vd_mpng.c:131: error: dereferencing pointer to incomplete type
make: *** [libmpcodecs/vd_mpng.o] 错误 1

搜索半天,终于在谷歌上得到解惑,百度有点不给力:

Bug 354965 – media-video-mplayer fails to compile against media-libs-libpng-1_5_x

竟然是一BUG,没办法,只能用最新版的了。

# svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
# ./configure

又有错误提示
No FFmpeg checkout, press enter to download one with git or CTRL+C to abort
解决方案:
You may need to install git client  and press enter  during the above warning time

直接回车,自动安装git获取FFmpeg

# ./configure 没办法,再来一次configure

错误

Error: yasm not found, use --yasm='' if you really want to compile without

说明YASM没有找到

# git clone git://github.com/yasm/yasm.git

# wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz

安装 yasm 后重新进入mplayer下

# make -j 2

我的机器是E5300双核


# make install

成功

# svn update
# ldconfig
# mplayer --help

完毕!

# mencoder -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=500 -lavfopts format=flv -srate 22050 -oac mp3lame -lavcopts acodec=mp3:abitrate=56  PrettyGirlWillGotMarried.mpg -o  PrettyGirlWillGotMarried.flv -ofps 16

错误
MPlayer was compiled without libmp3lame support.

呵呵,压缩率50%