I'm sure there is, but I'd pull the files down 1 at a time and use mkvmerge myself. I have a script that will merge file-001.mkv .... file-999.mkv into a single file.mkv. From the mkvmerge manpage:
Code:
SYNOPSIS
mkvmerge [global options] {-o out} [options1] {file1}
[[options2] {file2}] [@optionsfile]
$ more ~/bin/mkv-merge.sh
Code:
#!/bin/bash
if [ "X$1" = "X" ] ; then
echo "Usage: $0 file-001.mkv"
exit 1;
fi
ROOT=`echo $1 | sed -e 's/-001.mkv//g'`
CNT=1
OUT="mkvmerge -o \"$ROOT.mkv\" \"$ROOT-00$CNT.mkv\" "
for CNT in {002..999} ; do
if [ -f "$ROOT-$CNT.mkv" ] ; then
OUT="$OUT + \"$ROOT-$CNT.mkv\""
fi
done
echo $OUT | sh -
It is for mkv files, but tweaking it to support .mp4 input files wouldn't be hard. Leading zeros can be moved in the for-loop line. Just change the 002 --> 2.
Hope this gives you some ideas. Oh - and no spaces (or other odd characters) are allowed in the filenames. Some might work. Who knows?
Update: this tool will also validate that the input files all match on important muxing parameters. It doesn't transcode anything, so it is as fast as a file copy and because most of the files will likely be in the OS-managed buffers, performance will be about the same as a file copy.
Bookmarks