All Projects → occivink → Mpv Gallery View

occivink / Mpv Gallery View

Licence: gpl-2.0
Gallery-view scripts for mpv

Programming Languages

lua
6591 projects
script
160 projects

Projects that are alternatives of or similar to Mpv Gallery View

Deemo
Deemo(古树旋律)曲绘集复刻
Stars: ✭ 32 (-62.35%)
Mutual labels:  gallery
Photo Blog
The Photo Blog Application based on Laravel 5 and Vue.js 2 + Prerender
Stars: ✭ 55 (-35.29%)
Mutual labels:  gallery
Omg Music
Music making, remixing, and collaborating tools for the web
Stars: ✭ 74 (-12.94%)
Mutual labels:  gallery
Yimagepicker
小红书多图剪裁+微信图片选择器+大图预览+图片剪裁(支持圆形剪裁和镂空剪裁),已适配androidQ,借鉴并升级matisse加载内核!超强定制性可轻松实现知乎/马蜂窝/微博等特殊样式!支持跨进程回调!内部结构轻量级,无任何第三方开源库!支持support依赖!
Stars: ✭ 975 (+1047.06%)
Mutual labels:  gallery
Dotfiles
My awesome dotfiles 🚀
Stars: ✭ 47 (-44.71%)
Mutual labels:  mpv
Simple Mpv Webui
A web based user interface with controls for the mpv mediaplayer.
Stars: ✭ 58 (-31.76%)
Mutual labels:  mpv
Collectionviewpaginglayout
a simple but highly customizable paging layout for UICollectionView.
Stars: ✭ 947 (+1014.12%)
Mutual labels:  gallery
Gallerypicker
Gallery Picker allows you to design a custom gallery for image/ video picker in your android projects.
Stars: ✭ 76 (-10.59%)
Mutual labels:  gallery
Imageviewer.swift
An easy to use Image Viewer that is inspired by Facebook
Stars: ✭ 1,071 (+1160%)
Mutual labels:  gallery
Jftui
Jellyfin Terminal User Interface
Stars: ✭ 72 (-15.29%)
Mutual labels:  mpv
Enjoylife
😊开源App项目,每天一张精选倩图、一个精选小视频,一篇知乎美文
Stars: ✭ 43 (-49.41%)
Mutual labels:  gallery
Filemanager Ui
It is the graphical user interface File Manager, regardless of the backend, lets you work with PHP, Python, nodejs or another.
Stars: ✭ 44 (-48.24%)
Mutual labels:  gallery
Wear Gallery
maybe the best gallery on watch (WearOS/Ticwear)
Stars: ✭ 60 (-29.41%)
Mutual labels:  gallery
React Upload Gallery
React for Upload Image Gallery. Drag & Drop, Sortable, Customize.
Stars: ✭ 33 (-61.18%)
Mutual labels:  gallery
Angular Photoswipe
An angular directive for PhotoSwipe image gallery
Stars: ✭ 74 (-12.94%)
Mutual labels:  gallery
React Grid Carousel
React responsive carousel component w/ grid layout
Stars: ✭ 29 (-65.88%)
Mutual labels:  gallery
Flickr Set Get
A simple command line app to download photos from a flickr set
Stars: ✭ 57 (-32.94%)
Mutual labels:  gallery
Github Pages Gallery
A zero dollar solution to host your photo/video gallery online using Github pages and GitHub Actions. No coding necessary.
Stars: ✭ 77 (-9.41%)
Mutual labels:  gallery
Shgalleryview
a Page View styled gallery for iOS that can show Images and videos.
Stars: ✭ 75 (-11.76%)
Mutual labels:  gallery
Mpv Scripts
Scripts I've made or adapted from others
Stars: ✭ 62 (-27.06%)
Mutual labels:  mpv

Playlist view and contact sheet scripts for mpv.

demo

Important

  • Make sure that the thumbnail directory exists for thumbnail generation to work.
  • The default thumbnail directory is probably not appropriate for your system. ~/.mpv_thumbs_dir/ on Unix, %APPDATA%\mpv\gallery-thumbs-dir on Windows. See Configuration for instructions on how to change it.

Installation

Copy everything in scripts/ to your mpv scripts directory.

If you are not interested in the playlist view or contact sheet, respectively remove the playlist-view.lua or contact-sheet.lua files.

You can make multiple copies (or symlinks) of gallery-thumbgen.lua to speed up thumbnail generation, they will register themselves automatically.

Usage

By default, the playlist-view can be opened with g and the contact-sheet with c.

In both you can navigate around using arrow keys or the mouse.

When you activate an item in the playlist-view, it will switch to that file. In the contact sheet, it will seek to that timestamp.

Configuration

Both scripts can be configured through the usual script-opts mechanism of mpv (see its manual). The files contact_sheet.conf and playlist_view.conf in this repository contain a detailed list of options.

Note that both scripts cannot be used at the same time, as they compete for the same resources. If you want to use both, I recommend using the following input.conf bindings:

g script-message contact-sheet-close; script-message playlist-view-toggle
c script-message playlist-view-close; script-message contact-sheet-toggle

To ensure that only one of the scripts is active at a time.

Playlist-view flagging

When the playlist-view is open, you can flag playlist entries (using SPACE by default). Flagged entries are indicated with a small frame. Then, when exiting mpv a text file will be created (default ./mpv_gallery_flagged) containing the filenames of the flagged entries, one per line.

Limitations

Yet another ad-hoc thumbnail library, which is not shared with any other program.

Management of the thumbnails is left to the user. In particular, stale thumbnails (whose file has been (re)moved) are not deleted by the script. This can be fixed by deleting thumbnails which have not been accessed since N days with such a snippet

days=7
min=$((days * 60 * 24))
# run first without -delete to be sure
find ~/.mpv_thumbs_dir/ -maxdepth 1 -type f -amin +$min -delete

Thumbnails are raw bgra, which is somewhat wasteful. With the default settings, a thumbnail uses 81KB (around 13k thumbnails in a GB).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].