Trying to help a friend... help! :/

Started by stefanomen, December 11, 2015, 12:40:02 AM

Previous topic - Next topic

Hayo Baan

What is the exact output you get from Phil's dir command?
Hayo Baan – Photography
Web: www.hayobaan.nl

stefanomen

It actually tells me this:


C:\exiftool>dir c:\poz\corrupted\*.jpg
Le volume dans le lecteur C s'appelle OS
Le numéro de série du volume est 2484-EBDD

Répertoire de c:\poz\corrupted

Fichier introuvable

C:\exiftool>dir c:\poz\corrupted\XMG_1521.jpg
Le volume dans le lecteur C s'appelle OS
Le numéro de série du volume est 2484-EBDD

Répertoire de c:\poz\corrupted

Fichier introuvable

So I don't really know what else to answer. 

Thanks

Phil Harvey

OK, so there are no "jpg" images in c:\poz\corrupted.  This is odd.  Could they be hidden somehow?  I'm a bit at a loss.  I don't think the "dir" command lists hidden files, but exiftool would find them.  Here are a few things to try:

This command should list all recognized files in the directory, even if they are hidden:  exiftool -filename c:\poz\corrupted

Or, there is a -o option for the extract_preview script that allows you to specify a directory for the output preview images:

exiftool -o OUTDIR c:\poz\corrupted

But make sure that the output directory (OUTDIR) exists before you run the command.

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

stefanomen

Good... at last I wasn't turning crazy... lol

I tried the new line.  Here is the result.  Did I forgot something?



C:\exiftool>perl extract_preview\extract_preview "c:\poz\corrupted" exiftool -o OUTDIR c:\poz\rescued
[extract_preview version 1.03]
===== c:\poz\corrupted/XMG_1442.CR2
Found JPEG (160x120 pixels, 10614 bytes at offset 18102444)
Error renaming to OUTDIR/XMG_1442_preview.jpg

The folder rescued does exist.

I will try to aim to one folder outside the poz folder to see...

Any clue?


Thanks

Phil Harvey

Change "OUTDIR" to the name of your output directory.  (ie. "c:\pos\previews")  But make sure the directory exists before running the command.

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

stefanomen

Good good good... it seems thought. 

It ran the batch with that line: C:\exiftool>perl extract_preview\extract_preview "c:\poz\corrupted" exiftool -o  c:\poz\rescued



at the end it tells:
===== c:\poz\corrupted/XMG_1641.CR2
Found JPEG (160x120 pixels, 12821 bytes at offset 17676460)
Found JPEG (5472x3648 pixels, 2220105 bytes at offset 17689284)
  --> saved 5472x3648 preview as c:\poz\rescued/XMG_1641_preview.jpg
===== c:\poz\corrupted/XMG_1642.CR2
===== c:\poz\corrupted/XMG_1442.CR2.ep_tmp.jpg
Error opening file
===== exiftool
----- Summary
    1 files not processed due to errors
  202 files processed
  190 previews created:
       11 160x120
      179 5472x3648
Done.

But when I check into the folder... nothing appears.  Hum... ???  Magic?  lol

Phil Harvey

OK.  Same problem. :(

Also a new problem... there was a ".ep_tmp.jpg" file left around in the corrupted directory.  You should delete this.

How do you check the folder?  Try running "exiftool -filename c:\poz\rescued" and paste the output here.

Also, try re-running this command and paste its output too:  perl extract_preview\extract_preview -o c:\poz\rescued "c:\poz\corrupted"

And one more thing to try.  There is a very small chance that the backslashes are causing a problem, so try this:

perl extract_preview\extract_preview -o c:/poz/rescued "c:/poz/corrupted"

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

stefanomen

Oooohh ok...

The first line didn't gave any output...

The second one ended with:

Found JPEG (160x120 pixels, 12821 bytes at offset 17676460)
Found JPEG (5472x3648 pixels, 2220105 bytes at offset 17689284)
===== c:\poz\corrupted/XMG_1642.CR2
===== exiftool
----- Summary
  201 files processed
  190 previews already existed
    0 previews created:
Done.


And the last one:

Found JPEG (160x120 pixels, 12821 bytes at offset 17676460)
Found JPEG (5472x3648 pixels, 2220105 bytes at offset 17689284)
===== c:/poz/corrupted/XMG_1642.CR2
----- Summary
  200 files processed
  190 previews already existed
    0 previews created:
Done.

Are we in the 5th dimension? 

thanks

Phil Harvey

Very very weird.

Can you search your system for one of the files, say "XMG_1641_preview.jpg"?

Also, why do some files start with "X" and some with "_" ?

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

stefanomen

I did a search it found nothing... :-\

The X in XMG_ comes from the original files rescued from the SD card. 

Maybe I could try to rename the files to take away the X so it comes back to the normal spelling of the Canon files wich is MG_ ???




stefanomen

Oups sorry... it did found a file

It was placed in a folder called: VTRoot/Harddiskvolume2/poz/rescued




Phil Harvey

Quote from: stefanomen on December 14, 2015, 11:57:12 AM
It was placed in a folder called: Harddiskvolume2/poz/rescued

Odd.  But at least you now know where they went!  I'm guessing that this could be due to some funny way in which this hard disk partition is mounted.

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

stefanomen

Thank you very much for your time and help both of you!   :D

I know a little better now.

Happy Holidays!