- use
yt-dlp YOUTUBE_URLto download the video - use
ffmpeg -ss HH:MM:SS.xxx -i INPUT.mp4 -t HH:MM:SS.xxx -c copy OUT.mp4to extract duration (-t) from start timestamp-ss - upload on ezgif to crop, add text captions and optimize
yt-dlp YOUTUBE_URL to download the videoffmpeg -ss HH:MM:SS.xxx -i INPUT.mp4 -t HH:MM:SS.xxx -c copy OUT.mp4 to extract duration (-t) from start timestamp -ss