aboutsummaryrefslogtreecommitdiff
path: root/yazi/.config/yazi/plugins/mediainfo.yazi/README.md
blob: 45d04be106b0052ff407c69c52e2a73f9ba3cdcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# mediainfo.yazi

<!--toc:start-->

- [mediainfo.yazi](#mediainfoyazi)
  - [Installation](#installation)
  <!--toc:end-->

This is a Yazi plugin for previewing media files. The preview shows thumbnail
using `ffmpeg` if available and media metadata using `mediainfo`.
Only for yazi >= 0.4

## Installation

Install the plugin:

```bash
ya pack -a boydaihungst/mediainfo
```

Create `~/.config/yazi/yazi.toml` and add:

```toml
[plugin]
prepend_previewers = [
    { mime = "{image,audio,video}/*", run = "mediainfo"},
    { mime = "application/subrip", run = "mediainfo"},
]
```