---
type: snippet
id: 3y8oc2ShoNLSpS9R
title: Merge Video and Audio with FFmpeg
url: >
  https://www.jakubpelak.com/snippets/merge-video-and-audio-with-ffmpeg
section: snippets
tags:
  - Video
  - FFmpeg
  - Audio
  - CLI
published_at: 2025-03-13
---

# Merge Video and Audio with FFmpeg

This simple FFmpeg command merges a video file `video.mp4` and an audio file `audio.mp4` without re-encoding. It copies both streams as they are, ensuring fast processing and no quality loss.  

```sh
ffmpeg -i video.mp4 -i audio.mp4 -c:v copy -c:a copy output.mp4
```
