Skip to content

boydaihungst/mediainfo.yazi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mediainfo.yazi

This is a Yazi plugin for previewing media files. The preview shows thumbnail using ffmpeg if available and media metadata using mediainfo.

Important

Minimum version: yazi v25.2.7.

Preview

  • Video

video

  • Audio file with cover

audio_with_cover_picture

  • Images

image

  • Subtitle

subrip

  • There are more extensions which are supported by mediainfo. Just add file's MIME type to previewers, preloaders.

Installation

Install the plugin:

Important

mediainfo use video, image, magick plugins behind the scene to render preview image, song cover. So you can remove those 3 plugins from preloaders and previewers sections in yazi.coml.

If you have cache problem, run this cmd, and follow the tips: yazi --clear-cache

ya pack -a boydaihungst/mediainfo

Config folder for each OS: https://yazi-rs.github.io/docs/configuration/overview Create .../yazi/yazi.toml and add:

[plugin]
  prepend_preloaders = [
    # Replace magick, image, video with mediainfo
    { mime = "{audio,video,image}/*", run = "mediainfo" },
    { mime = "application/subrip", run = "mediainfo" },
  ]
  prepend_previewers = [
    # Replace magick, image, video with mediainfo
    { mime = "{audio,video,image}/*", run = "mediainfo"},
    { mime = "application/subrip", run = "mediainfo" },
  ]
  # There are more extensions which are supported by mediainfo.
  # Just add file's MIME type to `previewers`, `preloaders` above.
  # https://mediaarea.net/en/MediaInfo/Support/Formats

Custom theme

Using the same style with spotter Read more: sxyazi/yazi#2391

Edit or add yazi/theme.toml:

[spot]
# Section header style.
# Example: Video, Text, Image,... with green color in preview images above
title = { fg = "green" }

# Value style. Currently only support nightly.
# Example: Format: FLAC with blue color in preview images above
tbl_col = { fg = "blue" }

About

Yazi plugin for previewing media files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%