blob: 088243896dbc60a4aede70ea9af11d4e97ae3580 (
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 \
- "[0:v]scale=-1:$HEIGHT[bg];
- [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
- -map '[v]' \
- -f yuv4mpegpipe "$OUTPUT"
|