Browse Source

mpv, pw-cat: update page; mpv: add pt_BR translation (#11734)

* mpv: merge file and URL playing examples

* mpv: add screenshot example

* mpv: move speed range to placeholder

* mpv: add pt_BR translation

* mpv: translate or in pt_BR

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* mpv: fix: moving pt_BR translation to common/

* pw-cat: add quality example

* mpv: replace url example with "url"

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* mpv: use English versions of keys in pt_BR

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* mpv, pw-cat: fix verb tenses and use relative path in screenshot

Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
Vitor Henrique 1 year ago
parent
commit
3e9e229f49
3 changed files with 48 additions and 8 deletions
  1. 36 0
      pages.pt_BR/common/mpv.md
  2. 8 8
      pages/common/mpv.md
  3. 4 0
      pages/linux/pw-cat.md

+ 36 - 0
pages.pt_BR/common/mpv.md

@@ -0,0 +1,36 @@
+# mpv
+
+> Um tocador de vídeo/audio baseado no MPlayer.
+> Mais informações: <https://mpv.io>.
+
+- Toca um vídeo ou áudio de uma URL ou arquivo:
+
+`mpv {{url|caminho/para/arquivo}}'`
+
+- Avança/retrocede 5 segundos:
+
+`LEFT <or> RIGHT`
+
+- Avança/retrocede 1 minuto:
+
+`DOWN <or> UP`
+
+- Aumenta ou diminui a velocidade de reprodução em 10%:
+
+`[ <or> ]`
+
+- Captura a imagem atual (salva em `./mpv-shotNNNN.jpg` por padrão):
+
+`s`
+
+- Toca um arquivo em uma velocidade especificada (1 por padrão):
+
+`mpv --speed {{0.01..100}} {{caminho/para/arquivo}}`
+
+- Toca um arquivo usando um perfil definido no arquivo `mpv.conf`:
+
+`mpv --profile {{nome_do_perfil}} {{caminho/para/arquivo}}`
+
+- Mostra a saída da webcam ou de outro dispositivo de entrada de vídeo:
+
+`mpv /dev/{{video0}}`

+ 8 - 8
pages/common/mpv.md

@@ -3,13 +3,9 @@
 > A audio/video player based on MPlayer.
 > More information: <https://mpv.io>.
 
-- Play a video or audio file:
+- Play a video or audio from a URL or file:
 
-`mpv {{path/to/file}}`
-
-- Play a video or audio file from a URL:
-
-`mpv '{{https://www.youtube.com/watch?v=dQw4w9WgXcQ}}'`
+`mpv {{url|path/to/file}}'`
 
 - Jump backward/forward 5 seconds:
 
@@ -23,9 +19,13 @@
 
 `[ <or> ]`
 
-- Play a file at a specified speed (0.01 to 100, default 1):
+- Take a screenshot of the current frame (saved to `./mpv-shotNNNN.jpg` by default):
+
+`s`
+
+- Play a file at a specified speed (1 by default):
 
-`mpv --speed {{speed}} {{path/to/file}}`
+`mpv --speed {{0.01..100}} {{path/to/file}}`
 
 - Play a file using a profile defined in the `mpv.conf` file:
 

+ 4 - 0
pages/linux/pw-cat.md

@@ -7,6 +7,10 @@
 
 `pw-cat --playback {{path/to/file.wav}}`
 
+- Play a WAV file with a specified resampler quality (4 by default):
+
+`pw-cat --quality {{0..15}} --playback {{path/to/file.wav}}`
+
 - Record a sample recording at a different volume level:
 
 `pw-cat --record --volume={{0.1}} {{path/to/file.wav}}`