gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv ! ffmpegcolorspace ! avimux ! filesink location=whatever.avi