summaryrefslogtreecommitdiff
path: root/bin/decode+edit
blob: 90ec5b09c6c815bf4729e8f5f007d0d28995142e (plain)
  1. #!/bin/sh
  2. # FIXME: Handle audio
  3. set -e
  4. INPUT=../src/omni/show0/earth.mp4
  5. LOGO=../../content/icon_small.png
  6. OUTPUT=../tmp/omni/show0/earth.yuv
  7. HEIGHT=360
  8. mkdir -p $(dirname "$OUTPUT")
  9. # + loop-in-filter trick based on http://video.stackexchange.com/a/16933
  10. ffmpeg -hide_banner -threads auto -y \
  11. -i "$INPUT" \
  12. -i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \
  13. -an \
  14. -f yuv4mpegpipe "$OUTPUT"