mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 18:44:53 +01:00
Merge branch 'main' of https://gitlab.sectorq.eu/sectorq/python
This commit is contained in:
@@ -73,9 +73,17 @@ if os.path.exists(_FULL_PATH):
|
|||||||
# print(type(parts))
|
# print(type(parts))
|
||||||
#ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4
|
#ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4
|
||||||
|
|
||||||
#os.chdir(_FULL_PATH)
|
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)
|
print(_FULL_PATH)
|
||||||
myCmd = 'ffmpeg -i concat:"' + join_s + '" ' + export_name
|
myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
|
||||||
print(myCmd)
|
print(myCmd)
|
||||||
print(os.getcwd())
|
print(os.getcwd())
|
||||||
status, output = subprocess.getstatusoutput(myCmd)
|
status, output = subprocess.getstatusoutput(myCmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user