How to store the recored video( 1min) in a file using gstreamer

Hi,
i am new to gstreamer. we are using aplais imx6.
we connected the Evaluation board to analog camera Adapter and not connected to any camera .but we are try to recorded video(bluecolour) display that want to store in a file using gstreamer.
we tried this code for recording:
1.gst-launch-1.0 imxv4l2src ! autovideosink.
and tried to save that (bluecolor) video to file using this command
1.gst-launch-1.0 -e videotestsrc ! queue ! vpuenc ! avimux ! filesink location=test.avi
but if it run shows :::: no element =vpuenc
please help from this new to gstreamer 1.0

You can have a look at the available elements using gst-inspect-1.0. The pipeline would be

gst-launch-1.0 -e videotestsrc ! queue ! vpuenc_h264 ! avimux ! filesink location=test.avi

hi,
can i make for only 1 min to record .
after that i playing using this command
gst-launch-1.0 playbin uri=file:///home/root/test.avi
how to make for 1 min only to record

Cancel the pipeline command with Ctrl-C after one minute.

ya i know for particularly i need for 1/2 hour to record how can i do this. like that i am asking sir

This is not possible using command line. If you need fine grained, automatic and explicit control, you need to write your own gstreamer application. Please refer GStreamer Application Development Manual for the same.

If you know the amount of buffer that corresponds to 1/2 hour of your video source, then you can add num-buffer= parameter to videotestsrc
example with imxv4l2videosrc :

gst-launch-1.0 imxv4l2videosrc num-buffers=10 ! videoconvert ! avenc_pgm ! multifilesink location=white%d.pgm sync=true async=false

thankyou for your replay sir.
i am new to gstreamer can u give some documents plz thanks

thx sir.
one more doubt i can send mp4 file from linux host to remote host ie(board) using
scp video.mp4 root@192.168.2.129:///home/root
for vice versa what has to do…

thank you very much…
i connected dvd player to that board but its getting moving how to solve that one link text

From your linux host :

    cd <your directory where you want to store mp4 file>
    sftp root@192.168.2.129
    #here you are connected to your remote board
    cd <your directory where mp4 file is stored>
    get <filename>
    quit

can any one give me the solution please for above post…