Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Created October 28, 2014 06:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jetsonhacks/1d734be96b4572618921 to your computer and use it in GitHub Desktop.
Save jetsonhacks/1d734be96b4572618921 to your computer and use it in GitHub Desktop.
Gstreamer RTSP H.264 Receiver
#!/bin/sh
# NVIDIA Jetson TK1
# Get rtsp stream from network, decode and display
SOURCE=<IP ADDRESS OF MACHINE, e.g. 10.10.10.10>
#VIDEO Capabilities of the receiver
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
TCP_VIDEO_CAPS="application/x-rtp"
VIDEO_SINK="videoconvert ! xvimagesink sync=false"
TCPSRC="tcpclientsrc host=$SOURCE port=5000"
VIDEO_DEC="h264parse ! omxh264dec"
#show gst-launch on the command line; can be useful for debugging
echo gst-launch-1.0 -vvv \
$TCPSRC ! tsdemux ! $VIDEO_DEC ! $VIDEO_SINK
gst-launch-1.0 -vvv \
$TCPSRC ! tsdemux ! $VIDEO_DEC ! $VIDEO_SINK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment