I am puzzled....
The complete script that failed was as follows (I just didn't copy the commented lines in the first post):
Code:
#!/bin/bash
#for %%f in {*.avi} do {
#avconv -i "%%~nxf" -c:v libx264 "%%~nf.mp4"
#}
for i in *.wmv;
do
name=`echo $i | cut -d'.' -f1`;
avconv -i "$i" -vcodec libx264 -acodec aac -strict experimental -threads 3 "$name.mp4";
done
Now the script is
Code:
#!/bin/bash
for i in *.wmv;
do
name=`echo $i | cut -d'.' -f1`;
avconv -i "$i" -vcodec libx264 -acodec aac -strict experimental -threads 3 "$name.mp4";
done
The only thing I did was delete the comment lines. And now, it works.....
Bookmarks