Last active
August 29, 2015 14:21
-
-
Save yanoshi/39fc5ffb9deb141605d3 to your computer and use it in GitHub Desktop.
連番画像ファイルを動画として繋げてフレーム補完までやるスクリプト
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
# C:\target_folder 下の hoge001.jpg から hoge300.jpg を 15fps で取り込む場合 | |
ImageReader(file = "C:\target_folder\hoge%03d.jpg", start = 1, end = 300, fps = 15, info = false, pixel_type = "RGB24") | |
# 以下 http://ch.nicovideo.jp/signet/blomaga/ar365711 から拝借 | |
ConvertToYUY2() #動画の色情報がRGB等の場合は最初の#を外す | |
super=MSuper(pel=2, hpad=0, vpad=0) | |
backward_1 = MAnalyse(super, chroma=false, isb=true, blksize=8, blksizev=8, searchparam=3, plevel=0, search=3, badrange=(-24)) | |
forward_1 = MAnalyse(super, chroma=false, isb=false, blksize=8, blksizev=8, searchparam=3, plevel=0, search=3, badrange=(-24)) | |
backward_2 = MRecalculate(super, chroma=false, backward_1, blksize=8, blksizev=8, searchparam=2, search=3) | |
forward_2 = MRecalculate(super, chroma=false, forward_1, blksize=8, blksizev=8, searchparam=2, search=3) | |
# 60fpsにする | |
MBlockFps(super, backward_2, forward_2, num=60, den=1, mode=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment