ffmpeg -ss 00:22:10 -i "Young.Sheldon.S05E21.mkv" -vf "fps=10,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -t 00:00:04 "george_lost.gif" If you want to extract the same timestamp from all of Season 5 (e.g., all cold opens), use a loop:
ffprobe -v quiet -print_format json -show_format -show_streams "Young.Sheldon.S05E21.mkv" To reduce file size for mobile (e.g., from 2GB to 300MB): young sheldon s05e21 ffmpeg
ffmpeg -i "Young.Sheldon.S05E21.mkv" -ss 00:08:00 -t 00:01:30 -vn -acodec mp3 "sheldon_pipe_speech.mp3" ffmpeg -ss 00:22:10 -i "Young
ffmpeg -i "Young.Sheldon.S05E21.mkv" -ss 00:12:45.500 -t 00:00:45 -c:v libx264 -c:a aac "missy_precise.mp4" all cold opens)
for f in *S05E*.mkv; do ffmpeg -ss 00:01:30 -i "$f" -t 00:01:00 -c copy "clips/${f}_intro.mkv" done Check episode encoding details before processing: