Last active
December 5, 2020 08:17
-
-
Save tana3n/0e9396ba9e8d1815a56f1d1fb48d6b40 to your computer and use it in GitHub Desktop.
x264とか265向けのQPfileを出力するやつ
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
import os.path | |
import re | |
bookmarks = avsp.GetBookmarkList() | |
bookmarks.sort() | |
filename = avsp.GetScriptFilename(propose='general') | |
qpfile = str(re.sub(r'avs','',filename) + "qpfile") | |
with open(qpfile,"w") as f: | |
for item in bookmarks: | |
#avsp.MsgBox(str(item) + str(bookmarks)) | |
text = str(item) + " I\n" | |
#avsp.MsgBox(str(text)) | |
f.write(str(text)) | |
avsp.MsgBox(str("Finished qpfile: " + qpfile),title="Bookmarks to qpfile") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment