Recording video GStreamer Pipeline (C920)

Good Day,

I have a question about recording H264 Video on the beaglebone black using a C920.

So from my research I have attained the following:

  1. Most methods of capture h264 video involve using the capture.c program with the hack that sets an option to H264, which then capture raw H264 frames which are then converted (on another PC to h264 mp4 using gstreamer) or are converted after the raw stream is captured to an mp4 file.

What I need is a way to use gstreamer (get-launch) to do all of the capture and compression to a video file on the fly, just like how it is given in examples like this:
http://www.oz9aec.net/index.php/gstreamer/487-using-the-logitech-c920-webcam-with-gstreamer-12