Skip to content

Commit

Permalink
更新 unofficial
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed Nov 1, 2023
1 parent 147d6e8 commit 3a352a9
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 95 deletions.
9 changes: 5 additions & 4 deletions unofficial/mpv_filters.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 音视频滤镜

_ver.20230212_
_ver.20231101_

##

Expand Down Expand Up @@ -29,7 +29,6 @@ _滤镜 也常被翻译作 过滤器_
| pre | 追加单个或多个滤镜(在前方) |
| clr | 移除所有滤镜 |
| remove | 移除指定的滤镜 |
| del | 移除单个或多个滤镜 |
| toggle | 追加指定的滤镜(在后方),但如果已经存在则移除该滤镜 |
| help | 仅支持在终端使用,用于输出该滤镜的更多信息 |

Expand Down Expand Up @@ -79,8 +78,7 @@ d vf add vflip,hflip
f vf pre vflip,hflip
g vf clr ""
h vf remove vflip
j vf del vflip,hflip
k vf toggle vflip
j vf toggle vflip
```

🔺 根据input语法中的“操作属性”的用法, `vf set vflip,hflip` 亦等效 `set vf vflip,hflip`
Expand Down Expand Up @@ -147,6 +145,9 @@ _我推荐尽可能把子参数名写上,如果不写子参数名,mpv会尝

🔺 原生与非原生滤镜中可能存在重名的条目,例如通常当使用 `vf=format=...` 时首选mpv滤镜,最简的解决方案是显式指定为ffmpeg滤镜,即 `--vf=lavfi-format=...`

🔺 性能提速小技巧:
当只使用多个非原生滤镜时,建议合并进一个filtergraph处理,示例 优先用 `vf="lavfi=[vflip,hflip]"` 而不是 `vf=vflip,hflip`

#### 2.2.1.字符串处理

非原生滤镜中的很多滤镜支持引入外部文件参与处理,例如 `lut3d` [文档](https://ffmpeg.org/ffmpeg-filters.html#lut3d-1)
Expand Down
32 changes: 13 additions & 19 deletions unofficial/mpv_profiles.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 配置预设

_ver.20230212_
_ver.20231101_

##

Expand All @@ -19,7 +19,7 @@ _ver.20230212_

vo=gpu
hwdec=yes
profile=gpu-hq
profile=high-quality
deband=no
keep-open=yes
profile=srt_style
Expand Down Expand Up @@ -47,16 +47,12 @@ ontop=yes
`[xxxxx]` 是一个profile的头部标志,两个profile之间 —— 即 `[srt_style]``[playing_ontop]` 所有中间行的参数都属于 `[srt_style]`
一旦你在 mpv.conf 自己建立了profile,就不要把常驻参数(即启动时就应用的项)写在profile的后方,因为profile没有明确的结束标志,在上方示例中,任何写在最后的参数都会被mpv认定为属于 `[playing_ontop]`

`gpu-hq` 是mpv内建(自带)的一个profile,它具体包含以下参数:
`high-quality` 是mpv内建(自带)的一个profile(旧版mpv中是 `gpu-hq`,它具体包含以下参数:
```ini
scale = spline36
cscale = spline36
dscale = mitchell
dither-depth = auto
correct-downscaling = yes
linear-downscaling = yes
sigmoid-upscaling = yes
deband = yes
scale = ewa_lanczossharp
hdr-peak-percentile = 99.995
hdr-contrast-recovery = 0.30
deband=yes
```

P.S. mpv还有其它内建profile,详见 [《profiles_补充内容》](https://github.com/hooke007/MPV_lazy/discussions/42)
Expand All @@ -66,22 +62,20 @@ P.S. mpv还有其它内建profile,详见 [《profiles_补充内容》](https:/
### 常驻参数
vo=gpu
hwdec=yes
scale=spline36
cscale=spline36
dscale=mitchell
dither-depth=auto
correct-downscaling=yes
linear-downscaling=yes
sigmoid-upscaling=yes

scale = ewa_lanczossharp
hdr-peak-percentile = 99.995
hdr-contrast-recovery = 0.30
deband=yes

deband=no
keep-open=yes
sub-scale-with-window=no
sub-font-size=58
sub-border-size=4
```

P.S. 在此示例中,把 `deband=no` 放在 `profile=gpu-hq` 之后,也是因为目的是要禁用去色带,否则如果顺序相反只会产生相反的结果。
P.S. 在此示例中,把 `deband=no` 放在 `profile=high-qualit` 之后,也是因为目的是要禁用去色带,否则如果顺序相反只会产生相反的结果。

## 2.分类

Expand Down

0 comments on commit 3a352a9

Please sign in to comment.