Hi.
I wanted to create gpx file from my photos with gps information.
all of my photos are in the directory d:\photo
I copied exiftool to d:\photo directory and entered the phrase at dos prompt, win 7 32 bit as follow.
d:\photo\exiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ d:\photo> out.gpx
and I have an error message saying
"error opening directory >
file not found: out.gpx
1 directories scanned
15 image file read
1 file could not be read"
Could someone help me to figure this out?
I can't download your screen cap right now, but the only way this could happen at the cmd.exe prompt is if it isn't a normal ">" character.
But my guess is that the command wasn't run in cmd.exe, and that you used the GUI, which doesn't handle redirection with ">".
Also, in your output "gpx.fmt" is printed a number of times, so exiftool must not have been able to read the gpx.fmt file -- probably because it wasn't in the current working directory where exiftool was run.
- Phil
Hi Phil,
Just to help...
From screenshot (taken with camera) I can see, that ExifTool is being used in console window (I'm not sure if it's Windows).
The screenshot doesn't contain actual command; just ending of result:
gpx.fmt
gpx.fmt
......
gpx.fmt
Error opening directory >
File not found: out.gpx
1 directories scanned
15 image files read
1 image file could not be read
-that's all (no path/prompt at the end).
Bogdan
Hi Phil,
I ran the command from 'RUN" prompt.
So this time I tried cmd.exe.
It does generate out.gpx however it turns out that is not track record file.
It is the text file only with 'gpx.fmt' repeatedly typed.
What did I do wrong?
I am attaching captured image of the command prompt along with the text editor of out.gpx
Hi,
And you do have gpx.fmt file (from ExifTool full distribution package) in the same folder where exiftool.exe is?
Bogdan
Type the "pwd" command before running exiftool to see the current working directory. If the gpx.fmt file isn't in this directory, then specify the directory on the command line with -p D:/SOME_DIR/gpx.fmt
- Phil
My bad.. I have assumed gpx.fmt file should be where exiftool.exe is. Sorry for confusion...
Bogdan
Thanks Phil and Bogdan
Copying gpx.fmt to the picture directory solved all problem.
Thank you very much.
One more question.
Some of the photos lack gpstimedate tag.
How can I output gpx file in the order of original date/time (not modified or created date)?
I tried
exiftool -fileOrder datetime -p gpx.fmt d:\photos > out.gpx
but it does not seem to create chronological track.
The -fileorder option takes a tag name for an argument. So I think you want
-fileorder datetimeoriginal
or
-fileorder gpsdatetime -fileorder datetimeoriginal
to sort on GPSDateTime, or DateTimeOriginal if GPSDateTime isn't available.
- Phil
It works perfectly.
Thanks a lot for the help and your amazing software.
:)