[FFmpeg-trac] #11015(undetermined:open): Mac arm64, AVFoundation not listing video device part of usb cameras, Logitech?
FFmpeg
trac at avcodec.org
Mon Jun 3 03:12:56 EEST 2024
#11015: Mac arm64, AVFoundation not listing video device part of usb cameras,
Logitech?
-------------------------------------+-------------------------------------
Reporter: Dave | Owner: Thilo
| Borgmann
Type: defect | Status: open
Priority: important | Component:
| undetermined
Version: 7.0 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by ddennedy):
A problem is that this new API `AVCaptureDeviceDiscoverySession` should
not be used on older macOS versions. `AVCaptureDeviceTypeExternal` is for
macOS 14+, but I am building and testing on a system with 12.7 where it
was working fine. I can confirm this is working with the USB webcam on
12.7:
{{{
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index e558ad7d90..b4624658da 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -764,7 +764,7 @@ static int get_audio_config(AVFormatContext *s)
}
static NSArray* getDevicesWithMediaType(AVMediaType mediaType) {
-#if ((TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000) ||
(TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500))
+#if ((TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000) ||
(TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 130000))
NSMutableArray *deviceTypes = nil;
if (mediaType == AVMediaTypeVideo) {
deviceTypes = [NSMutableArray
arrayWithArray:@[AVCaptureDeviceTypeBuiltInWideAngleCamera]];
@@ -786,17 +786,17 @@ static NSArray* getDevicesWithMediaType(AVMediaType
mediaType) {
}}}
It will take more time for me to verify that iPhone continuity camera is
fixed with the parenthesis in the macro.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11015#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list