Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created December 21, 2014 19:00
Show Gist options
  • Save peterbe/420521a081f4ecf48109 to your computer and use it in GitHub Desktop.
Save peterbe/420521a081f4ecf48109 to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -fr /tmp/ffmpeg2.2-experiment
mkdir /tmp/ffmpeg2.2-experiment
ffmpeg -ss 00:01:09 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-01.jpg
ffmpeg -ss 00:02:19 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-02.jpg
ffmpeg -ss 00:03:29 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-03.jpg
ffmpeg -ss 00:04:39 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-04.jpg
ffmpeg -ss 00:05:49 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-05.jpg
ffmpeg -ss 00:06:59 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-06.jpg
ffmpeg -ss 00:08:09 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-07.jpg
ffmpeg -ss 00:09:19 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-08.jpg
ffmpeg -ss 00:10:29 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-09.jpg
ffmpeg -ss 00:11:39 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-10.jpg
ffmpeg -ss 00:12:49 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-11.jpg
ffmpeg -ss 00:13:59 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-12.jpg
ffmpeg -ss 00:15:09 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-13.jpg
ffmpeg -ss 00:16:19 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-14.jpg
ls -l /tmp/ffmpeg2.2-experiment
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment