[FFmpeg-user] Need help rewrapping vixia hfs100 .mts files and concatenating to .mp4

Patricia N Goldweic pgoldweic at northwestern.edu
Tue Sep 6 19:38:49 CEST 2011

I use myself a somewhat different command for concatenating mp4s with MP4Box. You might want to try it and see if this works better for you perhaps:

MP4Box -force-cat -add <input1>.mp4 -cat <input2>.mp4 -new <output>.mp4


-----Original Message-----
From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of David Favor
Sent: Tuesday, September 06, 2011 12:21 PM
To: FFmpeg user questions and RTFMs
Subject: [FFmpeg-user] Need help rewrapping vixia hfs100 .mts files and concatenating to .mp4

Flow seems to be...

1) rewrap

2) concatenate files

To rewrap I've tried these commands:

    ffmpeg -y -i $name.mts -vcodec copy -acodec copy $name.mp4

    ffmpeg -y -i $name.mts -f mp4 -vcodec copy -acodec libfaac -ab 256000 -ac 2 $name.mp4

To concatenate:

    mp4box -cat 00178.mp4 -cat 00179.mp4 -cat 00180.mp4 -cat 00181.mp4 -cat 00182.mp4 -new final.mp4

Problem is audio drifts out of sync with each new file concatenated.

So... It appears I have to transcode these files.

This being the case, if anyone has a command set that works for either general .mts clips or specifically vixia clips, pass it along to me.


Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com for the easy way!
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list