(More like a note to self this.)
Load Video4Linux driver:
sudo modprobe bcm2835-v4l2
Grab some video into Matroska container:
gst-launch-1.0 v4l2src ! video/x-h264,framerate=30/1 ! h264parse ! matroskamux ! filesink location=test.mkv
In Full HD:
gst-launch-1.0 v4l2src !
video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse !
matroskamux ! filesink location=test.mkv