Video transmission by using pi and usb camera with GStreamer

Connection code:

At host computer:

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 ! rtph264pay pt=96 ! udpsink host=192.168.XXX.XXX  port=1234

run this on raspberry pi on which camera is connected or putty.

 

At Receiver end:

Steps:

  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 video live from camera by using raspberry pi…

thank you.

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: