blob: 795ecf3aece2482d621df6fd22aaded81c8e4d1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
#
# dvd2ogm-par.sh IMAGE.ISO TITLE TITLE TITLE...
#
set -e
nicelvl=19
dvd2ogm="dvd2ogm.sh"
image="$1"
shift
titles="$*"
export PATH="$(pwd):$PATH"
for title in $titles; do
(
mkdir "title-$title"
cd "title-$title"
nice -n$nicelvl $dvd2ogm "$image" "$title"
cd ..
mv "title-$title/out.ogm" "./title-$title.ogm"
rmdir "title-$title"
) &
done
wait
exit 0
|