I tried it with a copy of
/usr/share/doc/dvdwizard/examples/dvdwizard.conf.sample
(minor modifications and default values) and with no
dvdwizard.conf. OS was Debian Sarge and Sid. Messages
below are from a Debian-Sid-machine
/media_out_nfs/abtest$ dvdwizard -c 900
zwei_plappermaeuler_in_australien.mpg
Creating DVD with dvdwizard version 0.4.2a
Title #1: zwei plappermaeuler in australien
DVD-Title: zwei plappermaeuler in australien
Creating temporary DVD-structure......done.
Capturing Chapter-Screenshots from temporary
DVD.../usr/bin/dvdwizard: line 200: "chapter02.jpg":
command not found
...done
Building VMGM-Menu...
Hey, something went wrong in this script! Check for
error messages in the log.
The last command returned a Non-Zero Return-Code (2)
So I guess it's better to stop here and let you analyze
the situation
Hope you'll find the error. ;-)
cat dvdwizard.log
Logfile from dvdwizard version 0.4.2a run at 02.01.2006
- 18:22:52
dvdwizard invoked with dvdwizard "-c 900
zwei_plappermaeuler_in_australien.mpg"
Default processing options read from built-in
-----------------------------------------------------------------
+-------------------------------------+
| Calling mk_tmpdvd |
| Creating temporary DVD-structure |
+-------------------------------------+
Checking chapter definition
17 chapters found - with 0 errors
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>
INFO:
Locale=LC_CTYPE=de_AT.UTF-8;LC_NUMERIC=C;LC_TIME=de_AT.UTF-8;LC_COLLATE=de_AT.UTF-8;LC_MONETARY=de_AT.UTF-8;LC_MESSAGES=de_AT.UTF-8;LC_PAPER=de_AT.UTF-8;LC_NAME=de_AT.UTF-8;LC_ADDRESS=de_AT.UTF-8;LC_TELEPHONE=de_AT.UTF-8;LC_MEASUREMENT=de_AT.UTF-8;LC_IDENTIFICATION=de_AT.UTF-8
INFO: Converting filenames to UTF-8
INFO: dvdauthor creating VTS
STAT: Picking VTS 01
STAT: Processing zwei_plappermaeuler_in_australien.mpg...
STAT: VOBU 10992 at 2324MB, 1 PGCS
INFO: Video pts = 0.184 .. 4994.424
INFO: Audio[8] pts = 0.184 .. 4994.416
STAT: VOBU 11000 at 2326MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: pal
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x576
INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
STAT: fixed 11000 VOBUS
INFO: dvdauthor creating table of contents
INFO: Scanning ./dvd/VIDEO_TS/VTS_01_0.IFO
+-------------------------------------+
| Calling dvdcpics |
| Capture Screenshots from Chapters |
+-------------------------------------+
Capturing Chapters from Titleset 1
Batch-Mode chosen. Images will be selected automagically
Found 6 chapters
Processing chapter No. 1
Selected tmp000009 as Screenshot for chapter 1 (should
be frame number 185)
Processing chapter No. 2
Selected tmp000009 as Screenshot for chapter 2 (should
be frame number 185)
Processing chapter No. 3
Selected tmp000000 as Screenshot for chapter 3 (should
be frame number 5)
Processing chapter No. 4
Selected tmp000000 as Screenshot for chapter 4 (should
be frame number 5)
Processing chapter No. 5
Selected tmp000006 as Screenshot for chapter 5 (should
be frame number 125)
Processing chapter No. 6
Selected tmp000000 as Screenshot for chapter 6 (should
be frame number 5)
Processing completed. Bye!
+-------------------------------------+
| Calling mk_vmgm |
| Creating VMGM-Menu |
+-------------------------------------+
/usr/bin/mk_vmgm: line 238: syntax error near
unexpected token `('
/usr/bin/mk_vmgm: line 238: ` let
tposY=($tbarY-$HFONTSIZE)/2+$HFONTSIZE'
line 200 is:
eval cshots=$( $(ls -QS "$BASEDIR/cpics/VTS$i") )
line 238 is:
eval bgpic=\"\$VTSMBG_$i\"
/media_out_nfs/abtest/cpics/VTS1$ ls -1
chapter01.jpg
chapter02.jpg
chapter03.jpg
chapter04.jpg
chapter05.jpg
chapter06.jpg
uname -r
2.6.14-2-k7 (Debian Sid)
apt-cache policy dvdwizard
dvdwizard:
Installiert:0.4.2a-0.2
apt-cache policy dvdauthor
dvdauthor:
Installiert:0.6.11-2.1
apt-cache policy imagemagick
imagemagick:
Installiert:6:6.2.3.6-3
apt-cache policy toolame
toolame:
Installiert:02l-2
apt-cache policy mjpegtools
mjpegtools:
Installiert:1:1.8.0-0.0
mplex-2 version 1.8.0 (2.2.4)
apt-cache policy transcode
transcode:
Installiert:2:1.0.2-0.4
apt-cache policy sed
sed:
Installiert:4.1.4-5
Logged In: YES
user_id=527611
Moin,
erstmal zu dem Fehler in line 200:
Das Script soll hier ein Array mit allen zuvor in dvdcpics
erzeugten Screenshots erzeugen. Bist Du wirklich sicher,
daß die besagte Zeile bei Dir mit "eval cshots=$(..."
anfängt? Das "$" sollte da nämlich gar nicht stehen. Please
check. Sollte das Dollarzeichen tatsächlich dort stehen,
hast Du ein fehlerhaftes RPM erwischt. Lade Dir dann den
Original-Tarball von
http://www.wershofen.de/downloads/dvdwizard.tar.gz runter
und probiere es damit nochmal aus.
Wenn Du Dich lediglich in Deinem Posting vertippt hast,
gib' mir bitte mal den Output von
"ls -QS /media_out_nfs/abtest/cpics/VTS1"
Der zweite Fehler (line 238) ist im Script mk_vmgm. Die
dortige Zeile soll eigentlich nur für ImageMagick < 6.0
ausgeführt werden, daher wundert es mich, daß das Script
dort reingelaufen ist, wo Du doch eine 6er IM-Version hast.
Kannst Du bitte mal den Output von "convert -version"
posten?
Desweiteren würde mich noch Deine bash-Version
interessieren - falls Du bash benutzt. Falls Du eine andere
Shell hast, sag' mir bitte, welche.
thx
Wolfgang
Logged In: YES
user_id=1417624
Ich kann zur Zeit nicht viel testen, aber das mal als
Zwischeninfo und in den u.a. Links eventuell auch ein
Hinweis womit das Problem verbunden ist.
Ich verwende keine rpms, sondern ein deb-Paket.
apt-cache policy dvdwizard
dvdwizard:
Installiert:0.4.2a-0.2
Mögliche Pakete:0.4.2a-0.2
Versions-Tabelle:
*** 0.4.2a-0.2 0
900 ftp://ftp.nerim.net etch/main Packages
500 ftp://ftp.nerim.net sid/main Packages
100 /var/lib/dpkg/status
grep -n "eval cshots" /usr/bin/dvdwizard
200: eval cshots=$( $(ls -QS "$BASEDIR/cpics/VTS$i") )
ls -QS /media_out_nfs/abtest/cpics/VTS1
"chapter02.jpg" "chapter05.jpg" "chapter06.jpg"
"chapter03.jpg" "chapter04.jpg" "chapter01.jpg"
convert -version
Version: ImageMagick 6.2.3 08/08/05 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
Das ist zwar nicht die neueste Version, aber die letzte, die
mit "meinen" convert-Optionen so funktioniert, wie ich das
möchte.
bash --version
GNU bash, version 3.1.0(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
apt-cache policy bash
bash:
Installiert:3.1-1
Mögliche Pakete:3.1-1
Versions-Tabelle:
*** 3.1-1 0
500 ftp://ftp.at.debian.org etch/main Packages
500 ftp://ftp.at.debian.org sid/main Packages
500 ftp://ftp.freenet.de etch/main Packages
500 ftp://ftp.freenet.de sid/main Packages
500 ftp://ftp.debian.org etch/main Packages
100 /var/lib/dpkg/status
Vgl. aucb
http://lists.suse.com/archive/suse-multimedia/2005-Dec/0343.html
http://lists.suse.com/archive/suse-multimedia/2006-Jan/0031.html
Logged In: YES
user_id=527611
Hi,
habe mir das Debian Package mal runtergeladen und mit meinen
Scripts verglichen. Dein Problem entsteht tatsächlich durch
fehlerhafte Modifikationen in dem Debian-Packet. Ich habe
dem Maintainer Christian Marillat folgende Mail geschrieben:
---> snip <------------
Hello Christian,
I'm the programmer of dvdwizard and received a bug-report
from someone
using the above mentioned debian package.
I compared the scripts in your package with my original
scripts and
found some modifications which indeed cause the problems
described in
the bug-report. Here are the doubtful modifications:
----> snip <--------------------
diff bin/dvdwizard /home/wolle/scripts/dvdwizard
200c200
< eval cshots=$( $(ls -QS "$BASEDIR/cpics/VTS$i") )
---
> eval cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )
----> snip <--------------------
The additional "$" before the opening bracket is wrong. This
statement
should create an array from all screenshots produced in
dvdcpics and
that's what the brackets are for. The statement should
evaluate to
something like
cshots=( chapter01.jpg chapter02.jpg chapter03.jpg )
This way, you may access every screenshot with ${cshots[i]}.
Adding the "$" leads to dvdwizard trying to process a
command inside
the brackets and assigning the output of this command to a flat
variable cshots. This is complete nonsens and should always
give an
error message.
----> snip <--------------------
diff bin/dvdwizardrc /home/wolle/scripts/dvdwizardrc
244,245c244,245
< let offsetX=$($normX-$tvX)/2+1
< let offsetY=$($normY-$tvY)/2+1
---
> let offsetX=($normX-$tvX)/2+1
> let offsetY=($normY-$tvY)/2+1
----> snip <--------------------
This is not correct, too. The brackets are used here in a
mathematical
context and mean that the result of $normX-$tvX should be
divided by
2.
Adding the "$" before the bracket again creates a command
substitution
as explained above.
Some shells, however, seem to dislike the brackets in a let
statement
and issue a syntax error message but the result of the
mathematical
operation is stored correctly into offset[XY] (this is also
true with
your modification, though). To get rid of the error message,
the
right side of the equal sign should be surrounded by
quotation marks,
e.g.
let offsetX="($normX-$tvX)/2+1"
So far for the - in my view - incorrect modifications. I
very much
doubt that Debian systems differ so much from SuSE (which I
run) that
your modifications work correctly under Debian. So please
revert back
to my original scripts.
Yesterday, I just released another bugfix version of
dvdwizard, called
0.4.2b. The only difference to 0.4.2a is the additional parm to
ppmtoy4m to make the scripts work with the most recent
mjpegtools-versions higher than 1.6. Just download the
tarball from
http://www.wershofen.de/downloads/dvdwizard.tar.gz
Regards
Wolfgang
---> snip <------------
Meine Empfehlung daher - solange es noch kein korrigiertes
Debian-Package gibt: Lade Dir den dvdwizard-Tarball von der
genannten Adresse runter und installiere dvdwizard daraus
(ein Kopieren der Scripte in Dein Script-Verzeichnis z.B.
usr/bin würde schon ausreichen).
Hoffe, das hilft.
Viele Grüße
Wolfgang
Logged In: YES
user_id=1417624
Ich habe http://www.wershofen.de/downloads/dvdwizard.tar.gz
runtergeladen, unterhalb von /usr/local/bin/ ausgepackt und
bin in das mpg-Verzeichnis gewechselt. Darauf folgte dieser
Aufruf:
/usr/local/bin/dvdwizard-0.4.2b/dvdwizard -c 3000 test.mpg
/usr/local/bin/dvdwizard-0.4.2b/dvdwizardrc: line 244:
syntax error near unexpected token `('
/usr/local/bin/dvdwizard-0.4.2b/dvdwizardrc: line 244: `let
offsetX=($normX-$tvX)/2+1'
/usr/local/bin/dvdwizard-0.4.2b/dvdwizard: line 200: syntax
error near unexpected token `('
/usr/local/bin/dvdwizard-0.4.2b/dvdwizard: line 200: `
eval cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )'
BTW, warum gibt es bei
http://sourceforge.net/project/showfiles.php?group_id=96640&release_id=203206
die neueste Version nicht?