Jump to content



From the album:


· 2 images
  • 2 images
  • 1 image comment

Recommended Comments

Скрытый текст


rem длительность анимации в секундах
set to=4
set infile=glad2.avi
set outfile=glad2.gif
set fps=8
rem размеры итогового gif
set scale=512:592
rem "вырезка" из кадра ширина:высота:смещение от левой стороны:смещение от верха
set crop=crop=512:592:80:18

%ffmpeg% -y -ss 38 -t %to% -i %infile% -vf %crop%,fps=%fps%,scale=%scale%:flags=lanczos,palettegen %infile%.palette.png
%ffmpeg% -y -ss 38 -t %to% -i %infile% -i %infile%.palette.png -filter_complex "%crop%,fps=%fps%,scale=%scale%:flags=lanczos[x];[x][1:v]paletteuse" %outfile%


... если вдруг кому интересно как это делается.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...