mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 16:19:13 +00:00
Properly insert speed preset -- produces better compression
This commit is contained in:
1 file changed
+3
-1
@@ -900,7 +900,9 @@ if __name__ == '__main__':
|
|||||||
codec_index = export_command.index("-c:v")
|
codec_index = export_command.index("-c:v")
|
||||||
export_command[codec_index+1] = "libx265"
|
export_command[codec_index+1] = "libx265"
|
||||||
export_command.insert(codec_index+2, "-x265-params")
|
export_command.insert(codec_index+2, "-x265-params")
|
||||||
export_command.insert(codec_index+3, "lossless=1:preset=veryslow")
|
export_command.insert(codec_index+3, "lossless=1")
|
||||||
|
export_command.insert(codec_index+2, "-preset")
|
||||||
|
export_command.insert(codec_index+3, "veryslow")
|
||||||
print " ".join(export_command)
|
print " ".join(export_command)
|
||||||
with open(os.devnull) as null:
|
with open(os.devnull) as null:
|
||||||
subprocess.call(export_command,stdout=null,stderr=null)
|
subprocess.call(export_command,stdout=null,stderr=null)
|
||||||
|
|||||||
Reference in new issue
Block a user
