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:
- first go to the following path on receiving computer: C:>gstreamer>1.0>x86_>bin
- open cmd there.
- 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…