PHP and Extended GPS details

Started by diplonics, September 08, 2020, 10:22:30 AM

Previous topic - Next topic

diplonics

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.

Phil Harvey

The PHP variable names must be unique.  Try adding -G3 to the command.

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

diplonics

-G3 and -n fixed this issue great.

Thank you once again.