Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipefacundes/mpv_thumbnail_script
A Lua script to display preview thumbnails when hovering over the seekbar, without any external dependencies . Um Lua script para exibir miniaturas de visualização ao passar o mouse sobre a barra de busca, sem nenhuma dependência externa
https://github.com/felipefacundes/mpv_thumbnail_script
cropped-images cropping cropping-images ffmpeg ffmpeg-gui ffmpeg-player lua mpv mpv-config mpv-easy-player mpv-examples mpv-osc mpv-player mpv-script mpv-scripts screenshot thumbnail thumbnail-generator thumbnails
Last synced: about 2 months ago
JSON representation
A Lua script to display preview thumbnails when hovering over the seekbar, without any external dependencies . Um Lua script para exibir miniaturas de visualização ao passar o mouse sobre a barra de busca, sem nenhuma dependência externa
- Host: GitHub
- URL: https://github.com/felipefacundes/mpv_thumbnail_script
- Owner: felipefacundes
- License: gpl-3.0
- Created: 2020-10-30T00:05:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-01T20:53:38.000Z (about 4 years ago)
- Last Synced: 2024-11-20T20:39:07.025Z (2 months ago)
- Topics: cropped-images, cropping, cropping-images, ffmpeg, ffmpeg-gui, ffmpeg-player, lua, mpv, mpv-config, mpv-easy-player, mpv-examples, mpv-osc, mpv-player, mpv-script, mpv-scripts, screenshot, thumbnail, thumbnail-generator, thumbnails
- Language: Lua
- Homepage: https://felipefacundes.github.io/mpv_thumbnail_script/
- Size: 2.83 MB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - thumbnail_script - Shows preview thumbnails in the seekbar. (On Screen Controller)
README
# `mpv_thumbnail_script.lua`
### A Lua script to display preview thumbnails when hovering over the seekbar, without any external dependencies
### Um Lua script para exibir miniaturas de visualização ao passar o mouse sobre a barra de busca, sem nenhuma dependência externa
[![](docs/mpv_thumbnail_script.gif "Thumbnail preview for Sintel (2010) on mpv's seekbar")](NULL)
*(You might also be interested in [`PlayOnGit`](https://github.com/felipefacundes/PlayOnGit-en))*
*(Você também pode estar interessado em [`PlayOnGit`](https://github.com/felipefacundes/PlayOnGit))*
----
`mpv_thumbnail_script.lua` is a script/replacement OSC for [mpv](https://github.com/mpv-player/mpv), to display preview thumbnails when hovering over the seekbar, without any external dependencies [1](#Footnotes), cross-platform-ly [2](#Footnotes)!
`mpv_thumbnail_script.lua` é um script para substituição OSC no [mpv](https://github.com/mpv-player/mpv), para exibir miniaturas de visualização ao passar o mouse sobre a barra de busca, sem quaisquer dependências externas [1](#Footnotes), plataforma-cruzada-ly [2](#Footnotes)!
----
mpv alone does not support generating thumbnails for a preview in the seeking bar ( seekbar ). Bothersome!
However, we can forget external ependencies by calling on mpv itself to use the the built-in [encoding features](https://mpv.io/manual/master/#encoding). Bam! Faster thumbnail generation
mpv por si só não suporta gerar miniaturas para uma pré visualização na barra de busca .
No entanto, podemos esquecer as dependências externas chamando o próprio mpv para usar os [recursos de codificação integrados](https://mpv.io/manual/master/#encoding). Pronto! Agora será capas de gerar miniaturas .
----
Create a file called `mpv_thumbnail_script.conf` inside your mpv's `lua-settings` directory.
For example:
* Linux/Unix/Mac: `~/.config/mpv/lua-settings/mpv_thumbnail_script.conf`
* Windows: `%APPDATA%\Roaming\mpv\lua-settings\mpv_thumbnail_script.conf`You can grab an example config [from HERE](https://raw.githubusercontent.com/felipefacundes/mpv_thumbnail_script/main/mpv/lua-settings/mpv_thumbnail_script.conf).
See the [Files section](https://mpv.io/manual/master/#files) in mpv's manual for more info.
Crie um arquivo chamado `mpv_thumbnail_script.conf` dentro do diretório `lua-settings` em seu diretório `mpv`.
Por exemplo:
* Linux/Unix/Mac: `~/.config/mpv/lua-settings/mpv_thumbnail_script.conf`
* Windows: `%APPDATA%\Roaming\mpv\lua-settings\mpv_thumbnail_script.conf`Você pode pegar um exemplo de configuração [AQUI](https://raw.githubusercontent.com/felipefacundes/mpv_thumbnail_script/main/mpv/lua-settings/mpv_thumbnail_script.conf).
Veja a [Seção Arquivos](https://mpv.io/manual/master/#files) no manual do mpv para mais informações.
----
## Script installation and practical use
You can use the template. Already ready. Just clone the repository:
```shell
git clone https://github.com/felipefacundes/mpv_thumbnail_script
```* Linux/Unix/Mac: After cloning just copy the entire `mpv` folder into `~/.config` folder:
```shell
cd mpv_thumbnail_script && cp -rf mpv ~/.config
```* Windows: copy the mpv folder to `%APPDATA%\Roaming\`
## Instalação e uso prático do script
Você poderá usar o modelo. Já pronto. Basta clonar o repositório:
```shell
git clone https://github.com/felipefacundes/mpv_thumbnail_script
```* Linux/Unix/Mac: Após a clonagem, basta copiar toda a pasta `mpv` para a pasta`~/.config`:
```shell
cd mpv_thumbnail_script && cp -rf mpv ~/.config
```* Windows: copie a pasta mpv em `%APPDATA%\Roaming\`
----
## Change the Lua script (optional)
You can change the script in Lua by following these guidelines [`string.format()`](http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
## Alterar o Lua script (opcional)
Você pode alterar o script em Lua seguindo essas orientações [`string.format()`](http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
----
#### Footnotes
1You *may* need to add `mpv[.exe]` to your `PATH`.
2Developed & tested on Windows and Linux (Ubuntu), but it *should* work on Mac and whatnot as well, if 1 has been taken care of.
1Você *pode* precisar adicionar `mpv [.exe]` ao seu `PATH`.
2Desenvolvido e testado no Windows e Linux (ArchLinux), mas *deve* funcionar no Mac e outros sistemas, se o 1 tiver sido cuidado.
----
Se você realmente gosta disso, pode me doar via [`PayPal`](https://www.paypal.com/donate/?hosted_button_id=REU2UNGXLQQPG).
If you really like it, you can pay me with [`PayPal`](https://www.paypal.com/donate/?hosted_button_id=REU2UNGXLQQPG).