Took out -c:v and -c:a which you don't do on gif.

master
Paco Hope 2024-03-18 09:10:45 -04:00
parent 2b972cd24c
commit 7da4d9e816
1 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@ ffmpeg -i input.mov -c:v copy -c:a copy output.mp4
From [blog post](https://dev.to/nabbisen/ffmpeg-convert-video-to-gif-7h8). [Original documentation](https://ffmpeg.org/ffmpeg-all.html#Video-Options)
```shell
ffmpeg -ss <start time> -t <duration> -i input.mp4 -c:v copy -c:a copy -r <framerate> output.mp4
START="01:13:22"
AMOUNT="8"
FPS=10
ffmpeg -ss $START -t $AMOUNT -i input.mp4 -r $FPS output.gif
```