Skip to content

Commit bbb925a

Browse files
authored
Create concatenate-videos.md
1 parent 7607e4b commit bbb925a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/ffmpeg/concatenate-videos.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Concatenate videos of the same format
2+
3+
Sometimes you end up with several little cuts of a longer video file
4+
and just want to concatenate those together.
5+
Easy and fast to do with the [concat demuxer](https://ffmpeg.org/ffmpeg-formats.html#concat-1).
6+
7+
List all input files in a file `mylist.txt`:
8+
```
9+
file '/path/to/file1'
10+
file '/path/to/file2'
11+
file '/path/to/file3'
12+
```
13+
14+
Then use the concat demuxer with ffmpeg:
15+
16+
```
17+
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
18+
```
19+
20+
(via [StackOverflow](https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg))

0 commit comments

Comments
 (0)