applemedia plugin fails to load on ARM64 macOS
Tested with the macOS universal binaries:
$ /Library/Frameworks/GStreamer.framework/Commands/gst-inspect-1.0 applemedia
(gst-plugin-scanner:77367): GStreamer-WARNING **: 20:24:47.214: Failed to load plugin '/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/libgstapplemedia.dylib': dlopen(/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/libgstapplemedia.dylib, 2): Library not loaded: @rpath/lib/libMoltenVK.dylib
Referenced from: /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/libgstapplemedia.dylib
Reason: no suitable image found. Did find:
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/../../lib/libMoltenVK.dylib: code signature in (/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/../../lib/libMoltenVK.dylib) not valid for use in process using Library Validation: Trying to load an unsigned library
/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib: code signature in (/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib) not valid for use in process using Library Validation: Trying to load an unsigned library
/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib: stat() failed with errno=1
/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/../lib/libMoltenVK.dylib: code signature in (/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/../lib/libMoltenVK.dylib) not valid for use in process using Library Validation: Trying to load an unsigned library
/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib: code signature in (/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib) not valid for use in process using Library Validation: Trying to load an unsigned library
/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib: code signature in (/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib) not valid for use in process using Library Validation: Trying to load an unsigned library
/Library/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/../../lib/libMoltenVK.dylib: stat() failed with errno=1
No such element or plugin 'applemedia'
Works fine on x86_64:
$ /Library/Frameworks/GStreamer.framework/Commands/gst-inspect-1.0 applemedia
Plugin Details:
Name applemedia
Description Elements for capture and codec access on Apple macOS and iOS
Filename /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/gstreamer-1.0/libgstapplemedia.dylib
Version 1.19.90
License LGPL
Source module gst-plugins-bad
Source release date 2022-01-28
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin
atdec: AudioToolbox based audio decoder
avfassetsrc: Source and decoder for AVFoundation assets
avfdeviceprovider: AVF Device Provider
avfvideosrc: Video Source (AVFoundation)
avsamplebufferlayersink: AV Sample video sink
vtdec: Apple VideoToolbox decoder
vtdec_hw: Apple VideoToolbox decoder (hardware only)
vtenc_h264: H.264 encoder
vtenc_h264_hw: H.264 (HW only) encoder
vtenc_prores: Apple ProRes encoder
10 features:
+-- 9 elements
Not a regression because macOS ARM64 support is new in 1.20