This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 24 - Pages: 2 [ 1 2 | Next ] - Last Post: 31-Mar-2020 13:29 Last Post By: davidekholm Threads: [ Previous | Next ]
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Inconsistent video metadata with 18.4b1
Posted: 17-Jul-2019 18:02
 
  Click to reply to this thread Reply
This is a puzzling one. I've bundled up a complete project, containing two QuickTime videos. List the metadata on each, and notice the Quicktime sound.Creation Time. They are, correctly, a full seven years apart.

But now look at the album, in which I'm displaying that field below the slide image. Sometimes I get 2018 for both of them. Sometimes I get 2011 for both of them. Sometimes they're both correct. I can't detect the pattern.

The project: (demo removed)

Edited by: jGromit on 26-Feb-2020 07:36
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 23-Jul-2019 23:02   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
It behaves consistently here, but I naturally trust what you observe :-). See if setting # processing threads to 1 under preferences helps. If it does, then that's an indication that some part of the metadata-extractor library isn't thread safe.

(Back from 5 days of intense fever. Finally got antibiotics which seems to help, but boy have I missed some great windsurfing this summer :-( )
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 23-Jul-2019 23:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Good diagnosis. Set to one thread, the results are correct every time, through about a dozen album builds. Set to twelve threads, and I got the error on the very first build.

Hope you're feeling better.
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 23-Jul-2019 23:36   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
BTW, this rings a dim, distant bell. It was probably a decade ago, but I recall having a problem with metadata from one image bleeding over to another. I don't remember how you fixed it, but it never showed up again.

Then again, like Uncle Leo, I'm an old man, and I'm confused.
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 23-Jul-2019 23:43   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
Good diagnosis. Set to one thread, the results are correct every time, through about a dozen album builds. Set to twelve threads, and I got the error on the very first build.

Great! Let's isolate whether the root problem lies within jAlbum or metadata-extractor: Set the # of threads high again and report what updating to this beta gives. (My tests here aren't much to rely on as I could only trigger the problem once)

Hope you're feeling better.

Thanks. Yes I am. Worst fever I've had for years. Was passed on from my daughter who had fever for 8 days. Evil critters causing this :-(
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 23-Jul-2019 23:49   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Set the # of threads high again and report what updating to this beta gives.

Set to twelve threads, about a dozen album builds, and no errors this time! :)
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 00:27   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
BTW, David, you really need to stop doing your testing on this:

davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 12:07   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
BTW, David, you really need to stop doing your testing on this:


Oh, nostalgia hits! :-)
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 12:12   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
davidekholm wrote:
Set the # of threads high again and report what updating to this beta gives.

Set to twelve threads, about a dozen album builds, and no errors this time! :)


Aha, then we can blame Metadata-extractor. I synchronized this call:
                synchronized (AlbumObjectMetadata.class) { // Test in 18.4b2
                    metadata = ImageMetadataReader.readMetadata(f);
                }
Something within Metadata-extractor isn't obviously thread safe. We need to post a bug report to their Github on this, cause this "workaround" destroys performance as only one thread can be used now. It's likely "only" the QuickTime or MP4 reader that isn't thread safe.
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 12:15   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
We need to post a bug report to their Github on this....

I'll have to leave that to you. I wouldn't know what to tell them, beyond saying "m-e isn't thread-safe." I certainly couldn't set up a demo for them to look at.
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 12:25   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Yes, I'll file a bug report, but I'll had to add that it's tricky to reproduce.
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 12:41   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
...I'll had to add that it's tricky to reproduce.

In particular, they can't use an Etch-a-Sketch, since that's the quintessential single-threading device!
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 21:40   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
davidekholm wrote:
...I'll had to add that it's tricky to reproduce.

In particular, they can't use an Etch-a-Sketch, since that's the quintessential single-threading device!


:-) "A little heavy on the liquor today, are we? ;-)

Posted the report to https://github.com/drewnoakes/metadata-extractor/issues/421
jGromit

Posts: 7,673
Registered: 31-Jan-2006
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 21:52   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Yeah, once the sun rises in the morning, I start hitting the Lagavulin 16. Isn't that what they mean when they talk about the sun being "over the yardarm?"
davidekholm

Posts: 3,401
Registered: 18-Oct-2002
Re: Inconsistent video metadata with 18.4b1
Posted: 24-Jul-2019 23:15   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Tha, gu nàdarra sir. Bu chòir dhomh sip a bhith agam fhìn cuideachd :-)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums