File-To-Video-Encoder/tovideo.sh
2022-09-02 12:09:27 -04:00

11 lines
378 B
Bash
Executable file

#!/bin/sh
if ! [ -d "outvideos/" ]; then
mkdir outvideos
fi
if ! [ -d "out/" ]; then
mkdir outvideos
fi
echo "owo"
ffmpeg -r 60 -f image2 -s 600x600 -i in/$1/in%0d.png -vcodec libx264 -profile:v high -bf 2 -g 30 -crf 18 -pix_fmt yuv420p -y outvideos/$1temp.mp4 &> /dev/null
mkdir -p out/$1/
ffmpeg -i outvideos/$1temp.mp4 -vf fps=60/1 -y out/$1/out%0d.png &> /dev/null