ex: mplayer -benchmark udp://236.0.0.1:2000 (mpeg realtime stream).
mplayer -vo vdpau -vc ffh264vdpau -nocache -nosound -fs
https://trac.ffmpeg.org/wiki/StreamingGuide
−benchmark
Prints some statistics on CPU usage and dropped frames at the end of playback. Use in combination with −nosound and −vo null for benchmarking only the video codec.
NOTE: With this option MPlayer will also ignore frame duration when playing only video (you can think of that as infinite fps).
−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).
本文深入解析了MPlayer的命令行参数,重点关注-benchmark、-cache与-nocache选项的功能与使用场景。详细解释了这些参数如何影响CPU使用率、帧丢包以及缓存策略,为用户提供优化视频播放体验的技术指导。
4

被折叠的 条评论
为什么被折叠?



