just updates

This commit is contained in:
Elghinnarisa
2023-03-26 18:32:35 +02:00
parent 790fd3538e
commit c326143eb8
49 changed files with 3117 additions and 167 deletions

View File

@@ -3,7 +3,7 @@ import subprocess
import sys
from pathlib import Path
import os
output_folder_name = "/quality_test_out/"
output_folder_name = "/quality_test_originals/"
droppedFile = sys.argv[1]
droppedName = Path(droppedFile).name
@@ -23,8 +23,8 @@ if not isExist:
#droppedFile = ["sam_overlord_bluraysource.mkv"]
#lines = "-map 0:v -c:v libx265 -preset slow -crf 22 -x265-params level=51:no-sao=1:bframes=8:psy-rd=1.5:psy-rdoq=5:aq-mode=3:ref=6 -pix_fmt yuv420p10le -map 0:a -c:a copy -map 0:s -c:s copy"
org_lineslines = " -map 0:v -c:v libx264 -crf 5 -map 0:a -c:a copy -map 0:s -c:s copy"
#lines = "-map 0:v -c:v libx265 -preset slow -crf 22 -x265-params level=51:no-sao=1:bframes=8:psy-rd=1.5:psy-rdoq=1.5:aq-mode=3:ref=6 -pix_fmt yuv420p10le -map 0:a -c:a copy -map 0:s -c:s copy"
org_lineslines = " -map 0:v -c:v copy -map 0:a? -c:a copy -map 0:s? -c:s copy"
number_of_segments=int(input("Number of segments: "))
@@ -54,9 +54,9 @@ for i, file in enumerate(arguments):
for i in range(0, number_of_segments):
basename = os.path.basename(file)
#args = 'ffmpeg.exe -i "{file}" -ss {time} -t {segment_length} {lines} -f matroska "{file}{i}out.mkv"'.format(time=skip*i+time, segment_length=segment_length, file=file, lines=lines, i=i)
args = 'ffmpeg.exe -i "{file}" -ss {time} -t {segment_length} {org_lineslines} -f matroska "{output_path}{output_folder_name}ORIGINAL_COMP_{i}{basename}"'.format(time=skip*i+time, segment_length=segment_length, file=file, org_lineslines=org_lineslines, output_path=output_path, output_folder_name=output_folder_name, basename=basename, i=i)
args = 'ffmpeg.exe -ss {time} -i "{file}" -t {segment_length} {org_lineslines} -f matroska "{output_path}{output_folder_name}ORIGINAL_COMP_{i}{basename}"'.format(time=skip*i+time, segment_length=segment_length, file=file, org_lineslines=org_lineslines, output_path=output_path, output_folder_name=output_folder_name, basename=basename, i=i)
print(args)
run = subprocess.Popen(args)
run = subprocess.Popen(args, creationflags=0x00004000)