Commit ec7818be authored by Жуков Алексей Андреевич's avatar Жуков Алексей Андреевич
Browse files

Update KG.py

parent 224aaaf4
1 merge request!3Update KG.py
Showing with 1 addition and 1 deletion
+1 -1
...@@ -23,7 +23,7 @@ if((time_1) > (time_2)): ...@@ -23,7 +23,7 @@ if((time_1) > (time_2)):
os.remove('input2nosound.mp4') os.remove('input2nosound.mp4')
os.remove('input2withsound.mp4') os.remove('input2withsound.mp4')
else: else:
os.system('ffmpeg -i input2.mp4 -c:v copy -ss 00:00:00 -t ' + str(time_1) +' input2short.mp4') os.system('ffmpeg -ss 00:00:00 -i input2.mp4 -c copy -t ' + str(time_1) +' input2short.mp4')
os.system('ffmpeg -i input2short.mp4 -c copy -an input2nosound.mp4') os.system('ffmpeg -i input2short.mp4 -c copy -an input2nosound.mp4')
os.system('ffmpeg -i input2nosound.mp4 -i sound1.mp3 -c copy input2withsound.mp4') os.system('ffmpeg -i input2nosound.mp4 -i sound1.mp3 -c copy input2withsound.mp4')
os.system('ffmpeg -i input2withsound.mp4 -c:v libx265 -b:v 12M -minrate 12M -maxrate 12M -bufsize 12M -r 48 -aspect 16:9 -ar 96000 output1.mp4') os.system('ffmpeg -i input2withsound.mp4 -c:v libx265 -b:v 12M -minrate 12M -maxrate 12M -bufsize 12M -r 48 -aspect 16:9 -ar 96000 output1.mp4')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment