mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 16:01:11 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- List hardware transcoding capabilities of your device:
|
- List hardware transcoding capabilities of your device:
|
||||||
|
|
||||||
`gst-inspect-1.0 {{vaapi|nvcodec|...}}`
|
`gst-inspect-1.0 {{va|nvcodec|...}}`
|
||||||
|
|
||||||
- List available container plugins:
|
- List available container plugins:
|
||||||
|
|
||||||
|
|||||||
13
tldr/gst-typefind-1.0
Normal file
13
tldr/gst-typefind-1.0
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# gst-typefind-1.0
|
||||||
|
|
||||||
|
> Find the mime type of a file.
|
||||||
|
> More information: <https://manned.org/gst-typefind-1.0>.
|
||||||
|
|
||||||
|
- Print the mime type of a file:
|
||||||
|
|
||||||
|
`gst-typefind-1.0 {{path/to/file}}`
|
||||||
33
tldr/linux/gst-launch-1.0-pipewiresrc
Normal file
33
tldr/linux/gst-launch-1.0-pipewiresrc
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# gst-launch-1.0 pipewiresrc
|
||||||
|
|
||||||
|
> Read data from a PipeWire node.
|
||||||
|
> More information: <https://github.com/PipeWire/pipewire/tree/master/src/gst>.
|
||||||
|
|
||||||
|
- Listen to the default microphone:
|
||||||
|
|
||||||
|
`gst-launch-1.0 pipewiresrc ! autoaudiosink`
|
||||||
|
|
||||||
|
- Specify node to record and view video in a window:
|
||||||
|
|
||||||
|
`gst-launch-1.0 pipewiresrc target-object={{node_name}} ! autovideosink`
|
||||||
|
|
||||||
|
- Record video into a file:
|
||||||
|
|
||||||
|
`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} pipewiresrc ! videoconvert ! {{x264enc}} ! {{h264parse}} ! {{matroskamux}} ! filesink location={{path/to/file.mkv}}`
|
||||||
|
|
||||||
|
- Record audio into a file:
|
||||||
|
|
||||||
|
`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} pipewiresrc ! {{opusenc}} ! {{oggmux}} ! filesink location={{path/to/file.ogg}}`
|
||||||
|
|
||||||
|
- Record the monitor of a device:
|
||||||
|
|
||||||
|
`gst-launch-1.0 pipewiresrc target-object={{node_name}} stream-properties=props,stream.capture.sink=true ! {{audioconvert ! fakesink}}`
|
||||||
|
|
||||||
|
- Multiplex audio and video into a file:
|
||||||
|
|
||||||
|
`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} pipewiresrc do-timestamp=true ! videoconvert ! {{x264enc}} ! {{h264parse}} ! {{mux}}. pipewiresrc do-timestamp=true ! {{opusenc}} ! {{mux}}. {{matroskamux}} name={{mux}} ! filesink location={{path/to/file.mkv}}`
|
||||||
33
tldr/tty-clock
Normal file
33
tldr/tty-clock
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# tty-clock
|
||||||
|
|
||||||
|
> A customizable terminal-based digital clock.
|
||||||
|
> More information: <https://github.com/xorg62/tty-clock>.
|
||||||
|
|
||||||
|
- Start the clock in the center of the terminal:
|
||||||
|
|
||||||
|
`tty-clock -c`
|
||||||
|
|
||||||
|
- Enable the display of seconds:
|
||||||
|
|
||||||
|
`tty-clock -s`
|
||||||
|
|
||||||
|
- Set the color of the clock using a color code (0-7):
|
||||||
|
|
||||||
|
`tty-clock -C {{color_number}}`
|
||||||
|
|
||||||
|
- Use a custom date format (strftime format):
|
||||||
|
|
||||||
|
`tty-clock -f "{{%A, %B %d}}"`
|
||||||
|
|
||||||
|
- Set a custom refresh delay in seconds (default is 1):
|
||||||
|
|
||||||
|
`tty-clock -d {{seconds}}`
|
||||||
|
|
||||||
|
- Exit the clock (while running):
|
||||||
|
|
||||||
|
`<q>`
|
||||||
Reference in New Issue
Block a user