What operating system are you using? I'm posting VLC/GIMP instructions for desktops/laptops here, but if you have an iPad or iPhone, for example, there are some interesting inexpensive alternatives.
The method involving VLC works on MacOS, Windows, and Linux, but it also requires GIMP. You use VLC to isolate a sequence in a video and save it as stillframes. Then you use GIMP to build the gif from the frames, set the playback speed, etc., and output the gif file. Here's a quote of the instructions:
To pull just the section of the video you want to make a GIF out of:
Open the video in VLC.
Under View, select "Advanced controls".
Position the playhead about 5-10 seconds before the action you want to record.
Press the red Record button.
Press play on the video.
When you've finished recording the action, press the record button again.
You now have a clip containing just the action you want in your Videos library!
Now that you have the clip you need, it's time to make that GIF! We'll cover the basics of creating a GIF from the video, but once it's in GIMP, there's no limit to what you can do with the video.
To create a GIF from a video file, first trim the video down using the VLC method described above. Then:
Open GIMP. Click Video > Split Video into Frames > Extract Videorange.
Open the video file you created earlier.
Click "Video Range" to preview the video you're importing.
Scrub through the video preview to find the first and last frames of the selection you want.
Enter the first frame number from the preview panel into "From Frame" on the right. Place the last frame number in the "To Frame" box below it.
Ensure that "Create only one multilayer image" is checked. Click OK. This will create a new file window with your animation in it.
(Optional) You can use GIMP to do any editing here, if you're proficient with the app. When you're ready to export, move on.
Select File > Export As.
Navigate to the folder you want to output to. Give the file a name appended with .gif at the end.
Ensure "Loop Forever" is checked. Click "Export."
And you're done! This method may take a little extra work simply because, for the unfamiliar, GIMP's interface can be a bit troublesome, but if you're on a Mac or Linux machine, GIMP is right there by your side.