blob: 90ec5b09c6c815bf4729e8f5f007d0d28995142e (
plain)
- #!/bin/sh
- # FIXME: Handle audio
- set -e
- INPUT=../src/omni/show0/earth.mp4
- LOGO=../../content/icon_small.png
- OUTPUT=../tmp/omni/show0/earth.yuv
- HEIGHT=360
- mkdir -p $(dirname "$OUTPUT")
- # + loop-in-filter trick based on http://video.stackexchange.com/a/16933
- ffmpeg -hide_banner -threads auto -y \
- -i "$INPUT" \
- -i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \
- -an \
- -f yuv4mpegpipe "$OUTPUT"
|