Spaces:
Paused
Paused
GilangAlRusliadi commited on
Commit ·
55cd4b4
1
Parent(s): 87420ef
Thumnail
Browse files
others.py
CHANGED
|
@@ -315,16 +315,4 @@ def join_video():
|
|
| 315 |
os.system( f"ffmpeg -f concat -safe 0 -i input.txt -c:v libx264 -b:v 850k -bufsize 1000k -r 30 -b:a 160k -ar 44100 -ac 2 -c:a aac -pix_fmt yuv420p -vf scale=1280:720 {output_file}")
|
| 316 |
print(f"Video intro dan video asli berhasil digabungkan menjadi {output_file}")
|
| 317 |
|
| 318 |
-
# Dapatkan ukuran output
|
| 319 |
-
output_file_size = os.path.getsize(output_file)
|
| 320 |
-
|
| 321 |
-
# Menampilkan nama file, ukuran file, dan progress
|
| 322 |
-
print(f"Ukuran file output: {convert_size(output_file_size)}")
|
| 323 |
-
|
| 324 |
-
# Hapus file video asli dari direktori video_dir
|
| 325 |
-
os.remove(os.path.join(video_dir, video_file))
|
| 326 |
-
|
| 327 |
-
# Hapus file video intro
|
| 328 |
-
os.remove(f'{name}.mp4')
|
| 329 |
-
|
| 330 |
return output_file
|
|
|
|
| 315 |
os.system( f"ffmpeg -f concat -safe 0 -i input.txt -c:v libx264 -b:v 850k -bufsize 1000k -r 30 -b:a 160k -ar 44100 -ac 2 -c:a aac -pix_fmt yuv420p -vf scale=1280:720 {output_file}")
|
| 316 |
print(f"Video intro dan video asli berhasil digabungkan menjadi {output_file}")
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
return output_file
|