mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-07 05:31:17 +01:00
jellyfin/ffmpeg: added a guide to concatenate videos
This commit is contained in:
20
wiki/linux/ffmpeg.md
Normal file
20
wiki/linux/ffmpeg.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# ffmpeg
|
||||
|
||||
[ffmpeg](https://www.ffmpeg.org) is a free and open-source suite consisting of
|
||||
many audio and video tools and libraries.
|
||||
|
||||
## Concatenate multiple video files with matching audio-tracks
|
||||
|
||||
First you need to create a text file `files.txt` that includes a line for every
|
||||
video you want to concatenate in the form of:
|
||||
|
||||
```shell
|
||||
file '<path to the video>'
|
||||
```
|
||||
|
||||
Make sure the videos are in correct order.
|
||||
To concatenate these video files you can run:
|
||||
|
||||
```shell
|
||||
ffmpeg -f concat -safe 0 -i files.txt -map 0 -c copy output.mp4
|
||||
```
|
||||
Reference in New Issue
Block a user