blob: d0fa0b460c42068e14d3913f1de6ffd438dc631b (
plain)
- #!/bin/sh
- set -e
- ITERATIONS=${1-1}
- HEIGHT=360
- MOVIE=../src/omni/show0/earth.mp4
- LOGO=../../content/icon_small.png
- TMPMOVIE=../tmp/omni/show0/earth.yuv
- mkdir -p $(dirname "$TMPMOVIE")
- # based on http://video.stackexchange.com/a/16933
- ffmpeg -threads auto -y \
- -f lavfi -i "movie=filename=$MOVIE:loop=$ITERATIONS, setpts=N/(FRAME_RATE*TB), scale=-1:$HEIGHT" \
- -i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \
- -an \
- -f yuv4mpegpipe "$TMPMOVIE"
|