Decode AVCHD CPI (clip info) files

Started by quickshot, January 20, 2021, 05:28:04 PM

Previous topic - Next topic

quickshot

Trying to recover AVCHD video files deleted by mistake (actually the card had been formatted in the camera) I realized that the files seem to lack recording date and time. I could also recover some CPI clipinfo files, and I was hoping to correlate the MTS with the CPI to recover metadata maybe.
Unfortunately:

% file /mnt/recovered/recup_dir.1/f10828928.cpi
/mnt/recovered/recup_dir.1/f10828928.cpi: AVCHD Clip Information
% exiftool -e !!:$
exiftool -e /mnt/recovered/recup_dir.1/f10828928.cpi
ExifTool Version Number         : 10.80
File Name                       : f10828928.cpi
Directory                       : /mnt/recovered/recup_dir.1
File Size                       : 448 kB
File Modification Date/Time     : 2021:01:11 23:51:27+01:00
File Access Date/Time           : 2021:01:11 23:51:27+01:00
File Inode Change Date/Time     : 2021:01:11 23:51:27+01:00
File Permissions                : rwxrwxrwx
Error                           : Unknown file type

I know my version of exiftool is old, but the latest version also does not know the file format:
./exiftool -e /mnt/recovered/recup_dir.1/f10828928.cpi
ExifTool Version Number         : 12.15
File Name                       : f10828928.cpi
Directory                       : /mnt/recovered/recup_dir.1
File Size                       : 448 KiB
File Modification Date/Time     : 2021:01:11 23:51:27+01:00
File Access Date/Time           : 2021:01:11 23:51:27+01:00
File Inode Change Date/Time     : 2021:01:11 23:51:27+01:00
File Permissions                : rwxrwxrwx
Error                           : Unknown file type


Phil Harvey

Currently ExifTool doesn't support reading CPI files.  I did some Googling and can't find any details about this file format.  Also, I only have one sample.  If you could send me a few more I will see what I can do about extracting information from this type of file.  My email is philharvey66 at gmail.com

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Glock

Hi, may I send you some Sony .cpi files for you to try and get some metadata from them?

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

I got the files, thanks.

I've added this to my to-do list, and will look into it when I get a chance.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).