Use non-deprecated frames option.

Pointed out by JP Mens.
This commit is contained in:
Florian Obser 2023-01-29 13:01:41 +01:00
parent 95858e0dbd
commit 3b37bcafc2

View File

@ -80,11 +80,11 @@ hack around that a bit.
First we use ~ffmpeg~ to create the thumbnails: First we use ~ffmpeg~ to create the thumbnails:
#+begin_src shell #+begin_src shell
for i in *.mp4; do 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 .llgal/my_thump_${i}.jpg
done done
#+end_src #+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 1=), and scale it to 240 pixels wide while keeping the aspect ratio
(=-vf "scale=240:-1"=). We store the thumbnail in the ~.llgal~ (=-vf "scale=240:-1"=). We store the thumbnail in the ~.llgal~
sub-directory, where ~llgal~ stores its own thumbnails and scaled sub-directory, where ~llgal~ stores its own thumbnails and scaled