Skip to main content
johnrellis
Legend
October 20, 2024

P: SDK method exportRendition:waitForRender() returns incorrect results for videos

  • October 20, 2024
  • 2 replies
  • 903 views

The SDK method exportRendition:waitForRender() returns incorrect results for videos. The documentation says:

 

For photos, it works correctly. But for videos, it returns "false, nil" even when the video is correctly exported. 

 

To reproduce:

 

1. Download and unzip this catalog:

https://www.dropbox.com/scl/fi/g9ihjg69c85v8ets6h6kj/export-video-bug.2024-10-19.zip?rlkey=20fnn83lz8aao1bmii6pr4wlk&dl=0 

 

2. Copy the file "export-video-bug.lua" from the catalog folder to the Scripts subfolder in the Lightroom settings folder.

 

3. Open the catalog in LR.

 

4. Do File > Export, right-click the preset folder User Presets, do Import..., and select the file "Video Test.lrtemplate" in the catalog folder. That is an export preset that will export video files to the Desktop.

 

5. Select one of the videos in the catalog and do File > Export With Preset > Video Test. Observe that the video is correctly exported to the Desktop.

 

6. With the same video selected, do Scripts > export-video-bug and observe this output:

 

This shows that the video has been successfully exported to the desktop, but rendition:waitForRender() incorrectly returns "false, nil". It should have returned:

 

true, /Users/john/Desktop/IMG_1711-from_iPhone-2.mp4

 

The script "export-video-bug.lua" uses the Export settings copied from the export preset Video Test.

 

Tested on LR 14.0.1 / Mac OS 14.6.1.

This topic has been closed for replies.

2 replies

johnrellis
Legend
December 12, 2024

@Rikk Flohr: Photography: I confirmed that the bug recipe executes correctly in LR 14.1, thanks.

Rikk Flohr_Photography
Community Manager
October 20, 2024

Bug written - updating status. 

Rikk Flohr: Adobe Photography Org