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)