An anonymous object is returned that contains the selected MediaFrameSourceGroup and the MediaFrameSourceInfo for each color camera. A Linq query is used to find a source group that contains two color cameras, one on the front panel and one on the back.
Each returned MediaFrameSourceGroup has a list of MediaFrameSourceInfo objects that describes each frame source in the group. The MediaFrameSourceGroup.FindAllAsync method returns all source groups available on the current device. The set of available frame source groups is different for each device, so the first step in this example is to get the list of available frame source groups and finding one that contains the necessary cameras for the scenario, which in this case requires two color cameras. Find available sensor groupsĪ MediaFrameSourceGroup represents a collection of frame sources, typically cameras, that can be accessed simulataneously. The rest of this article will walk you through the steps of recording video from two color cameras to a single file with multiple video tracks. The video streams that are encoded in this operation must be included in a single MediaFrameSourceGroup which specifies a set of cameras on the current device that can be used at the same time.įor information on using MediaFrameSourceGroup with the MediaFrameReader class to enable real-time computer vision scenarios that use multiple cameras, see Process media frames with MediaFrameReader. This enables you to encode multiple streams simultaneously to a single file.
Starting with RS3, you can specify multiple VideoStreamDescriptor objects for a single MediaEncodingProfile.
#RECORD MULTIPLE USB CAMERAS SIMULTANEOUSLY FOR 3D HOW TO#
This article shows you how to capture video from multiple sources simultaneously to a single file with multiple embedded video tracks.