obsproject / obsproject/obs-studio

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

Open
#7,969 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with plugins/mac-avcapture/av-capture.mm and the attached OBS log, focusing on the CMMediaType check shown in the report. Reproduce the GoPro Webcam App setup on macOS 13 and compare it with a disconnected camera. Done means the connected GoPro feed displays video instead of a black input and is not rejected as unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
audio-video-rtc, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.