diff --git a/handle_imported_video.py b/handle_imported_video.py index e63e5e8..e2795a2 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -153,25 +153,25 @@ if _ACTION == "join": if _FLIP: if ops == "win": myCmd = [ - "ffmpeg", "-display_rotation", "180", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name + "ffmpeg", "-display_rotation", "180", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name, "/dev/null" ] else: myCmd = [ - "/opt/ffmpeg/ffmpeg", "-display_rotation", "180", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name + "/opt/ffmpeg/ffmpeg", "-display_rotation", "180", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name, "/dev/null" ] else: if ops == "win": myCmd = [ - "ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name + "ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name, "/dev/null" ] else: myCmd = [ - "/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name + "/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name, "/dev/null" ] print(myCmd) print(f"Joining {len(parts)} files...") - subprocess.Popen(myCmd) + proc = subprocess.Popen(myCmd) # with tqdm(total=100, position=1, desc="Convert") as pbar: # for progress in ff.run_command_with_progress(): # pbar.update(progress - pbar.n)