
26.02.2010, 21:39
|
|
Новичок
Регистрация: 30.04.2009
Сообщений: 13
С нами:
8964088
Репутация:
0
|
|
Поставил PowerShell, запустил. Поправил переменные ($ff должно было быть $a, $sf - $b)
Запустил. Выдало:
The term 'D:\soft\mencoder mf://D:\soft\dancing_banana.jpg -mf fps=1/60 -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame -lameop
ts abr:br=160 -srate 44100 -ofps 25 -audiofile 02track.mp3 -o 02track.mp3.avi' is not recognized as the name of a cmdlet, function, scr
ipt file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
Данные из файла подставились, отлично.
Убрал кавычки, mencoder запустился, но вместо самих переменных вылезли их обозначения, соответственно, корректно программа не смогла работать.
MEncoder Sherpya-SVN-r29851-4.2.5 (C) 2000-2009 MPlayer Team
mencoder.exe : Error parsing option on the command line: -o
At D:\soft\1.ps1:3 char:36
+ for ($i=0;$i -lt $ff.length;$i++){& <<<< D:\soft\mencoder.exe mf://D:\soft\dancing_banana.jpg -mf fps=1/$($sf[$i]) -ovc la
vc -lavcopts vcodec=mpeg4 -oac mp3lame -lameopts abr:br=160 -srate 44100 -ofps 25 -audiofile $($ff[$i]) -o $($ff[$i]).avi}
+ CategoryInfo : NotSpecified: (Error parsing o...ommand line: -o:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
|
|
|