|
|

楼主 |
发表于 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观看那个保存中的文件。只可惜保存下来的视频的质量还是受到网络质量的影响。不知道怎么解决??? |
|