[FFmpeg-user] AVCHD files recover

emaggiani at libero.it emaggiani at libero.it
Mon Dec 22 16:45:38 CET 2014

ok, I've explored these files a little bit more...

Some of them are valid mpeg streams, so ffmpeg -i outputs
Input #0, mpegts, from '00016.MTS':
  Duration: 00:12:35.99, start: 5289.968000, bitrate: 22482 kb/s
  Program 1 
    Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.2[0x1200]: Subtitle: pgssub

but some are not.
In these cases, I can only recover a disk image of them with GNU ddrescue, hoping with foremost (or analogous tools) to be able to carving it, finding the mpeg streams.
If then I instruct foremost to catch mpeg streams (or mov files, because I think that these AVCHD are contanined in a MP4 format) on the disk image, it finds many (hundreds) of little file mpeg (approx.3MB each), instead of a audio, a video and a subtitle streams in MTS format (approx.2GB).
Then here is my question: these hundreds of little mpeg are eventually the "data atoms" (mdat) of the original MP4 file, but is there a tool to rebuild the original container structure?
In other words, where are others 'MP4 atoms'? How find them?
Can they be found in a heuristic way, bycomparison(with other files, belonging to same machine footage)?
Someone told me of atomicparsley (<http://atomicparsley.sourceforge.net/>) - but I never tried with it. 

Thank for your attention


More information about the ffmpeg-user mailing list