Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Issue 229063003: Mac AVFoundation: use QTKit for cameras not working with AVF (Blackmagic). (Closed)

Created:
6 years, 8 months ago by mcasas
Modified:
6 years, 8 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, miu+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Mac AVFoundation: use QTKit for devices not working with AVF (Blackmagic). Some video capture devices are not correctly supported in Mac when using AVFoundation. F.e. the Blackmagic UltraStudio Mini Recorder only works correctly when opened in 480p or less. A blacklist is added to video_capture_device_mac.mm to identify those devices. The blacklisted devices are identified by USB Vendor ID. This list is checked while enumerating the devices using AVFoundation in VideoCaptureDevice::GetDeviceNames(). If a singled out device is found, the QTKit list of devices is parsed as well and those with a similar name are added to the "final" list of devices, with a "QTKit" prefix. The VideoCaptureDevice::Name CaptureApiType, only used for Windows devices, is extended to identify if the device is a QTKit or an AVFoundation. Tested via adding an artificial devices to the blacklist, a "Hercules" camera, otherwise innocent. BUG=288562, 347371 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263235

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rsesek@ comments #

Total comments: 2

Patch Set 3 : //static #

Total comments: 12

Patch Set 4 : rsesek@ comments #

Total comments: 5

Patch Set 5 : rsesek@ nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -35 lines) Patch
M media/video/capture/mac/video_capture_device_mac.mm View 1 2 3 4 3 chunks +65 lines, -24 lines 0 comments Download
M media/video/capture/video_capture_device.h View 5 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mcasas
rsesek@, tommi@, PTAL.
6 years, 8 months ago (2014-04-08 19:54:44 UTC) #1
Robert Sesek
This seems like the kind of thing you'd want a unittest for. https://codereview.chromium.org/229063003/diff/40001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm ...
6 years, 8 months ago (2014-04-08 20:16:05 UTC) #2
mcasas
rsesek@ PTAL. Unittest: I thought about it too, scope seems a bit larger than this ...
6 years, 8 months ago (2014-04-09 10:41:29 UTC) #3
tommi (sloooow) - chröme
I am traveling today but can rs lgtm the change fwiw. Can you let vrk@ ...
6 years, 8 months ago (2014-04-09 11:00:18 UTC) #4
Robert Sesek
On 2014/04/09 10:41:29, mcasas wrote: > Unittest: I thought about it too, scope seems a ...
6 years, 8 months ago (2014-04-09 17:51:12 UTC) #5
Robert Sesek
https://codereview.chromium.org/229063003/diff/60001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/60001/media/video/capture/mac/video_capture_device_mac.mm#newcode71 media/video/capture/mac/video_capture_device_mac.mm:71: // static
6 years, 8 months ago (2014-04-10 16:19:38 UTC) #6
mcasas
https://codereview.chromium.org/229063003/diff/60001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/60001/media/video/capture/mac/video_capture_device_mac.mm#newcode71 media/video/capture/mac/video_capture_device_mac.mm:71: On 2014/04/10 16:19:38, rsesek wrote: > // static Done.
6 years, 8 months ago (2014-04-10 16:31:33 UTC) #7
mcasas
6 years, 8 months ago (2014-04-10 16:31:45 UTC) #8
Robert Sesek
https://codereview.chromium.org/229063003/diff/80001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/80001/media/video/capture/mac/video_capture_device_mac.mm#newcode83 media/video/capture/mac/video_capture_device_mac.mm:83: for (NSString* key in capture_devices) { I'd maybe add ...
6 years, 8 months ago (2014-04-10 17:49:10 UTC) #9
mcasas
rsesek@ PTAL. https://codereview.chromium.org/229063003/diff/80001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/80001/media/video/capture/mac/video_capture_device_mac.mm#newcode83 media/video/capture/mac/video_capture_device_mac.mm:83: for (NSString* key in capture_devices) { On ...
6 years, 8 months ago (2014-04-10 20:23:05 UTC) #10
Robert Sesek
LGTM w/ nits. https://codereview.chromium.org/229063003/diff/90001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/90001/media/video/capture/mac/video_capture_device_mac.mm#newcode91 media/video/capture/mac/video_capture_device_mac.mm:91: if (is_any_device_blacklisted) This if isn't necessary, ...
6 years, 8 months ago (2014-04-10 21:18:31 UTC) #11
mcasas
https://codereview.chromium.org/229063003/diff/90001/media/video/capture/mac/video_capture_device_mac.mm File media/video/capture/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/229063003/diff/90001/media/video/capture/mac/video_capture_device_mac.mm#newcode91 media/video/capture/mac/video_capture_device_mac.mm:91: if (is_any_device_blacklisted) On 2014/04/10 21:18:31, rsesek wrote: > This ...
6 years, 8 months ago (2014-04-11 07:31:49 UTC) #12
tommi (sloooow) - chröme
lgtm
6 years, 8 months ago (2014-04-11 09:24:58 UTC) #13
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 8 months ago (2014-04-11 09:45:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/229063003/100001
6 years, 8 months ago (2014-04-11 09:45:58 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 13:54:06 UTC) #16
Message was sent while issue was closed.
Change committed as 263235

Powered by Google App Engine
This is Rietveld 408576698