Skip to content

Instantly share code, notes, and snippets.

View masayukig's full-sized avatar

Masayuki Igawa masayukig

View GitHub Profile
@masayukig
masayukig / concat-mts-files.sh
Last active December 9, 2017 06:27 — forked from jbuchbinder/concat-mts-files.sh
Concatenate MTS AVCHD files under Linux
#!/bin/bash
## Solution from: http://stackoverflow.com/questions/26150533/join-avchd-mts-files-on-linux
## ffmpeg -i "concat:00000.MTS|00001.MTS|00002.MTS" -c copy output.m2ts
## Usage: concat-mts-files.sh OUTFILE.m2ts 0000[0-2].MTS
if [ $# -le 1 ]; then
echo "Usage: concat-mts-files.sh OUTFILE.m2ts 0000[0-2].MTS" 1>&2
exit 1
fi