Lightroom: Dimensions and capture date for MP4 not read when THM sidecar present

  • 3
  • Problem
  • Updated 6 days ago
  • (Edited)
When LR 7.3.1 imports a Sony MP4, if the THM sidecar is also present, then LR doesn't read the dimensions of the video and display them in the metadata panel. It also doesn't read the capture time properly -- instead, it uses the MP4's file modification time as the capture time, and it appears to set the multiple internal catalog fields inconsistently, causing inconsistent sorting by capture date in grid view. 

Details of dimensions bug:
https://feedback.photoshop.com/photoshop_family/topics/lightroom-dimensions-and-capture-date-for-mp4...

Details of capture-time bug:
https://feedback.photoshop.com/photoshop_family/topics/lightroom-dimensions-and-capture-date-for-mp4...
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes

Posted 6 days ago

  • 3
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes
This reply was created from a merged topic originally titled Lightroom: Doesn't read dimensions of Sony RX100 V videos.

LR 7.3.1 doesn't read the dimensions of MP4s imported from a Sony RX100 V:



From the SDK, photo:getRawMetadata () returns {} for "dimensions" and "croppedDimensions".

Two examples:
https://www.dropbox.com/s/tapzs8u807242ao/sony-mp4s-bug.2018.05.02.zip?dl=0

The problem appears related to the presence of the .thm sidecars created by the camera. If you copy the .mp4 files to your harddrive without the .thm sidecars and import from there, LR correctly reads the dimensions.
Photo of Steven Seelig

Steven Seelig

  • 32 Posts
  • 1 Reply Like
This reply was created from a merged topic originally titled Lightroom Classic: Sort by capture time bug.

Using LR CC Classic 7.3.1.  When I import a mixture of still and video files into lightroom and attempt to sort by 'Capture Time' the .ARW (sony raw) and .mov (video) are separated, but within their file extension, they are sorted correctly by capture time.  If I edit capture time (Metadata>Edit Capture Time) and do not make any changes but select 'Change', then the file is placed in proper capture time sequence.  This behavior has been observed by others via a conversation on photo.net.

This is a difficult issue when one is shooting with two different cameras with different extensions and one wants to sort all of the captured pictures in sequence or when there is a mixture of stills and video from the same camera.

Please fix this bug
Photo of Steven Seelig

Steven Seelig

  • 32 Posts
  • 1 Reply Like
This reply was created from a merged topic originally titled Lightroom Classic: Sort by capture time bug (merging).

Here is a link.  Let me know if that works for you.  There are 7 files: two ARW, followed by MP4 and THM and then two more ARW files.  They are numbered sequentially as they were taken.  The last image is a screenshoot showing the sort order with the .mp4 at the end and you can see it was sorted by capture time.

Here is the link to the files
https://www.dropbox.com/sh/rntfzwqvgcgjmin/AAD14CrJyHSi-nhWuPcvGoy9a?dl=0

Let me know when you have got them so I can delete them to conserve space.

Note: This conversation was created from a reply on: Lightroom Classic: Sort by capture time bug.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1377 Posts
  • 408 Reply Likes
This reply was created from a merged topic originally titled Lightroom Classic: Sort by capture time bug (merging).

This should be fixed in the next Lr update.

Note: This conversation was created from a reply on: Lightroom Classic: Sort by capture time bug.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes
Steven, my initial analysis of this bug was incorrect. Please see the first post in the merged thread above -- LR is getting confused by the presence of the THM sidecar files. 

If you copy the videos to your hard drive first, delete the THMs, and then import them into LR, LR should set the capture time consistently.  Unfortunately, that capture time will be in UTC, not the local time. But you can use the Metadata > Edit Capture Time to shift all the videos by the appropriate number of hours.