用 mpv 播放网页视频。在终端输入:
mpv www...(网址)
可以正常播放,但是有以下警告:
Option icc-cache was removed: see icc-cache-dir
Error parsing option icc-cache (option not found)
Option vo: Error while parsing opengl-hq parameter icc-cache (~/.config/mpv/tmp/icc-cache)
看起来是语法解析问题,但是我的配置文件中并没有写 icc-cache 这个选项(手册里并没有这个选项,只有指定 icc-profile 的选项,通过缓存来加速播放)。于是我大概无法启用 icc 这个功能……怎样消除这个问题?
我的 mpv.conf 如下:
# Video
vo=opengl-hq:interpolation:icc-profile-auto
video-sync=display-resample
hwdec=auto
display-fps=60
# force starting with centered window
geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
autofit-smaller=30%x30%
# Volume
volume=100
af=drc
# OSD
osd-bar-h=2.8
osd-border-size=2
osd-color='#CCFFFFFF'
osd-border-color='#99000000'
osd-duration=2000
osd-font='STZhongsong'
osd-font-size=28
# Screenshots file name
screenshot-template=~/Desktop/mpv-screenshot-%n
# Save the current playback position on quit and resume on next run.
save-position-on-quit
# load config file from file directory, useful for overriding ass styles for entire series
use-filedir-conf=yes
# Subtitles
sub-auto=fuzzy
sub-text-font-size=32
sub-text-font='STZhongsong'
# Languages
alang=en,eng,zh,cmn,chi,zho
slang=cmn,chi,zho,zh,eng,en
# Change subtitle encoding.
# For Arabic subtitles use 'cp1256'.
# For Chinese subtitles use 'gb2312'.
# For Western Europe(including German) subtitles use 'iso8859'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:gb2312
mpv www...(网址)
可以正常播放,但是有以下警告:
Option icc-cache was removed: see icc-cache-dir
Error parsing option icc-cache (option not found)
Option vo: Error while parsing opengl-hq parameter icc-cache (~/.config/mpv/tmp/icc-cache)
看起来是语法解析问题,但是我的配置文件中并没有写 icc-cache 这个选项(手册里并没有这个选项,只有指定 icc-profile 的选项,通过缓存来加速播放)。于是我大概无法启用 icc 这个功能……怎样消除这个问题?
我的 mpv.conf 如下:
# Video
vo=opengl-hq:interpolation:icc-profile-auto
video-sync=display-resample
hwdec=auto
display-fps=60
# force starting with centered window
geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
autofit-smaller=30%x30%
# Volume
volume=100
af=drc
# OSD
osd-bar-h=2.8
osd-border-size=2
osd-color='#CCFFFFFF'
osd-border-color='#99000000'
osd-duration=2000
osd-font='STZhongsong'
osd-font-size=28
# Screenshots file name
screenshot-template=~/Desktop/mpv-screenshot-%n
# Save the current playback position on quit and resume on next run.
save-position-on-quit
# load config file from file directory, useful for overriding ass styles for entire series
use-filedir-conf=yes
# Subtitles
sub-auto=fuzzy
sub-text-font-size=32
sub-text-font='STZhongsong'
# Languages
alang=en,eng,zh,cmn,chi,zho
slang=cmn,chi,zho,zh,eng,en
# Change subtitle encoding.
# For Arabic subtitles use 'cp1256'.
# For Chinese subtitles use 'gb2312'.
# For Western Europe(including German) subtitles use 'iso8859'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:gb2312