Skip to content

Instantly share code, notes, and snippets.

@tana3n
Last active December 5, 2020 08:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tana3n/0e9396ba9e8d1815a56f1d1fb48d6b40 to your computer and use it in GitHub Desktop.
Save tana3n/0e9396ba9e8d1815a56f1d1fb48d6b40 to your computer and use it in GitHub Desktop.
x264とか265向けのQPfileを出力するやつ
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