title: Recreate AVCHD structure / CPI files from MTS
body: <p>Yet another question on AVCHD. I've been looking for this for a while now without finding a solution.
  I've got M2TS files from a Lumix cam. I want to re-create the AVCHD structure where they came from.</p>
  
  <ul>
  <li><p>I can play the M2TS files with VLC, so they are OK</p></li>
  <li><p>The AVCHD file structure is documented and I am able to create the folder structure. I can also use one generated by the cam itself...</p></li>
  <li><p>However, I didn't find a way to recreate the CPI files associated with each and every M2TS file. I understand these files contain basic metadata about the M2TS but didn't find a tool to recreate them. I tried tools that say they can create the AVCHD structure but when I try to import the M2TS file, they mention that they also need the CPI Files.</p></li>
  <li><p>I've tried softs such as CLIPINF Editor of Bdedit or clipwrap or even VSO AVCHD editor but none recreate the CLI files.</p></li>
  <li><p>I've tried to create videos with my cam with the same length and then replace the created video with the M2TS file I have but it doesn't work.</p></li>
  <li><p>I don't want to recode/transcode/export anything. I just would like to create the structure in my SD Card, copy the M2TS files and the associated CPI files on it, insert it in the cam and have the cam read them.</p></li>
  </ul>
  
  <p>Does anyone know how to do that or maybe why it can't be done.
  Many thanks.</p>
  
  <p>Paul</p>