From 3e9e229f49db1764bd6de9a7292a6d1b1ea4a8a6 Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Sun, 17 Dec 2023 01:46:32 -0300 Subject: [PATCH] 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 * mpv: use English versions of keys in pt_BR Co-authored-by: K.B.Dharun Krishna * mpv, pw-cat: fix verb tenses and use relative path in screenshot Co-authored-by: Isaac Vicente --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna Co-authored-by: Isaac Vicente --- pages.pt_BR/common/mpv.md | 36 ++++++++++++++++++++++++++++++++++++ pages/common/mpv.md | 16 ++++++++-------- pages/linux/pw-cat.md | 4 ++++ 3 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 pages.pt_BR/common/mpv.md diff --git a/pages.pt_BR/common/mpv.md b/pages.pt_BR/common/mpv.md new file mode 100644 index 000000000..7a2d28dd9 --- /dev/null +++ b/pages.pt_BR/common/mpv.md @@ -0,0 +1,36 @@ +# mpv + +> Um tocador de vídeo/audio baseado no MPlayer. +> Mais informações: . + +- Toca um vídeo ou áudio de uma URL ou arquivo: + +`mpv {{url|caminho/para/arquivo}}'` + +- Avança/retrocede 5 segundos: + +`LEFT RIGHT` + +- Avança/retrocede 1 minuto: + +`DOWN UP` + +- Aumenta ou diminui a velocidade de reprodução em 10%: + +`[ ]` + +- 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}}` diff --git a/pages/common/mpv.md b/pages/common/mpv.md index 0c5fbda52..e4551eb9d 100644 --- a/pages/common/mpv.md +++ b/pages/common/mpv.md @@ -3,13 +3,9 @@ > A audio/video player based on MPlayer. > More information: . -- 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 @@ `[ ]` -- 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): -`mpv --speed {{speed}} {{path/to/file}}` +`s` + +- Play a file at a specified speed (1 by default): + +`mpv --speed {{0.01..100}} {{path/to/file}}` - Play a file using a profile defined in the `mpv.conf` file: diff --git a/pages/linux/pw-cat.md b/pages/linux/pw-cat.md index 5eb530d17..f00428ecf 100644 --- a/pages/linux/pw-cat.md +++ b/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}}`