From e98c89067f20750115806e75d14744114ce90100 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sat, 5 Jun 2021 15:24:05 +0800 Subject: [PATCH] bashrc: add vidcat with ffmpeg & imgcat --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index e750de6..f1ed037 100644 --- a/.bashrc +++ b/.bashrc @@ -134,6 +134,10 @@ imgcat() { convert "$@" $EXTRA sixel:- } +vidcat() { + ffmpeg -i "$@" -loglevel warning -vframes 1 -f apng - | imgcat - +} + # application envs # policy: should here even if global like /etc/environments export GPG_TTY=$(tty) -- 2.45.2