From 3b37bcafc2fca0da9063f2f0f3bbbcccafd25faf Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Sun, 29 Jan 2023 13:01:41 +0100 Subject: [PATCH] Use non-deprecated frames option. Pointed out by JP Mens. --- llgal.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llgal.org b/llgal.org index 0728f66..0b0e06e 100644 --- a/llgal.org +++ b/llgal.org @@ -80,11 +80,11 @@ hack around that a bit. First we use ~ffmpeg~ to create the thumbnails: #+begin_src shell for i in *.mp4; do - ffmpeg -ss 1 -i ${i} -vframes 1 -vf "scale=240:-1" \ + ffmpeg -ss 1 -i ${i} -frames:v 1 -vf "scale=240:-1" \ .llgal/my_thump_${i}.jpg done #+end_src -We grab one frame (=-vframes 1=), one second into the video (=-ss +We grab one frame (=-frames:v 1=), one second into the video (=-ss 1=), and scale it to 240 pixels wide while keeping the aspect ratio (=-vf "scale=240:-1"=). We store the thumbnail in the ~.llgal~ sub-directory, where ~llgal~ stores its own thumbnails and scaled