Canon cameras (and maybe others) split MTS files at 2 GB boundaries. This causes audio/video glitches since the break between files gets interpreted by playback programs as invalid frames at the end/beginning of the consecutive files.

To fix this, simply concatenate the files together… e.g.

$ cat 00002.MTS 00003.MTS 00004.MTS 00005.MTS > act1.MTS
$ cat 00006.MTS 00007.MTS 00008.MTS > act2.MTS

See also: http://www.dvinfo.net/forum/canon-vixia-series-avchd-hdv-camcorders/113083-canon-vixia-hg10-2gb-file-limit-headache-2.html


Editing the MTS files directly seems to cause problems because the files aren't particularly suited to seeking. (While it does work, it's quite slow.) To get around this, we can (losslessly) copy the files to a Matroska container:

$ ffmpeg -i act1.MTS -vcodec copy -acodec copy -sn act1.mkv
$ ffmpeg -i act2.MTS -vcodec copy -acodec copy -sn act2.mkv

See also: http://comments.gmane.org/gmane.comp.kde.devel.kdenlive/3820


Untested: It looks like it should be possible to combine these two actions together:

$ cat 00002.MTS 00003.MTS 00004.MTS 00005.MTS | ffmpeg -i pipe:0 -vcodec copy -acodec copy -sn act1.mkv
$ cat 00006.MTS 00007.MTS 00008.MTS | ffmpeg -i pipe:0 -vcodec copy -acodec copy -sn act2.mkv

Now we can edit the files in Kdenlive. Note that the files are still highly compressed, so this will take a decently fast computer.

video/avchd_editing_workflow.txt · Last modified: 2013/03/22 02:55 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS