ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: quickshot on January 20, 2021, 05:28:04 PM

Title: Decode AVCHD CPI (clip info) files
Post by: quickshot on January 20, 2021, 05:28:04 PM
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

Title: Re: Decode AVCHD CPI (clip info) files
Post by: Phil Harvey on February 02, 2021, 01:27:06 PM
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
Title: Re: Decode AVCHD CPI (clip info) files
Post by: Glock on April 04, 2021, 09:09:02 PM
Hi, may I send you some Sony .cpi files for you to try and get some metadata from them?
Title: Re: Decode AVCHD CPI (clip info) files
Post by: Phil Harvey on April 04, 2021, 10:24:34 PM
Sure!
Title: Re: Decode AVCHD CPI (clip info) files
Post by: Phil Harvey on April 12, 2021, 09:01:13 AM
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