Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.