#!/bin/bash
set -e

IMAGES="/home/zoox/data/raw_img/%*.ppm"
OUTPUT="/home/zoox/data/raw_img/video_raw.mov"

bazel build -c opt --config=cuda third_party/ffmpeg:ffmpeg_tool

./bazel-bin/third_party/ffmpeg/ffmpeg_tool \
  -i "${IMAGES}" \
  -vcodec rawvideo \
  -pix_fmt rgb24 \
  -framerate 14 \
  "${OUTPUT}"
