obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
59.97k stars 7.94k forks source link

CMMediaType '' is unsupported logs on OSX followed by black input #7969

Open DSchroer opened 1 year ago

DSchroer commented 1 year ago

Operating System Info

macOS 13

Other OS

No response

OBS Studio Version

28.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/3tsVsKY-Xobc5oOw

OBS Studio Crash Log URL

No response

Expected Behavior

Camera input connects and displays video stream.

Current Behavior

Camera is seen by OBS but a black feed is shown.

Steps to Reproduce

  1. Use GoPro camera software on OSX
  2. Connect webcam feed from GoPro to OBS
  3. Display camera on screen

Anything else we should know?

This is the same behavior as when the GoPro Webcam App has been connected but the camera is disconnected.

In this case it happens when the camera is connected and the preview of the GoPro Webcam App is showing the video feed.

It seems that the video feed check is not reliable since the camera works fine plugins/mac-avcapture/av-capture.mm:

CMMediaType mtype =
        CMFormatDescriptionGetMediaType(format.formatDescription);
    // TODO: support other media types
    if (mtype != kCMMediaType_Video && mtype != kCMMediaType_Muxed) {
        AVLOG(LOG_ERROR, "CMMediaType '%s' is unsupported",
              AV_FOURCC_STR(mtype));
        return false;
    }
gxalpha commented 1 year ago

I can reproduce this with the GoPro Webcam app (no physical webcam is required), but I think this is GoPro's DAL being broken and not our fault. I will leave this open for now (in case other maintainers disagree), but I don't think there's anything actionable for us to do (except waiting for macOS 14 where DALs will be gone anyways).