From 0bc161c20f283d641919d8f369d309d1fc9081b6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 19 Nov 2018 17:34:47 +0100 Subject: Add video_export.sh These are the commands I used to convert the demo video into HTML5-suitable video formats. The commands are copied from guides I found on the net looking for `ffmpeg` HTML5 video conversion. I did add the `-b 275k` setting on the WebM video to sort of match the bitrate I saw on the MP4 video. Otherwise it ends up being horrible quality without the flag, or around 14 Mb with the `-b:v 1M` flag (this version results in ~4 Mb). --- scripts/video_export.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/video_export.sh diff --git a/scripts/video_export.sh b/scripts/video_export.sh new file mode 100644 index 0000000..7313c93 --- /dev/null +++ b/scripts/video_export.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -x + +ffmpeg \ + -i Screencast.mov \ + -f webm \ + -c:v libvpx \ + -b 275k \ + -acodec libvorbis \ + DomeKey-Screencast.webm + +ffmpeg \ + -i Screencast.mov \ + -vcodec h264 \ + -acodec aac \ + -strict \ + -2 \ + DomeKey-Screencast.mp4 -- cgit v1.2.3