Fixing SD Card For A Video Camera
Written: 11/22/2023
Earlier today my son mentioned that his video camera was not working as expected. When selecting video record mode, an error prevented video recording or playback: THIS CARD CANNOT RECORD IN VIDEO MODE.
Researching the error for the video camera, which is a Panasonic HC-V180 I came up with various suggestions indicating that the issue could be caused by insufficient space on the card, incorrect card type being added and similar issues causing the problem.
Some of the pages I read through:
- Fixya.com - Camera shows this card cannot record in video mode. How do i fix it?
- Manualslib.com - Panasonic SDR-S26 Operating Instructions Manual
- Justanswer.com - I have a new Pan. SDR-H85 camcorder. I use SDHC 32gb memory…
Note: While the Manuals Lib link is not for the exact camera model, the error is identical as to what the cam corder was showing.
In a lot of cases the suggestion was to reformat the card. What was odd about this issue is that the camera worked as expected the previous day and even now while the video recording feature was not available, photos could still be taken and taking the SD card and viewing the content via the computer, the videos were present and working.
I decided to poke around and see if we could figure out the issue without needing to format the card. Checking the SD card’s top level file structure listed the following:
There was nothing exciting in PRIVATE
, System Volume Information
and the other hihidden directories. Most of the data was also showing that there have been no recent updates to the files.
While reviewing the DCIM
directory, what I did notice was that there were two identical files called INDEX.DAT
:
A few observations:
- Two files with the same name are in the same directory
- One of the duplicate files is zero bytes
- The zero byte file was created around the date and time when the camera last worked as expected
So this is definitely something to go on. FileInfo.com has the following to say about the filetype:
A DAT file is a generic data file created by a specific application. It may contain data in binary or text format. DAT files are typically accessed only by the application that created them.
To troubleshoot the issue I initially tried to see if the file name was identical but in all honesty I did not run it through something like the following command which would have given a better idea in case there was an explanation such as a character that was not visible to ls
:
Checking the zero byte file with a few tools available on OSX noted that indeed we were looking at an empty file with no additional data to glean from it:
Checking the other INDEX.DAT
file in the directory that we can see is 102B
in size:
We can take a look at the file using the tool xxd:
I moved the broken file from the SD card to a local directory on my computer and also copied the file that I suspected was the working file in this case. After doing this, the card started to work as expected in the video camera again.
To test my theory that the issue was being caused by the zero byte INDEX.DAT
file, I deleted the working one and replaced it with the broken file. Testing in the video camera confirmed this to be the case.
In summary, the issue was identified to be a zero byte INDEX.DAT
file on the SD card’s DCIM
directory. To fix it we can either:
- Delete the file and on the next time the card is re-inserted into the video camera, a new one will be written
- In my case there was a broken and a working version. Removing the broken version fixed the problem