clipper skips existing files
This commit is contained in:
@@ -63,6 +63,9 @@ def getDimensions(config, clip, bitrateProfiles):
|
||||
return w, h
|
||||
|
||||
def twoPassEncode(inputFilename, clip):
|
||||
if os.path.isfile(clip['target']):
|
||||
print(f"{clip['target']} already existing! Skipping!")
|
||||
return
|
||||
# cutting
|
||||
kwArgs = {}
|
||||
if 'from' in clip:
|
||||
@@ -88,7 +91,7 @@ def twoPassEncode(inputFilename, clip):
|
||||
vcodec=config['vcodec'],
|
||||
**{
|
||||
# "an":None,
|
||||
"y": None,
|
||||
# "y": None,
|
||||
"pass": "1",
|
||||
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
||||
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
||||
@@ -127,7 +130,7 @@ def twoPassEncode(inputFilename, clip):
|
||||
clip['target'],
|
||||
vcodec=config['vcodec'],
|
||||
**{
|
||||
"y": None,
|
||||
# "y": None,
|
||||
"pass": "2",
|
||||
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
||||
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
||||
|
||||
Reference in New Issue
Block a user