From c4acbda07f70c30a1d1e6bae9b3304032a49506d Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 24 Sep 2024 14:57:35 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index c8872fb..4924f29 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -114,9 +114,15 @@ if os.path.exists(_FULL_PATH): f.close() print(_FULL_PATH) if _FLIP: - myCmd = '/opt/ffmpeg/ffmpeg -display_rotation 180 -f concat -i video.txt -vcodec copy -acodec copy ' + export_name + if ops == "win": + myCmd = 'ffmpeg -display_rotation 180 -f concat -i video.txt -vcodec copy -acodec copy ' + export_name + else: + myCmd = '/opt/ffmpeg/ffmpeg -display_rotation 180 -f concat -i video.txt -vcodec copy -acodec copy ' + export_name else: - myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name + if ops == "win": + myCmd = 'ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name + else: + myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name print(myCmd) print(os.getcwd()) status, output = subprocess.getstatusoutput(myCmd)