gst-launch-1.0-capsfilter: add page (#21753)

* Create gst-launch-1.0-capsfilter.md

* Apply suggestions from code review

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>

* Update gst-launch-1.0-capsfilter.md

---------

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
Managor
2026-04-01 01:04:39 +03:00
committed by GitHub
parent 15f35191e3
commit 62520221c6
+20
View File
@@ -0,0 +1,20 @@
# gst-launch-1.0 capsfilter
> Filter pipeline capabilities.
> More information: <https://gstreamer.freedesktop.org/documentation/coreelements/capsfilter.html>.
- Filter to only allow greyscale format:
`gst-launch-1.0 {{videotestsrc}} ! capsfilter caps=video/x-raw,format=GRAY8 ! {{videoconvert ! autovideosink}}`
- Do the same but in shortform:
`gst-launch-1.0 {{videotestsrc}} ! video/x-raw,format=GRAY8 ! {{videoconvert ! autovideosink}}`
- Limit video capabilities to specific dimensions:
`gst-launch-1.0 {{videotestsrc}} ! video/x-raw,width={{640}},height={{480}} ! {{videoconvert ! autovideosink}}`
- Specify a specific framerate:
`gst-launch-1.0 {{videotestsrc}} ! video/x-raw,framerate={{30}}/1 ! {{videoconvert ! autovideosink}}`