LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1634|回复: 5

如何让mplayer持续播放???

[复制链接]
发表于 2008-3-13 23:41:58 | 显示全部楼层 |阅读模式
使用一下命令
mplayer -cache 8192 mms://61.139.37.135/starmovies
播放,当缓存达到100%后就可以播放了。但经历一段时间的持续播放后就断断续续了以至于无法忍受而关掉mplayer。
请问有什么参数(方法)可以使mplayer一直持续播放???
谢谢!!
发表于 2008-3-14 01:41:03 | 显示全部楼层
看了一下,加上cache之后放得还可以,以下mplayer的选项,除了增大缓存之外好像没什么别的选项了。
-cache <kBytes>
              This  option  specifies  how much memory (in kBytes) to use when precaching a file or URL.  Especially useful on
              slow media.

       -nocache
              Turns off caching.

       -cache-min <percentage>
              Playback will start when the cache has been filled up to <percentage> of the total.

       -cache-seek-min <percentage>
              If a seek is to be made to a position within <percentage> of the cache size from the current  position,  MPlayer
              will wait for the cache to be filled to this position rather than performing a stream seek (default: 50).
回复 支持 反对

使用道具 举报

发表于 2008-3-14 14:42:33 | 显示全部楼层
mplayer a.mp3 && mplayer b.mp3不知道行不行?
回复 支持 反对

使用道具 举报

发表于 2008-3-14 20:13:26 | 显示全部楼层
Post by jsw7001;1826510
mplayer a.mp3 && mplayer b.mp3不知道行不行?

直接mplayer a.mp3  b.mp3 c.mp3 d.mp3 .............就行
回复 支持 反对

使用道具 举报

发表于 2008-3-14 22:13:36 | 显示全部楼层
哟,mplayer还支持mms协议,强!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-17 12:59:42 | 显示全部楼层
Post by tiglos;1826368
看了一下,加上cache之后放得还可以,以下mplayer的选项,除了增大缓存之外好像没什么别的选项了。
-cache <kBytes>
              This  option  specifies  how much memory (in kBytes) to use when precaching a file or URL.  Especially useful on
              slow media.

       -nocache
              Turns off caching.

       -cache-min <percentage>
              Playback will start when the cache has been filled up to <percentage> of the total.

       -cache-seek-min <percentage>
              If a seek is to be made to a position within <percentage> of the cache size from the current  position,  MPlayer
              will wait for the cache to be filled to this position rather than performing a stream seek (default: 50).


若只用-cache 参数,好像缓存只要达到20%就开始播放了,不知道为什么?
不过可以用-cache-min设置你想要的百分比。
再加上-cache-seek-min好像也不能解决我原来提出的问题,想连续看电视还是要看网络。
另外还有这两个参数:-dumpstream -dumpfile /path/filename
可以将电视节目保存下来。
像mplayer -cache 8192 -cache-min 50 -dumpstream -dumpfile 群英会 mms://live.cctv.com/live16

返回信息:
mmst packet_length = 1444
缓存大小设为 8192 K字节
Stream not seekable!
此时不知道为什么不能打开mplayer观看电视,不过文件倒是在存储中。

打开另一终端,也可以用mplayer观看那个保存中的文件。只可惜保存下来的视频的质量还是受到网络质量的影响。不知道怎么解决???
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表