Skip to content

Commit

Permalink
Fix ffmpeg doc
Browse files Browse the repository at this point in the history
Fixes #329
  • Loading branch information
kornelski committed May 23, 2024
1 parent ae988ef commit 95f824d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/bin/gifski.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95f824d

Please sign in to comment.