IN_PATH="save/upr_vimeo_exp0_upr_original/output/demo/" for entry in "$IN_PATH"* do if [[ ${entry} != *"flow" ]];then echo $entry OUT_PATH="${entry}/" ffmpeg -framerate 120 -pattern_type glob -i "${OUT_PATH}*.png" -c:v libx265 -qp 8 -pix_fmt yuv420p ${entry}_120fps.mp4 fi done