Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd script for generating video previous and extra formats - adamsgaard.dk - m…
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log
Files
Refs
README
LICENSE
---
commit 612e18e0f93f07412eec46fd695652d75ea808b3
parent f72baab8758e76c9ed00a53cc2314691b665388e
Author: Anders Damsgaard <[email protected]>
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(-)
---
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
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.