commit a400c5cd355ee1d2ea6ed2dac62d2e4ae1157803
parent a95710947996e0628e90002589b6837e75601145
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 26 Feb 2019 15:48:04 +0100
Use mpv to show video comments as ranger preview
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/links/.config/ranger/scope.sh b/links/.config/ranger/scope.sh
@@ -56,6 +56,9 @@ if [ "$preview_images" = "True" ]; then
# Image preview for video, disabled by default.:
###video/*)
### ffmpegthumbnailer -i "$path" -o "$cached" -s 0 && exit 6 || exit 1;;
+ # Image preview for video, disabled by default.:
+ video/*)
+ mpv --frames=0 "$path" | tail -n +5 && exit 0 || exit 1;;
esac
fi