I have a lot of avi files in one folder and trying to convert them in to mp4. I am using this bash script not sure whats wrong. any idea?
#!/bin/bash for i in *.avi; do name=`echo $i | cut -d'.' -f1`; echo $name; avconv -i -vcodec libx264 -acodec aac -strict experimental -threads 3 "$i" "$name.mp4"; done
the error I get is :
-vcodec: No such file or directory