mov to git

Published by onesixx on

1단계: 팔레트 생성

ffmpeg -i input.mov -vf “fps=10,scale=480:-1:flags=lanczos,palettegen” palette.png

2단계: 팔레트 사용해 GIF 생성

ffmpeg -i input.mov -i palette.png -filter_complex “fps=10,scale=480:-1:flags=lanczos[x];[x][1:v]paletteuse” output.gif

ffmpeg -ss 00:00:02 -t 4 -i input.mov -vf “fps=7,scale=360:-1:flags=lanczos,palettegen” palette.png
ffmpeg -ss 00:00:02 -t 4 -i input.mov -i palette.png -filter_complex “fps=7,scale=360:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=5” output.gif

-ss 00:00:02

  • Start time (시작 지점)
  • 영상의 2초 위치부터 변환을 시작하라는 뜻

예: -ss 00:00:10 → 10초 지점부터 시작


-t 4

  • Duration (지속 시간)
  • 총 4초 길이만 추출하라는 뜻

즉, 시작점(2초)에서부터 4초 동안 → 2초 ~ 6초 구간만 변환

Categories: Tool-SW

onesixx

Blog Owner

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x