diff options
author | Teddy Wing | 2018-11-19 17:34:47 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-19 17:34:47 +0100 |
commit | 0bc161c20f283d641919d8f369d309d1fc9081b6 (patch) | |
tree | 5eda851326c22469f7b760ad80dbe315c0726d61 | |
parent | 74dc8dc04d31b26987e510941472ab239c1af31f (diff) | |
download | dome-key-web-0bc161c20f283d641919d8f369d309d1fc9081b6.tar.bz2 |
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).
-rw-r--r-- | scripts/video_export.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |