Last active
February 7, 2024 10:26
-
-
Save esrever10/7d39fe2d4163c5b2d7006495c3c911bb to your computer and use it in GitHub Desktop.
gstreamer send and receive h264 rtp stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# linux send h264 rtp stream: | |
gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000 | |
# Macos send h264 rtp stream: | |
gst-launch-1.0 -v avfvideosrc capture-screen=true ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000 | |
# receive h264 rtp stream: | |
gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink |
can anyone help me to generate rtp stream using decklink video source ?
Fahad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow these steps to generate a sdp source
a) gstreamer source stream append a -v as follows
b) This will give verbose output like one below
c) Use the information above to make your sdp file.
Example sdp file from above is
d) Note that in the SDP file the IP address is that of the server. In the server gstreamer code, the IP address is that of the client