SplayerX 和 VLC CPU 占用差别真大

2017-02-23 10:14:27 +08:00
 shadownet
同样的文件 SplayerX 60% 而 VLC 只有 10% 找了半天也没看到 SPlayerX 有 GPU 加速选项 准备放弃
6827 次点击
所在节点    MacBook Pro
32 条回复
zpole
2017-02-23 20:55:36 +08:00
@shadownet #19 去掉#19 ,不知道为什么会有,貌似是指回复了 19 层?
shadownet
2017-02-23 21:18:27 +08:00
@zpole 貌似需要规范文件名??对 ASS 支持的也不好
xuhaoyangx
2017-02-23 21:43:47 +08:00
@shadownet #22
给你参考
# Video
# Defaults for all profiles
profile=opengl-hq
tscale=linear
hwdec=videotoolbox


[high-quality]
profile-desc=cond:is_desktop() and get('width', math.huge) < 3840
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes

[mid-quality]
profile-desc=cond:(is_laptop() and not on_battery() and get('width', math.huge) < 1920) or (is_desktop() and get('width', math.huge) >= 3840)
scale=spline36
cscale=bilinear
dscale=mitchell
scale-antiring=1.0
cscale-antiring=1.0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes

[low-quality]
profile-desc=cond:is_laptop() and (on_battery() or get('width', math.huge) >= 1920)
scale=bilinear
cscale=bilinear
dscale=bilinear
scale-antiring=0.0
cscale-antiring=0.0
dither-depth=no
correct-downscaling=no
sigmoid-upscaling=no
deband=no

[60FPS]
profile-desc=cond:is_laptop() and get('container-fps', 0) >= 59
scale=bilinear
cscale=bilinear

[4K]
profile-desc=cond:get('width', -math.huge) >= 3840
vd-lavc-threads=32

[4K-inverted]
profile-desc=cond:get('width', -math.huge) < 3840
vd-lavc-threads=0


[default]

# 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%

# OS X only. Black out other displays when going fullscreen
#fs-black-out-screens

# Volume
audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload
audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
volume-max=200 # maximum volume in %, everything above 100 results in amplification
volume=100 # default volume, 100 = unchanged

# OSD
osd-bar-h=2.8
osd-border-size=2
osd-color='#CCFFFFFF'
osd-border-color='#99000000'
osd-duration=2000
osd-font='PingFangSC-Regular'
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-font-size=42
sub-font='PingFangSC-Regular'

# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
cache-default=71680
#
# Use 8MB input cache for everything, even local files.
cache=71680
#
# If a seek is issued, and the target is 1024KB past the cached range, then
# keep reading until the seek target is hit, instead of doing a real seek.
cache-seek-min=1024
#
# Read ahead about 5 seconds of audio and video packets.
demuxer-readahead-secs=5.0

# Languages
alang=en,eng,zh,cmn,chi,zho
slang=cmn,chi,zho,zh,eng,en

# Change subtitle encoding. For Chinese subtitles use 'gb2312'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:gb2312
zpole
2017-02-23 21:59:48 +08:00
@shadownet #22 文件名虽然有模糊匹配但还是需要规范一下。对 ass 的支持不错啊。对了你把 slang 改成楼下提供的 slang=cmn,chi,zho,zh,eng,en 吧,之前忘了我是默认繁体优先了。。。
IgniteWhite
2017-02-23 22:08:30 +08:00
@shadownet 文件名规范是小事;另外 ass 支持很好啊。
MinonHeart
2017-02-23 22:40:01 +08:00
抱紧显卡.jpg
shadownet
2017-02-24 00:26:33 +08:00
@xuhaoyangx 多谢!

再问一个问题,我用 ctrl+left 并不能切换字幕,比如我有 3 个字幕文件,想切换下,貌似切换不了
mxalbert1996
2017-02-24 00:34:18 +08:00
@shadownet mpv 切换字幕的快捷键是 v
IgniteWhite
2017-02-24 01:59:50 +08:00
@mxalbert1996
@shadownet
是 j 。 v 是开关字幕的, j 才是切换字幕的。见这里: https://mpv.io/manual/master/#keyboard-control
ynyounuo
2017-02-24 02:25:50 +08:00
@xuhaoyangx
不要随便贴别人的配置,这个 auto-profile 配置需要额外的 lua 脚本才可以

楼主要的是低占用,使用 ewa_lanczossharp 要想 20% 以内在 rMBP 几乎不可能。
ynyounuo
2017-02-24 02:36:45 +08:00
@shadownet
快捷键用 input.conf 可以自定义,我觉得你如果不想自己研究配置的话就用 iina 吧( iina 也可以使用 mpv 配置但是部分配置并不管用)。 mpv 如果会 lua 配合 ffmpeg 可以玩出无限多的花样来。比如可以找出视频里的相似帧然后切出一段无缝循环的视频 loop 再制作成 10 帧的 gif ,然而 iina 目前不支持 tty 运行所以并不能直接调用 ffmpeg 来进行一些操作。
kiro
2017-02-24 12:26:58 +08:00
@clavichord93 vlc 的字幕只是自己麻烦一下而已。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/342523

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX