obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

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

Open DSchroer opened this issue 3 years ago • 0 comments

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;
	}

DSchroer avatar Dec 27 '22 18:12 DSchroer