[FFmpeg-user] mts > mp4 : can you just concatenate the mts files?
Dzung Nguyen
dzungng89 at gmail.com
Wed Aug 21 22:10:38 CEST 2013
On Wed, Aug 21, 2013 at 3:04 PM, Sean Darcy <seandarcy2 at gmail.com> wrote:
> I'm trying to generate 1 mp4 file from 10 mts files. The camcorder
> generates a new mts file every 2gigs. For the recent school play, that's 10
> mts files. Googling gives all sorts of suggestions, but no clear answer.
>
> One post suggests just cat'ing them, and not paying any attention to
> timestamp errors. I seem to remember ffmpeg being very fussy about
> timestamps.
>
> Or should I take them all to dv [ ffmpeg -i inN,mts -vcodec libx264 -crf
> 25 -acodec copy outN.dv ] and then cat the dv files?
>
> Or does somebody know a better way to do this?
>
> sean
>
> ______________________________**_________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>
Maybe using concat demuxer?
ffmpeg -f concat -i mylist.txt -c copy output
where mylist.txt hold the path to mts files
https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files
More information about the ffmpeg-user
mailing list