First answer I can giv myself: This website says it is possible and uses this script:
Code:
tcsh% touch donelist.txt
tcsh% foreach i (`ls *.proj | cut -d'.' -f1`)
> echo $i >> donelist.txt
> avidemux2 --load ${i}.proj --save ${i}.svcd.mpg --quit
> end
I can see that they are not using a typical bash-script. So with my poor scripting-knowledge I tried rewriting it:
Code:
#!/bin/bash
touch donelist.txt
foreach i in (`ls *.proj | cut -d'.' -f1`) ; do
echo $i >> donelist.txt
avidemux2 --load ${i}.proj --save ${i}.mkv --quit
end
Would this script work fine? I'm not sure with syntax of the foreach-loop. How would I do a batch-script processing two jobs at the same time?
In addition, I found this wiki-page telling something about "Jobs":
Jobs are in fact also ECMAScripts. They only differ from a regular project file by an additionnal “app.save(filename);” line at the end. They are stored in $HOME/.avidemux/jobs/ directory.
Is there a simple way to execute two of such jobs at the same time and in a batch-queue? Maybe this was easier than bash-scripting.
Bookmarks