Transmitting video and save it to a file format using a pi and Gstreamer:

Command on host(Raspberry pi):

gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! ‘video/x-raw,format=I420,width=640,height=480,framerate=30/1’ ! omxh264enc target-bitrate=6500000 control-rate=variable ! tee name=t t. ! queue ! rtph264pay pt=96 ! udpsink host=192.168.XXX.XXX  port=1234 t. ! queue ! avimux ! filesink location =/home/pi

Run this command on putty or pi. 

Command on cmd on receiver end:


  1. first go to the following path on receiving computer: C:>gstreamer>1.0>x86_>bin
  2. open cmd there.
  3. run the following command:

gst-launch-1.0 -v udpsrc port=1234 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false

Now you have finally broadcast  live video from camera and save it in .avi format .

thank you.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Up ↑

%d bloggers like this: