I installed FFmpeg on my XAMPP for converting stream of video to GIF images.
I used the below code but it doesn't work.
ffmpeg -ss 00:00:05.0 -t 00:00:10.0 -i input.wmv -acodec copy -vcodec copy -async 1 output.gif
Your problem is: You cannot simply copy the input video and audio streams to a GIF. GIFs need to be encoded differently. Basically you're telling FFmpeg to actually not convert anything.
Try this instead:
Tip: "It doesn't work" is not a specific enough problem description. Please always include the full, uncut FFmpeg command output when asking FFmpeg questions.