• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Intel Mac tries to use Apple Silicon ffmpeg and fails?

Offline
#1 higginspdx
Hi there,

I reinstalled LRTimelapse today on an iMac Pro (18-core, 2017, Intel) running macOS 12.6 Monterey. I am using LRTimelapse 6.1 Universal, downloaded today from the website. Note that I have previously used LRTimelapse on a MacBook Pro (Apple Silicon), but I did not do anything to transfer that version to my Intel desktop Mac. The license is active on the Mac and most functions work, except render during export.

When going to export a new timelapse, the frames are all prepared by Lightroom Classic. But then in LRTimelapse, when I go to Render video, I get an error that I cannot continue and to check the logfile. So I do, and I see there that for some reason LRTimelapse is trying to use the Apple Silicon version of ffmpeg (??). I searched the forum and the FAQ and did not see the same issue, so I thought I would post here and see if there is anything I can do to fix this? I have not attempted to install a newer version of ffmpeg, in part because the executable appears to be bundled inside LRTimelapse itself...I'm not sure if I can install a different one and tell this software to use an Intel binary instead.

Here is the log, minus the licensing bit at the top:

Code:
2022-10-21 15:25:02 [DEB] Created Log file: /Users/higgins/Documents/LRTimelapse
2022-10-21 15:25:02 [INF] Reading settings from /Users/higgins/Library/Application Support/LRTimelapse/LRTimelapse.config
2022-10-21 15:25:03 [INF] LRTimelapse 6.1.2 (2022-09-08) Build 807
2022-10-21 15:25:03 [INF] (c) 2022 Gunther Wegner
2022-10-21 15:25:03 [INF] https://lrtimelapse.com
2022-10-21 15:25:03 [INF] Java version: 16.0.1 (64bit) from AdoptOpenJDK
2022-10-21 15:25:03 [INF] Running on: Mac OS X locale: en_US
2022-10-21 15:25:03 [INF] OS Version: 11.5
2022-10-21 15:25:03 [INF] Java runtime: 64 bit
2022-10-21 15:25:03 [INF] Found 36 processor cores.
2022-10-21 15:25:03 [INF] Licensed to: Chris Higgins, Chris Higgins LLC, Portland - Professional License.
2022-10-21 15:25:03 [DEB] Registered Tiff-Reader: com.sun.imageio.plugins.tiff.TIFFImageReader@68fa0ba8
2022-10-21 15:25:03 [DEB] Registered Tiff-Reader: com.twelvemonkeys.imageio.plugins.tiff.TIFFImageReader@5286c33a
2022-10-21 15:25:03 [DEB] Loading UI Ressources...
2022-10-21 15:25:06 [DEB] Done loading UI Ressources.
2022-10-21 15:25:07 [DEB] Launched LRTExport worker with 16 threads.
2022-10-21 15:25:07 [DEB] Launched Batch Processing worker with 32 threads.
2022-10-21 15:25:07 [INF] Loading directory structure
2022-10-21 15:25:07 [DEB] Initializing directory chooser
2022-10-21 15:25:07 [DEB] Start path: /Volumes/Fast External HD/CTWC - Thu Oct 13 2022 Timelapse/101NZ7_2
2022-10-21 15:25:07 [DEB] Building user interface
2022-10-21 15:25:07 [DEB] Building Table
2022-10-21 15:25:07 [DEB] Setting header renderer
2022-10-21 15:25:07 [DEB] Register cell editing
2022-10-21 15:25:08 [DEB] Updating column widths
2022-10-21 15:25:08 [DEB] Create table popup
2022-10-21 15:25:08 [DEB] Enabling drag-drop
2022-10-21 15:25:08 [DEB] Done creating UI
2022-10-21 15:25:08 [DEB] Creating UI-bindings...
2022-10-21 15:25:08 [DEB] Preview Color Management not activated. You can activate it in the Settings.
2022-10-21 15:25:08 [DEB] Launched Visual Previews worker with 32 threads.
2022-10-21 15:25:08 [DEB] Checking for render tasks in: /Users/higgins/Documents/LRTimelapse/LRTInterface.txt
2022-10-21 15:25:08 [INF] Detected 3 screens:
2022-10-21 15:25:08 [INF] Screen 1: 2048 1152
2022-10-21 15:25:08 [INF] Screen 2: 1920 1080
2022-10-21 15:25:08 [INF] Screen 3: 2560 1440
2022-10-21 15:25:08 [DEB] Setting window position
2022-10-21 15:25:09 [DEB] Starting version check...
2022-10-21 15:25:09 [DEB] Showing UI
2022-10-21 15:25:09 [DEB] Initializing import dialog...
2022-10-21 15:25:09 [DEB] ExifTool installed, version 12.44
2022-10-21 15:25:09 [DEB] Launching 8 instances of ExifTool
2022-10-21 15:25:09 [DEB] /usr/local/LRTimelapse/exiftool
2022-10-21 15:25:09 [DEB] Successfully launched ExifTool Pool.
2022-10-21 15:25:09 [DEB] DNG Converter available: /Applications/Adobe DNG Converter.app
2022-10-21 15:25:09 [DEB] MPEG Encoder available: /usr/local/LRTimelapse/ffmpeg-silicon
2022-10-21 15:25:09 [DEB] Cleaning up temp dir
2022-10-21 15:25:09 [DEB] Using temp-dir: /var/folders/4h/s462pmt14njc51ydqzgjfthw0000gn/T/lrt_14780997271040970434
2022-10-21 15:25:09 [DEB] Using 32 threads for Visual Previews.
2022-10-21 15:25:09 [DEB] Using 16 threads for Internal Export.
2022-10-21 15:25:09 [DEB] Using 8 threads for ExifTool.
2022-10-21 15:25:09 [INF] Locating last selected folder...
2022-10-21 15:25:09 [INF] ...done locating last selected folder.
2022-10-21 15:25:09 [INF] Latest Version of LRTimelapse: 6.1.2 (2022-09-08), installed Version: 6.1.2 (2022-09-08)
2022-10-21 15:25:10 [DEB] ...done initializing import dialog.
2022-10-21 15:25:10 [DEB] Installed Version of Adobe DNG converter: 15.0 (15000000)
2022-10-21 15:25:10 [DEB] Latest Version of Adobe DNG Converter: 14.5.0 (14050000)
2022-10-21 15:25:10 [DEB] Memory: [max|104864] [used|931] [free|103933]
2022-10-21 15:25:19 [INF] --- Loading directory: /Volumes/Fast External HD/CTWC - Thu Oct 13 2022 Timelapse/101NZ7_2
2022-10-21 15:25:19 [DEB] Loading sequence properties from /Volumes/Fast External HD/CTWC - Thu Oct 13 2022 Timelapse/101NZ7_2/.lrt/lrtsequence.properties
2022-10-21 15:25:19 [DEB] Launched Folder Loader worker with 32 threads.
2022-10-21 15:25:19 [DEB] Detected a Masks 2.0 sequence.
2022-10-21 15:25:47 [DEB] Finished loading XMP data in 27 sec.
2022-10-21 15:25:47 [DEB] NEF sequence with 4036 images loaded.
2022-10-21 15:25:47 [DEB] Memory: [max|104864] [used|2313] [free|102551]
2022-10-21 15:25:47 [DEB] Buffer size for ExifTool: 375
2022-10-21 15:25:48 [DEB] Sequence shot in auto mode
2022-10-21 15:25:48 [DEB] Timestamp Data complete!
2022-10-21 15:25:49 [DEB] Sequence processed with LRT 6.1.2, Build 807
2022-10-21 15:25:49 [DEB] 1st Image (NEF): 8288 x 5520, f/5.6, 1/15 sec, 1800 ISO
2022-10-21 15:27:55 [DEB] Found render tasks!
2022-10-21 15:27:55 [DEB] Launching render Task for: /Users/higgins/TEMP/LRT_101NZ7_2
2022-10-21 15:27:55 [DEB] RenderDialog: Initializing...
2022-10-21 15:27:55 [DEB] RenderDialog: Loading presets from settings...
2022-10-21 15:27:55 [DEB] RenderDialog: Loading Render Settings...
2022-10-21 15:27:55 [DEB] RenderDialog: Selecting last render setting...
2022-10-21 15:27:55 [DEB] Loaded render settings from UI
2022-10-21 15:27:55 [DEB] RenderDialog: completed.
2022-10-21 15:27:55 [DEB] -- Dialog render
2022-10-21 15:27:55 [DEB]   Loading: /Users/higgins/TEMP/LRT_101NZ7_2 (4036 files)
2022-10-21 15:27:55 [DEB] Rendering from intermediary: /Users/higgins/TEMP/LRT_101NZ7_2
2022-10-21 15:27:56 [DEB] Couldn't parse orientation: <EMPTY>
2022-10-21 15:27:56 [DEB]   Dimensions: 8192 x 5461
2022-10-21 15:27:56 [DEB]   ICC-Profile: ITU-R BT.2020 Reference Display
2022-10-21 15:28:33 [DEB] -- Render intermediary sequence /Users/higgins/TEMP/LRT_101NZ7_2
2022-10-21 15:28:33 [DEB] Couldn't parse orientation: <EMPTY>
2022-10-21 15:28:33 [DEB]   Dimensions: 8192 x 5461
2022-10-21 15:28:33 [DEB]   JPG sequence
2022-10-21 15:28:33 [DEB]   ICC-Profile: BT2020
2022-10-21 15:28:33 [DEB]   Intermediary sequence has LRTimelapse naming convention.
2022-10-21 15:28:33 [DEB] Output Filename: /Users/higgins/TEMP/101NZ7_2_ProRes-422_Rec.709L_8K_29.97_MQ.mov
2022-10-21 15:28:33 [DEB] Launching video encoder: /usr/local/LRTimelapse/ffmpeg-silicon
2022-10-21 15:28:33 [ERR] Could not launch encoder
Cannot run program "/usr/local/LRTimelapse/ffmpeg-silicon": error=86, Bad CPU type in executable
java.base/java.lang.ProcessBuilder.start(Unknown Source)
java.base/java.lang.ProcessBuilder.start(Unknown Source)
Naa.I(ljb:996)
Naa.doInBackground(ljb:130)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)
java.desktop/javax.swing.SwingWorker.run(Unknown Source)
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base/java.lang.Thread.run(Unknown Source)
Offline
#2 mopperle
Not sure what you mean with "LRTimelapse 6.1 Universal", but you are aware that there are 2 installers, one for Mac(Intel) and one for Mac(M1/Arm/silicon)?
Gruß/regards

Otto
Offline
#3 higginspdx
Yes. I installed the binary labeled as Intel (filename: LRTimelapse6.1.2.mac.dmg), and actually tried reinstalling it this morning and trying again. Same thing happens when I attempt to export. From the log you can see that the ffmpeg binary included inside the app is listed as being for Apple Silicon, not Intel.

What I mean by "Universal" is that Apple considers binaries to be either: Intel, ARM-only, or Universal. Universal typically means it targets both architectures at least to some extent. (And prior to the recent architecture change, there was also a PowerPC build type which worked similarly.) For whatever reason the Intel distribution of LRTimelapse is built as Universal even if it's intended to be Intel-only. If I had to guess, I'd suspect that somehow the binary targets got flipped in a recent release, or there is some other reason the Apple Silicon version of ffmpeg is included inside the package. (??) But that's just a guess as a way-long-ago Apple developer.

;Chris
Offline
#4 Gunther
Check the LRTimelapse settings, under external programs change the ffmpeg executable to "ffmpeg" only.
Please copy/paste the full path:
/usr/local/LRTimelapse/ffmpeg
This should work. I have no idea, why the wrong executable has been configured there.

(Another option would be to reset the settings (button bottom left in the settings) - this should reset the setting to the right ffmpeg also, but of course all others too.)

By default, both binaries come in both installers and will installed on both architectures. LRTimelapse sets the config setting to the right ffmpeg binary on first launch depending on the architecture.
You need to take care to install the right installer for your type of mac.
Subscribe to: LRTimelapse Newsletter, Youtube Channel, Instagram, Facebook.
Offline
#5 higginspdx
Ah, that fixed it of course! Thank you. Smile

;Chris

...also check out: