Spaces:
Runtime error
Runtime error
NeuroSenko
commited on
Commit
•
80bc0d8
1
Parent(s):
596a117
remove ffmpeg dep and try to fix ffmpeg command
Browse files- app.py +1 -1
- packages.txt +0 -1
app.py
CHANGED
@@ -29,7 +29,7 @@ def audio_to_video_tab():
|
|
29 |
output = os.path.join("out_video", output_file_name)
|
30 |
|
31 |
# command = "ffmpeg -i \"{image}\" -i \"{audio}\" \"{output}\"".format(image=image, audio=audio, output=output)
|
32 |
-
command = "ffmpeg -loglevel quiet -loop 1 -i \"{
|
33 |
subprocess.call(command, shell=True)
|
34 |
|
35 |
return output
|
|
|
29 |
output = os.path.join("out_video", output_file_name)
|
30 |
|
31 |
# command = "ffmpeg -i \"{image}\" -i \"{audio}\" \"{output}\"".format(image=image, audio=audio, output=output)
|
32 |
+
command = "ffmpeg -loglevel quiet -loop 1 -i \"{audio}\" -i \"{image}\" -r 2 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest \"{output}\"".format(image=image, audio=audio, output=output)
|
33 |
subprocess.call(command, shell=True)
|
34 |
|
35 |
return output
|
packages.txt
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
ffmpeg6
|
|
|
|