| 1234567891011121314151617181920212223242526272829 |
- #!/usr/bin/env bash
- set -x
- INPUT="$1"
- shift
- OUTPUT="$1"
- shift
- SPEED="$1"
- shift
- FFMPEG="${FFMPEG-ffmpeg}"
- GOURCE="${GOURCE-gource}"
- [ -z "$SPEED" ] && SPEED=0.05
- GOURCE_OPTS=(
- "--stop-at-end"
- "-s" "$SPEED" "--highlight-users" "--log-format" "custom"
- "-1920x1080"
- "--file-idle-time" "0" "--no-vsync"
- "--key" "--output-ppm-stream" "-" "--output-framerate" "60" "$INPUT"
- "--hide" "bloom,mouse,progress,filenames"
- "--auto-skip-seconds" ".01" "--multi-sampling"
- )
- "$GOURCE" "${GOURCE_OPTS[@]}" |
- "$FFMPEG" -y -r 60 -f image2pipe -vcodec ppm -i - -b:v 10000000 -vcodec libx265 -crf 24 "$OUTPUT"
|