Spaces:
Build error
Build error
ahmedghani
commited on
Commit
Β·
c1945ab
1
Parent(s):
066843c
bug fix
Browse files- video_convertor.py +1 -1
video_convertor.py
CHANGED
@@ -41,7 +41,7 @@ class VideoConverter:
|
|
41 |
raise Exception("No audio stream found in the input file")
|
42 |
|
43 |
try:
|
44 |
-
audio_segment = AudioSegment.from_file(self.input_file, self.audio.
|
45 |
audio_segment.export(output_file, format=format.lower())
|
46 |
print(f"Audio converted to {format} format successfully!")
|
47 |
return output_file
|
|
|
41 |
raise Exception("No audio stream found in the input file")
|
42 |
|
43 |
try:
|
44 |
+
audio_segment = AudioSegment.from_file(self.input_file, format=self.audio.extension)
|
45 |
audio_segment.export(output_file, format=format.lower())
|
46 |
print(f"Audio converted to {format} format successfully!")
|
47 |
return output_file
|