I have two
How do I merge these two files using a command-line or GUI?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
There's a dedicated tool to do this,
avimerge -o cd.avi -i cd1.avi cd2.avi
If not installed, install transcode: Avimerge is part of transcode package: https://manpages.debian.org/jessie/transcode/avimerge.1.en.html http://manpages.ubuntu.com/manpages/bionic/man1/avimerge.1.html
Easy with mencoder (shipped with mplayer in Arch Linux):
$ mencoder -oac copy -ovc copy video1.avi video2.avi -o final.avi
Avidemux can paste two videos together, at least if they have the same resolution and a few other constraints. Use “Append” from the “File” menu.
You can merge avi files with
avimerge from Transcode package:
avimerge -i file1.avi file2.avi -o output.avi
I know that it isn't GUI tool, but to have GUI you could use that script:
#!/bin/bash file1=`kdialog --getopenfilename ~/ \*.avi` file2=`kdialog --getopenfilename ~/ \*.avi` output=`kdialog --getsavefilename ~/ \*.avi` avimerge -i $file1 $file2 -o $output
kdialog so it's for KDE users, GNOME users should modify it to use Zenity...
What about using ffmpeg concat like that:
ffmpeg -f concat -i \ <(for f in $PWD/*.avi;do echo "file '$f'";done) \ -c copy output.avi
If you get an error Unsafe file name add
-safe 0 between