免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1119 | 回复: 6
打印 上一主题 下一主题

[服务应用] redhat6.6 安装mplayer播放视频的问题,求助,谢谢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-08-29 08:48 |只看该作者 |倒序浏览
问题描述:根据网上的相关资料在redhat6.6上安装了mplayer,分别试了2个mp4视频文件,分辨率低(480x360)的视频文件可以正常运行,分辨率高(1280x720)的视频文件爆卡,播放不了,服务器redhalt本身自带的电影播放机可以正常播放高分辨率视频文件。

mplayer安装配置:
mplayer源文件包:MPlayer-1.0rc4.tar.gz
解码包:all-20110131.tar.bz2
皮肤:iTunes-1.1.tar.bz2

mplayer安装命令./configure --codecsdir=/usr/local/lib/codecs --enable-gui --enable-largefiles --enable-menu --enable-freetype
make&&make install

编译成功,在/usr/local/bin/目录下运行:mplayer 视频文件,

mplayer播放低分辨率视频文件信息:

libavformat file format detected.
[lavf] stream 0: audio (aac), -aid 0, -alang und
[lavf] stream 1: video (h264), -vid 0
VIDEO:  [H264]  480x360  24bpp  30.000 fps  464.3 kbps (56.7 kbyte/s)
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf56.40.101
Xlib:  extension "XFree86-VidModeExtension" missing on display "172.27.27.225:0.0".
libGL error: failed to load driver: swrast
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 58.8 kbit/4.17% (ratio: 7352->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xe26900]using unscaled yuv420p -> bgra special converter
VO: [gl_nosw] 480x360 => 480x360 BGRA
X11 error: GLXUnsupportedPrivateRequest
A:   3.7 V:   1.7 A-V:  1.939 ct:  0.036   0/  0 13% 179%  0.7% 50 0

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:   5.9 V:   2.9 A-V:  2.953 ct:  0.033   0/  0 10% 171%  0.6% 86 0



高分辨率文件输出信息:
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c7a190]max_analyze_duration reached
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO:  [H264]  1280x720  24bpp  30.000 fps  157.6 kbps (19.2 kbyte/s)
Clip info:
major_brand: mp42
minor_version: 1
compatible_brands: isommp41avc1
Xlib:  extension "XFree86-VidModeExtension" missing on display "172.27.27.225:0.0".
libGL error: failed to load driver: swrast
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 125.3 kbit/8.88% (ratio: 15658->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xe26900]using unscaled yuv420p -> bgra special converter
VO: [gl_nosw] 1280x720 => 1280x720 BGRA
X11 error: GLXUnsupportedPrivateRequest
[AO_ALSA] Write error: Broken pipe 0.000   0/  0 ??% ??% ??,?% 0 0
[AO_ALSA] Trying to reset soundcard.
[AO_ALSA] Write error: Broken pipe 0.002   0/  0 ??% ??% ??,?% 1 0
[AO_ALSA] Trying to reset soundcard.
A:  14.4 V:   1.5 A-V: 12.935 ct:  0.024   0/  0 62% 945%  3.6% 45 0


高分辨率截取了一部分,也提示Your system is too SLOW to play this!,

请求大神帮忙看下,不胜感谢!
更多

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
2 [报告]
发表于 2016-08-29 09:54 |只看该作者
Your system is too SLOW to play this!


不对哦,感觉mplayer性能还是不错的,比vlc好多了

论坛徽章:
0
3 [报告]
发表于 2016-08-29 11:22 |只看该作者
action08 发表于 2016-08-29 09:54
Your system is too SLOW to play this!

6.6系统自带的电影播放机 安装了264解码器后,能播放1080p的视频,这样应该就不是硬件问题,
是不是mplayer的解码器有问题,这些解码器文件都是在官方的网站和源码一起下载的。。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2016-08-29 13:29 |只看该作者
RHEL还是服务器应用为主,楼主娱乐应用还是用Fedora系统吧

论坛徽章:
17
巨蟹座
日期:2014-11-20 23:04:5215-16赛季CBA联赛之北控
日期:2018-08-01 16:08:4015-16赛季CBA联赛之浙江
日期:2017-12-08 11:25:2415-16赛季CBA联赛之四川
日期:2016-11-21 00:16:50操作系统版块每日发帖之星
日期:2016-07-28 06:20:0015-16赛季CBA联赛之吉林
日期:2016-05-25 15:36:04操作系统版块每日发帖之星
日期:2016-02-12 06:20:002015亚冠之西悉尼流浪者
日期:2015-08-28 14:48:322015亚冠之平阳省
日期:2015-08-19 14:54:162015亚冠之武里南联
日期:2015-07-07 10:49:112015亚冠之城南
日期:2015-06-22 10:15:002015亚冠之山东鲁能
日期:2015-06-18 18:03:44
5 [报告]
发表于 2016-08-29 13:50 |只看该作者
mplayer还是推荐源安装吧,自己编译比较费劲,系统选择也不好

论坛徽章:
0
6 [报告]
发表于 2016-08-30 09:43 |只看该作者
chenyx 发表于 2016-08-29 13:29
RHEL还是服务器应用为主,楼主娱乐应用还是用Fedora系统吧

主要是用Qt自带的phonon类写的小程序,看了些帖子说是用mplayer后端来播放,结果编译了好多 都是不能用,低分辨率的能正常播放,分辨率高的播放就卡主。。服务器机器自带的电影播放机能正常播放。。。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2016-08-31 08:15 |只看该作者
那你比较下两个播放器的解码插件吧,找找看mplayer有没有对应的解码器
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP