From cc6c7e740a2af6e91b5b5791da78d7fc444d452b Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Sep 2024 15:56:11 +0200 Subject: [PATCH 1/4] bitwarden --- handle_imported_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 531d4cc..5c2ce60 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -75,7 +75,7 @@ if os.path.exists(_FULL_PATH): #os.chdir(_FULL_PATH) print(_FULL_PATH) - myCmd = 'ffmpeg -i concat:"' + join_s + '" ' + export_name + myCmd = '/opt/ffmpeg/ffmpeg -i concat:"' + join_s + '" ' + export_name print(myCmd) print(os.getcwd()) status, output = subprocess.getstatusoutput(myCmd) From a637d58ad067aae370e946c3a2b361ee1bf1db72 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Sep 2024 16:10:43 +0200 Subject: [PATCH 2/4] bitwarden --- handle_imported_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 5c2ce60..7f252de 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -75,7 +75,7 @@ if os.path.exists(_FULL_PATH): #os.chdir(_FULL_PATH) print(_FULL_PATH) - myCmd = '/opt/ffmpeg/ffmpeg -i concat:"' + join_s + '" ' + export_name + myCmd = '/opt/ffmpeg/ffmpeg -i concat:"' + join_s + '" -vcodec copy -acodec copy ' + export_name print(myCmd) print(os.getcwd()) status, output = subprocess.getstatusoutput(myCmd) From 05630f0904dff71e5a59893921068c7ea56841b1 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Sep 2024 16:11:00 +0200 Subject: [PATCH 3/4] bitwarden --- handle_imported_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 7f252de..d68f32b 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -73,7 +73,7 @@ if os.path.exists(_FULL_PATH): # print(type(parts)) #ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4 - #os.chdir(_FULL_PATH) + os.chdir(_FULL_PATH) print(_FULL_PATH) myCmd = '/opt/ffmpeg/ffmpeg -i concat:"' + join_s + '" -vcodec copy -acodec copy ' + export_name print(myCmd) From 96c1a43d7b39b0f97a31cd20c45ffdd8a6df5327 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Sep 2024 16:33:31 +0200 Subject: [PATCH 4/4] bitwarden --- handle_imported_video.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index d68f32b..a87ccb6 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -74,8 +74,16 @@ if os.path.exists(_FULL_PATH): #ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4 os.chdir(_FULL_PATH) + f = open("video.txt", "w") + f.write("# Files to join") + f.close() + f = open("video.txt", "a") + for p in parts: + f.write(f"file '{p}'") + + f.close() print(_FULL_PATH) - myCmd = '/opt/ffmpeg/ffmpeg -i concat:"' + join_s + '" -vcodec copy -acodec copy ' + export_name + 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)