Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Created February 25, 2020 08:40
Show Gist options
  • Save matthiasg/06f44d9b6f94505849f091653dd1b767 to your computer and use it in GitHub Desktop.
Save matthiasg/06f44d9b6f94505849f091653dd1b767 to your computer and use it in GitHub Desktop.
GStreamer Notes for WebRTC with Windows Camera Source
> gst-device-monitor-1.0.exe
   
   
   ...
    
Device found:

	name  : 00 Pro Capture AIO
	class : Video/Source
	caps  : video/x-raw, format=(string)YUY2, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)YUYV, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)UYVY, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)NV12, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)I420, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)YV12, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)v308, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)IYU2, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)v408, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)v410, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)Y410, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)BGR, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	        video/x-raw, format=(string)BGRx, width=(int)[ 64, 2048 ], height=(int)[ 64, 2880 ], framerate=(fraction)[ 1/1, 200/1 ], pixel-aspect-ratio=(fraction)12/11;
	gst-launch-1.0 ksvideosrc device-path="\\\\\?\\pci\#ven_1cd7\&dev_0002\&subsys_00000001\&rev_01\#6\&1f00db2a\&0\&00080038\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\video" ! ...


  ...

gst-launch-1.0 -v ksvideosrc device-path="\\\\\?\\pci\#ven_1cd7\&dev_0002\&subsys_00000001\&rev_01\#6\&1f00db2a\&0\&00080038\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\video" ! video/x-raw,format=YUY2,width=1920,height=1080 ! videoconvert!autovideosink

gst-launch-1.0 -v ksvideosrc device-index=1 ! video/x-raw,format=YUY2,width=1920,height=1080 ! videoconvert!autovideosink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment