From 7e46b4a2686c75b121834dc9318a25c3b1b2854c Mon Sep 17 00:00:00 2001 From: Michael Neeley Date: Sat, 4 Jun 2022 10:35:40 -0400 Subject: [PATCH] ffmpeg: replace with -vf and -r example (#8113) --- pages/common/ffmpeg.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ffmpeg.md b/pages/common/ffmpeg.md index 0ad379f8f4..0b92ac1684 100644 --- a/pages/common/ffmpeg.md +++ b/pages/common/ffmpeg.md @@ -7,9 +7,9 @@ `ffmpeg -i {{video.mp4}} -vn {{sound}}.mp3` -- Convert frames from a video or GIF into individual numbered images: +- Save a video as GIF, scaling the height to 1000px and setting framerate to 15: -`ffmpeg -i {{video.mpg|video.gif}} {{frame_%d.png}}` +`ffmpeg -i {{video.mp4}} -vf 'scale=-1:{{1000}}' -r {{15}} {{output.gif}}` - Combine numbered images (`frame_1.jpg`, `frame_2.jpg`, etc) into a video or GIF: