#!/bin/bash
echo "Bash version ${BASH_VERSION}..."
for f in *.webm; do
uuid=$(uuidgen)
ffmpeg -i $f -vcodec libx264 -preset slow -crf 18 -vf scale=720:-2 ${uuid}.mp4
done
./convert.sh: line 3: syntax error near unexpected token $'do\r''
'/convert.sh: line 3:
for f in *.webm; do
I have many .webm files in a folder and I want to convert them all using ffmpeg!
The problem was about Windows. I was using Bash on Windows and it gave me issues.