From 95f824d5a977aa6454e85b74cfbd5849b9dee07b Mon Sep 17 00:00:00 2001 From: Kornel Date: Thu, 23 May 2024 02:43:17 +0100 Subject: [PATCH] Fix ffmpeg doc Fixes #329 --- README.md | 2 +- src/bin/gifski.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32eb1fa..90eeb1c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ gifski is a command-line tool. If you're not comfortable with a terminal, try th If you have ffmpeg installed, you can use it to stream a video directly to the gifski command by adding `-f yuv4mpegpipe` to `ffmpeg`'s arguments: ```sh -ffmpeg -i video.mp4 -f yuv4mpegpipe | gifski -o anim.gif - +ffmpeg -i video.mp4 -f yuv4mpegpipe - | gifski -o anim.gif - ``` Replace "video.mp4" in the above code with actual path to your video. diff --git a/src/bin/gifski.rs b/src/bin/gifski.rs index 34a6b81..57c847c 100644 --- a/src/bin/gifski.rs +++ b/src/bin/gifski.rs @@ -562,7 +562,7 @@ fn get_video_decoder(ftype: FileType, src: SrcPath, fps: source::Fps, _: Setting The only 'video' format supported at this time is YUV4MPEG2, which can be piped from ffmpeg: - ffmpeg -i "{src}" -f yuv4mpegpipe | gifski -o "{gif}" - + ffmpeg -i "{src}" -f yuv4mpegpipe - | gifski -o "{gif}" - To enable full video decoding you need to recompile gifski from source. https://github.com/imageoptim/gifski