#!/bin/bash

set -euxo pipefail 

mkdir -p tmpdl
cd tmpdl
yt-dlp $1

ffmpeg -i * -vf "scale=800x480" -r $2 ../output.mp4

rm -rf tmpdl