ExifTool Forum

ExifTool => Developers => Topic started by: diplonics on September 08, 2020, 10:22:30 AM

Title: PHP and Extended GPS details
Post by: diplonics on September 08, 2020, 10:22:30 AM
Is it possible to combine the -php and -ee switches to extract all details from a video file including its embedded GPS data?
I can get PHP to start an exiftool process on a video file with this:

$exif_array = eval('return ' . `exiftool -php -q -ee $file_video`);

However having the -ee or not doesn't get me the extended GPS details in the video file.
Running the command outside PHP, i.e. in a terminal from the command line gets me all data when I don't include the -php switch.

Thanks for any help.
Title: Re: PHP and Extended GPS details
Post by: Phil Harvey on September 08, 2020, 11:55:48 AM
The PHP variable names must be unique.  Try adding -G3 to the command.

- Phil
Title: Re: PHP and Extended GPS details
Post by: diplonics on September 08, 2020, 04:20:38 PM
-G3 and -n fixed this issue great.

Thank you once again.