Last active
May 12, 2021 20:47
-
-
Save hmahadik/4cbae47c2e7de2f84472cfe066a8f349 to your computer and use it in GitHub Desktop.
Misc gstreamer pipelines
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
# i.MX 8M Plus | |
# USB camera h264 RTP stream | |
# Sending | |
gst-launch-1.0 -v v4l2src ! video/x-h264,width=1920,height=1080,framerate=30/1 ! queue ! vpudec ! queue ! clockoverlay ! queue ! vpuenc_h264 ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.1.214 port=5000 sync=false | |
# Receiving | |
gst-launch-1.0.exe -vvv udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, payload=(int)96" ! rtph264depay ! decodebin ! autovideosink | |
# Convert image sequence (.jpg files) into an mkv | |
gst-launch-1.0 multifilesrc location="%d.jpg" index=0 ! image/jpeg,width=1920,height=1080,framerate=25/1 ! jpegdec ! videoconvert ! videorate ! queue ! vpuenc_h264 ! h264parse ! matroskamux ! filesink location="2220_imx8mp.mkv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment