Skip to content

Instantly share code, notes, and snippets.

@peterbe

peterbe/ffmpeg2.sh

Created Dec 19, 2014
Embed
What would you like to do?
#!/bin/bash
rm -fr /tmp/ffmpeg2-experiment
mkdir /tmp/ffmpeg2-experiment
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:01:09 -vframes 1 /tmp/ffmpeg2-experiment/screencap-01.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:02:19 -vframes 1 /tmp/ffmpeg2-experiment/screencap-02.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:03:29 -vframes 1 /tmp/ffmpeg2-experiment/screencap-03.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:04:39 -vframes 1 /tmp/ffmpeg2-experiment/screencap-04.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:05:49 -vframes 1 /tmp/ffmpeg2-experiment/screencap-05.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:06:59 -vframes 1 /tmp/ffmpeg2-experiment/screencap-06.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:08:09 -vframes 1 /tmp/ffmpeg2-experiment/screencap-07.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:09:19 -vframes 1 /tmp/ffmpeg2-experiment/screencap-08.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:10:29 -vframes 1 /tmp/ffmpeg2-experiment/screencap-09.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:11:39 -vframes 1 /tmp/ffmpeg2-experiment/screencap-10.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:12:49 -vframes 1 /tmp/ffmpeg2-experiment/screencap-11.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:13:59 -vframes 1 /tmp/ffmpeg2-experiment/screencap-12.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:15:09 -vframes 1 /tmp/ffmpeg2-experiment/screencap-13.jpg
ffmpeg -i https://d3fenhwk93s16g.cloudfront.net/3p5i5h/mp4.mp4?t=1419010744549462b8b9fdb -ss 00:16:19 -vframes 1 /tmp/ffmpeg2-experiment/screencap-14.jpg
ls -l /tmp/ffmpeg2-experiment
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment