Gstreamer UDP H264 Streaming

Version Gstreamer 1.10.3

Transmister (Rpi 3)

sudo ionice -c 1 -n 0 nice -20 \
 /opt/gst-installed/bin/gst-launch-1.0 -e v4l2src num-buffers=8000 io-mode=1 blocksize=512 \
 ! video/x-raw, format=GRAY16_LE, width=640, height=512 , framerate=7/1 ! tee name=t ! queue \
 ! videorate ! videoconvert! video/x-raw, format=GRAY16_BE, framerate=1/1 ! pngenc \
 ! multifilesink async=1 location=${RECORD_DIR}/tau2pipe_${TIMESUBFIX}/tau_%05d.png t. ! queue \
 ! videoconvert ! video/x-raw, format=I420, width=640, height=512, framerate=7/1 \
 ! omxh264enc control-rate=variable target-bitrate=2500000 ! rtph264pay config-interval=3 pt=96 \
 ! udpsink port=(####) host=(***).local sync=false

 

Receiver (Windows)

Streaming onto Screen

gst-launch-1.0 -e -v udpsrc port=1235 ! application/x-rtp, payload=96 ! rtpjitterbuffer latency=300 ! rtph264depay ! avdec_h264 ! autovideosink

Streaming and Saving as FLV video

gst-launch-1.0 -v udpsrc port=1235 ! application/x-rtp, payload=96 ! rtpjitterbuffer drop-on-latency=true latency=200 ! rtph264depay  ! video/x-h264 , framerate=7/1 ! avdec_h264 ! video/x-raw , format=I420 , framerate=7/1 ! tee name=t ! queue ! autovideosink sync=false t. ! queue ! video/x-raw , format=I420 , framerate=7/1 ! avenc_flv ! flvmux ! filesink location=%FILELOC%\\Desktop\\Tau2Stream.flv sync=false

 

 

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

Blog at WordPress.com.

Up ↑

%d bloggers like this: