mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
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:
@@ -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}}`
|
||||
Reference in New Issue
Block a user