adamsgaard.dk

my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log | Files | Refs | README | LICENSE Back to index

commit 612e18e0f93f07412eec46fd695652d75ea808b3
parent f72baab8758e76c9ed00a53cc2314691b665388e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 15 Jun 2020 16:48:21 +0200

Add script for generating video previous and extra formats

Diffstat:
Avideo/convert_all_mp4.sh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/video/convert_all_mp4.sh b/video/convert_all_mp4.sh @@ -0,0 +1,10 @@ +#!/bin/sh +for f in *.mp4; do + ffmpeg -n -i "$f" -vframes 1 -f image2 "${f%.mp4}.jpg" + ffmpeg -n -i "$f" "${f%.mp4}.webm" + ffmpeg -n -i "$f" "${f%.mp4}.ogv" +done + +for f in *.jpg; do + convert "$f" -resize 300 "$f" +done