ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: tim-kos on August 09, 2016, 04:50:29 AM

Title: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: tim-kos on August 09, 2016, 04:50:29 AM
Here is the file:

[file link removed]

This is the command:

Quote
exiftool -VideoBitrate# -AudioBitrate# -Preroll# -PlayDuration# -Duration# -GPSLongitude# -GPSLatitude# -All --PageImage --History* --Manifest* -coordFormat %.6f -x ThumbnailsSpreadsImage -x PreviewsSpreadsBase64_data -x IngredientsMaskMarkers -x IngredientsDocumentID -x IngredientsInstanceID -x PantryHistoryChanged -x IngredientsFromPart -x IngredientsToPart -x IngredientsFilePath -x IngredientsPartMapping -x IngredientsInstanceID -x IngredientsFromPart -x IngredientsToPart -x Extracted-textStoriesNFKC_UTF8_Zlib_Base64 -x FpoinfoImagesFPOinfo -x ImageinfoDocPath -x ImageinfoImagesFullpath -x PantryNativeDigest -x DocumentAncestors -x FpoinfoImages -j no_mime.mp4

Works fine on OSX, but takes forever in Linux Ubuntu Trusty. Any ideas?

PH Edit: Removed link to sample file as requested.
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: Phil Harvey on August 09, 2016, 07:38:59 AM
It works fine for me in Linux (2.6.32-573.8.1.el6.x86_64) provided I quote the arguments with the stars (*).  Could this be your problem?

- Phil
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: tim-kos on August 10, 2016, 03:05:41 AM
I tried both '--History*' and --'History*' (same for Manifest, too), but without luck in both cases. :/
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: tim-kos on August 10, 2016, 05:22:37 AM
Hey Phil,

I assume you have downloaded the file. Can you please edit it out of my original topic text? It's from a customer's customer and our customer is uncomfortable it being out there. Thank you in advance.
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: Phil Harvey on August 10, 2016, 07:06:34 AM
Odd.  Could you narrow down the problem a bit?  Does it take a long time to just extract metadata without any arguments?  (ie. exiftool FILE)  If not, then what argument(s) are causing the slow down?

Also, what version of Linux are you using (uname -r)?

Quote from: tim-kos on August 10, 2016, 05:22:37 AM
Can you please edit it out of my original topic text?

Done.

- Phil
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: tim-kos on August 16, 2016, 10:59:33 AM
Hey Phil,

it already craps out at just exiftool FILE.

`uname -r` gives "3.16.0-30-generic". Does this help?
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: Phil Harvey on August 16, 2016, 11:17:05 AM
I was just wondering if you were using an older or newer version of Linux.  Looks like newer.

I suspect this is a memory allocation problem, but I can't prove it.  If ExifTool tries to allocate enough memory to force your system into memory-swap hell, then this could potentially happen.  Maybe watching the "top" output to see what the memory and CPU are doing while ExifTool is running.

- Phil
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: tim-kos on August 17, 2016, 03:13:28 AM
Hey Phil,

memory stays fine, but CPU goes to 100% right away and stays there. Please see the attached screenshot.
Title: Re: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX
Post by: Phil Harvey on August 17, 2016, 07:33:31 AM
Is there any way you can give me access to your system so I can debug this?  My email is philharvey66 at gmail.com

- Phil