blob: 2b8233ee5cb13bdcc36b666359b6771b3f26923d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# configure ffmpeg location if not in PATH
FFMPEG=ffmpeg
# configure flags
FFMPEG_FLAGS=""
set -e
cd $(dirname $0)/www/dump/video
ffmpeg() {
set -x
command ${FFMPEG} -threads ${THREADS} ${FFMPEG_FLAGS} "$@"
set +x
}
for f in *.mkv; do
OUT=${f%.mkv}
ffmpeg -i $f -c:v libx264 -preset slower -tune animation -c:a libfdk_aac ${OUT}.mp4
ffmpeg -i $f -c:v libvpx -crf 15 -b:v 1M -c:a copy ${OUT}.webm
ffmpeg -i $f -c:v libtheora -qscale:v 6 -c:a copy ${OUT}.ogv
done
|