-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
附带修正 nlmeans
- Loading branch information
Showing
3 changed files
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
### 伪25或30帧的源转24帧 | ||
|
||
import vapoursynth as vs | ||
from vapoursynth import core | ||
|
||
input = video_in | ||
fps_in = container_fps | ||
|
||
############ | ||
# 用户选项 # | ||
############ | ||
|
||
Ivtc_core = 1 | ||
## <1|2> ivtc模式 | ||
|
||
if fps_in < 24.5 or fps_in > 32 : | ||
raise Exception("非限定源,已临时禁用该脚本。") | ||
|
||
if Ivtc_core == 1 : | ||
if fps_in > 24 and fps_in < 26 : | ||
output = core.vivtc.VDecimate(clip=input, cycle=25) | ||
elif fps_in > 29 and fps_in < 31 : | ||
output = core.vivtc.VDecimate(clip=input, cycle=5) | ||
elif Ivtc_core == 2 : | ||
cut0 = core.std.AssumeFPS(clip=input, fpsnum=fps_in * 1000, fpsden=1000) | ||
cut1 = core.tivtc.TDecimate(clip=cut0, mode=7, rate=24 / 1.001) | ||
output = core.std.AssumeFPS(clip=cut1, fpsnum=24000, fpsden=1001) | ||
|
||
output.set_output() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters