Also I think there is a command to use the camera but I really don't remember....
gst-launch v4l2camsrc device=/dev/video1 num-buffers=10 ! dspjpegenc ! filesink location=/home/user/MyDocs/frontcam.jpg