-
-
Save TurBoss/9a81921cfe29e05ed0cd93ec9a82a32c to your computer and use it in GitHub Desktop.
GStreamer-1.0 personal cheat sheet
This file contains hidden or 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
| # play YUV444 FULL HD file | |
| gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! videoconvert ! autovideosink | |
| # play MP4 FULL HD file | |
| gst-launch-1.0 filesrc location=test.mp4 ! decodebin name=dec ! queue ! videoconvert ! autovideosink dec. ! queue ! audioconvert ! audioresample ! autoaudiosink | |
| # play MP3 | |
| gst-launch-1.0 filesrc location=test.mp3 ! decodebin ! playsink | |
| # play OGG | |
| gst-launch-1.0 filesrc location=test.ogg ! decodebin ! playsink | |
| # play MP3 over UDP + RTP | |
| # sender: | |
| # receiver: | |
| gst-launch-1.0 -v udpsrc port=6969 caps="application/x-rtp, media=(string)audio, format=(string)S32LE, layout=(string)interleaved, clock-rate=(int)44100, channels=(int)2, payload=(int)0" ! rtpL16depay ! playsink | |
| #play webcam video over UDP with h264 coding | |
| #sender | |
| gst-launch-1.0 v4l2src ! 'video/x-raw, width=640, height=480, framerate=30/1' ! videoconvert ! x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink host=192.168.1.140 port=1234 | |
| #receiver | |
| gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! avdec_h264 ! videoconvert ! xvimagesink sync=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment