tAdd script for generating video previous and extra formats - adamsgaard.dk - my academic webpage
(HTM) git clone git://src.adamsgaard.dk/adamsgaard.dk
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 612e18e0f93f07412eec46fd695652d75ea808b3
(DIR) parent f72baab8758e76c9ed00a53cc2314691b665388e
(HTM) 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:
A video/convert_all_mp4.sh | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/video/convert_all_mp4.sh b/video/convert_all_mp4.sh
t@@ -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