After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752867 - avfvideosrc: external session
avfvideosrc: external session
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Mac OS
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-25 17:38 UTC by Ilya Konstantinov
Modified: 2018-11-03 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ilya Konstantinov 2015-07-25 17:38:59 UTC
I've implemented a 'session' property which allows both:
 - getting the internal AVCaptureSession used by avfvideosrc
 - giving avfvideosrc an external (already inited) AVCaptureSession; in such case, it avoids configuration, startRunning and stopRunning, assuming it'll be done externally

See my commit (which I'm dogfooding on iOS and OS X for the past 2 months):
https://github.com/ikonst/gst-plugins-bad/commit/dfd399ae3c33756434ff5708d73b5585b71cc79c

It's useful for attaching additional AVCaptureOutputs to the session, externally to GStreamer.

One thing it's essential for, is to use AVCaptureVideoPreviewLayer, which is a high performance video primitive on OS X and iOS which can display a preview of the video input. It's a standard UI element, whose composition is performed by the system (out of process) and has better performance than any other option.

An alternative to support AVVideoCapturePreviewLayer specifically, which could be also nice, is to add a "preview-layer" property, accepting an AVVideoCapturePreviewLayer whose 'session' property will be set once we initialize the session.
Comment 1 Ilya Konstantinov 2015-07-25 17:40:12 UTC
@Robert - I don't think any RTC solution on iOS will be complete without this :)
Comment 2 GStreamer system administrator 2018-11-03 13:38:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/286.