如何显示mpv-media-player的所有的默认参数

Totem,mplayer,sopcast,realplayer,bmp
回复
yubinalice
帖子: 197
注册时间: 2015-12-23 16:20
系统: ubuntu 16.04

如何显示mpv-media-player的所有的默认参数

#1

帖子 yubinalice » 2022-09-07 11:52

如题,

默认是不带cache的,

但是有的时候需要cache,于是加上 --cache

然而,这个时候应该有一套默认的参数,比如,正常人是缓存到memory里面的,一般不会用到cache-on-disk,

同时发现,--cache的时候默认是150MB的缓存,然而,实际上,现在找不到cache-size的参数了,只能找到cache-secs的参数。

然后找不到cache-on-memory的参数设定,如何设置到内存里面,默认位置貌似时内存。因为速度上面感觉很快。

然后,就是啥时候应该cache-on-disk,一般能够缓存到内存里面谁缓存到disk上面。

??

哪个高手帮忙看下。

如何知道mpv默认的参数。mpv --list-options只能查看所有的参数。不能查看默认的参数。
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 如何显示mpv-media-player的所有的默认参数

#2

帖子 funicorn » 2022-09-07 15:34

/usr/share/doc/mpv/mpv.conf.gz
头像
astolia
论坛版主
帖子: 6453
注册时间: 2008-09-18 13:11

Re: 如何显示mpv-media-player的所有的默认参数

#3

帖子 astolia » 2022-09-09 9:26

???你是不认识default?

代码: 全选

$ mpv --list-options | grep cache
 --cache                          Choices: no auto yes (default: auto)
 --cache-dir                      String (default: ) [file]
 --cache-on-disk                  Flag (default: no)
 --cache-pause                    Flag (default: yes)
 --cache-pause-below              removed [deprecated]
 --cache-pause-initial            Flag (default: no)
 --cache-pause-wait               Float (0 to any) (default: 1.000)
 --cache-secs                     Double (0 to any) (default: 3600000.000)
 --cache-unlink-files             Choices: immediate whendone no (default: immediate)
 --demuxer-cache-wait             Flag (default: no)
 --demuxer-seekable-cache         Choices: auto no yes (default: auto)
 --gpu-shader-cache-dir           String (default: ) [file]
 --icc-cache                      removed [deprecated]
 --icc-cache-dir                  String (default: ) [file]
 --no-cache-pause-below           removed [deprecated]
 --opengl-shader-cache-dir        alias [deprecated] for gpu-shader-cache-dir

$ mpv --version
mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
FFmpeg library versions:
   libavutil       57.17.100 (runtime 57.28.100)
   libavcodec      59.18.100 (runtime 59.37.100)
   libavformat     59.16.100 (runtime 59.27.100)
   libswscale      6.4.100 (runtime 6.7.100)
   libavfilter     8.24.100 (runtime 8.44.100)
   libswresample   4.3.100 (runtime 4.7.100)
FFmpeg version: 5.1.1-1ubuntu1
[code]
回复