Skip to content

Instantly share code, notes, and snippets.

@murano500k
Forked from jetsonhacks/gExampleClient.sh
Created September 1, 2017 07:39
Show Gist options
  • Select an option

  • Save murano500k/232727306b1fa3380d2f64d209d7c1a6 to your computer and use it in GitHub Desktop.

Select an option

Save murano500k/232727306b1fa3380d2f64d209d7c1a6 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