Author Topic: Exiftool takes forever on specific mp4 video files in Linux; works fine in OSX  (Read 2353 times)

tim-kos

  • Jr. Member
  • **
  • Posts: 12
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.
« Last Edit: August 10, 2016, 07:04:38 AM by Phil Harvey »

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
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
...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 ($).

tim-kos

  • Jr. Member
  • **
  • Posts: 12
I tried both '--History*' and --'History*' (same for Manifest, too), but without luck in both cases. :/

tim-kos

  • Jr. Member
  • **
  • Posts: 12
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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
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)?

Can you please edit it out of my original topic text?

Done.

- 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 ($).

tim-kos

  • Jr. Member
  • **
  • Posts: 12
Hey Phil,

it already craps out at just exiftool FILE.

`uname -r` gives "3.16.0-30-generic". Does this help?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
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
...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 ($).

tim-kos

  • Jr. Member
  • **
  • Posts: 12
Hey Phil,

memory stays fine, but CPU goes to 100% right away and stays there. Please see the attached screenshot.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
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
...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 ($).