Skip to content

Instantly share code, notes, and snippets.

@daniel-j-h
Created July 9, 2016 22:44
Show Gist options
  • Save daniel-j-h/9e8180c9f666161c1d7e3e38cb762944 to your computer and use it in GitHub Desktop.
Save daniel-j-h/9e8180c9f666161c1d7e3e38cb762944 to your computer and use it in GitHub Desktop.
some of my favorite North by Northwest (http://www.imdb.com/title/tt0053125/) shots, cutting and transcoding to webm
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# https://trac.ffmpeg.org/wiki/Encode/VP8
# https://libav.org/documentation/avconv.html
avconv \
-i nxnw.mp4 \
-c:v libvpx \
-c:a libvorbis \
-ss 00:38:21 \
-t 00:00:09 \
-an \
-sn \
-threads $(nproc) \
-crf 10 \
-b:v 1M \
nxnw-1.webm
avconv \
-i nxnw.mp4 \
-c:v libvpx \
-c:a libvorbis \
-ss 01:06:25 \
-t 00:00:45 \
-an \
-sn \
-threads $(nproc) \
-crf 10 \
-b:v \
1M nxnw-2.webm
avconv \
-i nxnw.mp4 \
-c:v libvpx \
-c:a libvorbis \
-ss 01:46:53 \
-t 00:00:17 \
-an \
-sn \
-threads $(nproc) \
-crf 10 \
-b:v 1M \
nxnw-3.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment