/lf-gadgets

A collection of useful and nifty use cases and configurations for lf.

Primary LanguageRoffGNU General Public License v3.0GPL-3.0

A fork of lf-gadgets with better video thumbnails

For the original lf-gadgets documentation see https://github.com/slavistan/lf-gadgets .

Introduction

I use lf-ueberzug to get a preview of documents in command line which works pretty well for images and PDF files. However, for video files, pretty often I get something like this:

2022-03-26_22-39

Now you'd be excused for thinking that the preview feature is not active in this image. Unfortunately lf-ueberzug by default uses the first frame of the video which is usually completely black. In this fork we use the middle frame of the video instead, which looks much better:

2022-03-26_22-35

Instructions

Installation is pretty much like original lf-ueberzug, however we need ffmpeg for python:

python3 -m pip install ffmpeg-python