Better FFmpeg icon

Better FFmpeg

Run FFmpeg media operations

Muxing & Concatenate → Combine Video + Audio

AI-generated

Summary

Combine video and audio files into a single output file.

Inputs

  • ffmpegPath — Path to FFmpeg binary (or keep as "ffmpeg" if in PATH)
  • ffprobePath — Path to FFprobe binary (or keep as "ffprobe" if in PATH)
  • videoPath (required) — Path to the video file that will be combined.
  • audioPath (required) — Path to the audio file that will be combined.
  • copyVideo — Whether to copy the original video stream without re-encoding.
  • audioCodec — Codec for the audio stream (e.g., aac, mp3).
  • shortest — Stop the output when the shortest input stream ends.
  • outputPath — The path for the output file; if empty, will use video filename with -combined.mp4.
  • overwrite — Whether to overwrite the existing output file.

Output shape

a single record indicating success or failure with output path details

Output includes success status and the final output file path.

Examples

Example 1: Combine a video with a voiceover track

Set the videoPath to 'input_video.mp4', audioPath to 'voiceover.aac', and specify outputPath as 'final_video.mp4'.

Example 2: Combine a video with background music

Set the videoPath to 'scene.mp4', audioPath to 'background.mp3', and let FFmpeg handle the codec automatically.

Discussion