moviepy.video.io.ffmpeg_tools.ffmpeg_merge_video_audio#

moviepy.video.io.ffmpeg_tools.ffmpeg_merge_video_audio(videofile, audiofile, outputfile, video_codec='copy', audio_codec='copy', logger='bar')[source]#

Merges video file and audio file into one movie file.

Parameters:
  • videofile (str) -- Path to the video file used in the merge.

  • audiofile (str) -- Path to the audio file used in the merge.

  • outputfile (str) -- Path to the output file.

  • video_codec (str, optional) -- Video codec used by FFmpeg in the merge.

  • audio_codec (str, optional) -- Audio codec used by FFmpeg in the merge.