[FFmpeg-user] joining avchd files

sean darcy seandarcy2 at gmail.com
Sun Oct 28 17:51:31 CET 2012


My Canon camcorder writes avchd in mpegts container with h264 video and 
ac3 audio.

Input #0, mpegts, from '00006.MTS':
   Duration: 00:04:10.77, start: 1953.927489, bitrate: 16851 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), 
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 
59.94 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
stereo, s16, 256 kb/s

But since the sd memory card is formated in FAT32, it can only write 2gb 
files. And it writes the 2gb files without any reference to the content, 
such as keyframes. For instance, file 1 may have all or part of a video 
frame, but the audio for that frame is in file 2. So if you're filming a 
school play, you quickly get audio sync problems.

This means that simply cat'ing files most times generates audio sync 
issues. Some googling shows recommendations for TsMuxer and eac2to - but 
neither has worked for me.

I was thinking of using the concat protocol once for video and then 
again for audio. Then I'd mux them together (somehow).

This would seem to be a common problem, and I'm hoping someone here has 
figured it out.

Sean



More information about the ffmpeg-user mailing list