Fix skipping encode on resume
This commit is contained in:
@@ -24,7 +24,7 @@ def _encode_video(
|
|||||||
print(f"Encoding {preset['h']}p AV1")
|
print(f"Encoding {preset['h']}p AV1")
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"ffmpeg",
|
"ffmpeg", "-v", "quiet", "-stats",
|
||||||
"-i", preset['input_video'],
|
"-i", preset['input_video'],
|
||||||
"-i", source_video,
|
"-i", source_video,
|
||||||
"-map", "0:v:0", # Video from upscale or interpolated file
|
"-map", "0:v:0", # Video from upscale or interpolated file
|
||||||
@@ -77,7 +77,7 @@ def encode_downloads(
|
|||||||
|
|
||||||
if os.path.exists(mux_out):
|
if os.path.exists(mux_out):
|
||||||
print(f'Skipped {preset['h']}p AV1 Encode')
|
print(f'Skipped {preset['h']}p AV1 Encode')
|
||||||
return
|
continue
|
||||||
|
|
||||||
_encode_video(preset, source_video, tmp_out, hentai_title, input_aspect)
|
_encode_video(preset, source_video, tmp_out, hentai_title, input_aspect)
|
||||||
_remux_video(tmp_out, mux_out)
|
_remux_video(tmp_out, mux_out)
|
||||||
|
|||||||
Reference in New Issue
Block a user