---
type: collection
section: snippets
generated_at: 2026-05-19T08:20:46+02:00
total_entries: 1
tag_filter: Video
---

# Snippets

## Merge Video and Audio with FFmpeg

---
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
---

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
```

