mirror of
https://github.com/matthew1000/gstreamer-cheat-sheet.git
synced 2024-06-10 09:19:26 +00:00
1.7 KiB
1.7 KiB
Test streams (GStreamer command-line cheat sheet)
### Display a test pattern
gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink
This should display the test pattern in a window, that looks a bit like this:
Colons can be used to align columns.
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
Markdown | Less | Pretty |
---|---|---|
Still | renders |
nicely |
1 | 2 | 3 |
There are multiple test patterns available, such as
For the full list of patterns, see https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videotestsrc.html
### Listen to a test audio (beep)
gst-launch-1.0 audiotestsrc ! audioconvert ! autoaudiosink
Combine both the test pattern and test audio:
gst-launch-1.0 audiotestsrc ! autoaudiosink videotestsrc ! autovideosink