# FFmpeg

## Объединение двух видео в Linux

cat output.txt

```
file '/path/to/file/1.mp4' file '/path/to/file/2.mp4'
```

```
ffmpeg -f concat -safe 0 -i ./file -c copy output.mp4
```

## Удалить звук

```
ffmpeg -i example.mkv -c copy -an example-nosound.mkv
```

## Наложить звук

```
ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac -strict experimental output.mp4
```

## Выдернуть звук из видео

```
ffmpeg -i filename.mp4 filename.mp3
```

## Разрезать видео

```
ffmpeg -i Plov.mov -ss 00:12:00 -to 00:21:54 -c copy Plov2.mov
```