[FFmpeg-user] concat mp4 text list input and wav text list input into one video/audio file?

Moritz Barsnick barsnick at gmx.net
Sat Jul 4 13:18:17 EEST 2020

Hi Ram,

On Fri, Jul 03, 2020 at 12:55:00 +0000, Ram Shaffir wrote:
> ffmpeg -y -f concat -safe 0 -i /usr/ramDisk/video_list.txt -c copy -acodec copy -movflags +faststart /usr/ramDisk/merged.mp4
> how can I concat the mp4 files with the wav files using their txt files as -i inputs to one video ‘merged.mp4’?

BY adding a second input with the audio:
$ ffmpeg -y -f concat -safe 0 -i /usr/ramDisk/video_list.txt -f concat -safe 0 -i /usr/ramDisk/audio_list.txt -map 0 -map 1 -c copy -movflags +faststart /usr/ramDisk/merged.mp4

("-map 0 -map 1" might not be needed, because each input provides
exactly only one video and one audio stream.)


More information about the ffmpeg-user mailing list