[FFmpeg-user] Lossless concatenation of 2 MP4 files with video and multiple audio streams plus subtitles and chapter markers

Vincent Deconinck vdeconinck at gmail.com
Sat Jul 13 11:08:17 EEST 2024


On Sat, Jul 13, 2024 at 4:26 AM Rick Keniuk <daddyo323 at gmail.com> wrote:

> I have tried the following simple concatenation command which worked
> perfectly only it outputs just the video and the first audio stream.
> ffmpeg -f concat -i videos.txt -c copy output.mp4
>

Hi Rick,

By default only the first audio stream is output.
Selection of streams can be done with the -map option, and -map 0 is a
shortcut for "map all" - see https://trac.ffmpeg.org/wiki/Map
Can you try the following :

ffmpeg -f concat -i videos.txt -c copy -map 0 output.mp4

Don't know about chapter markers though...

KR,

Vincent


>


More information about the ffmpeg-user mailing list