ahmedghani commited on
Commit
c1945ab
Β·
1 Parent(s): 066843c
Files changed (1) hide show
  1. 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.codec)
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