moviepy.video.io.ffmpeg_tools.ffmpeg_extract_audio#

moviepy.video.io.ffmpeg_tools.ffmpeg_extract_audio(inputfile, outputfile, bitrate=3000, fps=44100, logger='bar')[source]#

Extract the sound from a video file and save it in outputfile.

Parameters:
  • inputfile (str) – The path to the file from which the audio will be extracted.

  • outputfile (str) – The path to the file to which the audio will be stored.

  • bitrate (int, optional) – Bitrate for the new audio file.

  • fps (int, optional) – Frame rate for the new audio file.