Bash-Syntax in dvdwizard (Re: Bash-Downgrade)
Am Freitag, 6. Januar 2006 00:02 schrieb Elimar Riesebieter:
> > Um zu testen ob es an der Bash 3.1-1 liegt, weil dvdwizard nicht
> > funktioniert, möchte ich eine ältere Bash probieren. Ich weiß, dass es
> > unter Sarge mit 2.05b-26 funktioniert und unter SuSE mit 3.00.16(1).
> >
> > Ist so ein Bash-Downgrade unproblematisch für meinen Sid-Rechern, oder
> > kann ich mir da einiges kaputt machen?
>
> $ dvdwizard
> /usr/bin/dvdwizardrc: line 244: syntax error near unexpected token`('
> /usr/bin/dvdwizardrc: line 244: `let offsetX=($normX-$tvX)/2+1'
> /usr/bin/dvdwizard: line 200: syntax error near unexpected token `('
> /usr/bin/dvdwizard: line 200: ` eval cshots=( $(ls -QS
> "$BASEDIR/cpics/VTS$i") )'
>
> sagt genau was zu machen ist:
>
> --- dvdwizard.orig 2006-01-05 23:53:10.647533879 +0100
> +++ dvdwizard 2006-01-05 23:54:34.197109019 +0100
> @@ -197,7 +197,7 @@
> [ -e "$confFile" ] && cmd="${cmd} -C \"$confFile\""
> eval echo "$cmd" >> "$CMDFILE"
> eval $cmd >> "$LOGFILE" 2>&1 || error_out
> - eval cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )
> + eval 'cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )'
> eval VTSM_PIC_$i=\"\$BASEDIR/cpics/VTS$i/\${cshots[0]}\"
> done
> echo "...done"
>
> und
>
>
> --- dvdwizardrc.orig 2006-01-05 23:52:56.903274735 +0100
> +++ dvdwizardrc 2006-01-05 23:54:05.820574075 +0100
> @@ -241,8 +241,8 @@
> normDensity="$densityX"x"$densityY"
> tvX=`echo $TVSIZE | cut -dx -f 1`
> tvY=`echo $TVSIZE | cut -dx -f 2`
> -let offsetX=($normX-$tvX)/2+1
> -let offsetY=($normY-$tvY)/2+1
> +let offsetX='($normX-$tvX)/2+1'
> +let offsetY='($normY-$tvY)/2+1'
>
> #
> # If no background picture specified, create one
>
> getestet mit ZSH_VERSION=4.3.0-dev-2
Am Freitag, 6. Januar 2006 01:24 schrieb Wolfgang Wershofen:
> Wäre trotzdem prima, wenn Du diese Version und auch meinen Vorschlag
> mit den "\(" "\)" mal ausprobieren könntest, ob die Sache tatsächlich
> läuft.
eval $cmd >> "$LOGFILE" 2>&1 || error_out
#eval cshots="( $(ls -QS "$BASEDIR/cpics/VTS$i") )"
eval cshots=\( $(ls -QS "$BASEDIR/cpics/VTS$i") \)
eval VTSM_PIC_$i=\"\$BASEDIR/cpics/VTS$i/\${cshots[0]}\"
dvdwizard x2.mpg
Creating DVD with dvdwizard version 0.4.2b
Title #1: x2
DVD-Title: x2
Creating temporary DVD-structure......done.
Capturing Chapter-Screenshots from temporary DVD......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. ;-)
Logfile from dvdwizard version 0.4.2b run at 06.01.2006 - 12:42:55
dvdwizard invoked with dvdwizard "x2.mpg"
Default processing options read from built-in
-----------------------------------------------------------------
+-------------------------------------+
| Calling mk_tmpdvd |
| Creating temporary DVD-structure |
+-------------------------------------+
Checking chapter definition
49 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 x2.mpg...
STAT: VOBU 16 at 1MB, 1 PGCS
..
STAT: VOBU 448 at 51MB, 1 PGCS
INFO: Video pts = 0.184 .. 223.064
INFO: Audio[8] pts = 0.184 .. 223.072
STAT: VOBU 462 at 53MB, 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: 704x576
INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
STAT: fixing VOBU at 1MB (17/462, 3%)
...
STAT: fixing VOBU at 51MB (449/462, 96%)
STAT: fixed 462 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 1 chapters
Processing chapter No. 1
Selected tmp000002 as Screenshot for chapter 1 (should be frame number 45)
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'
Hier der Vorschlag von Elmar, aber mit der Bash 3.1 und dem so modifiziertem
Debian-Paket von dvdwizard:
eval $cmd >> "$LOGFILE" 2>&1 || error_out
#eval cshots="( $(ls -QS "$BASEDIR/cpics/VTS$i") )"
eval 'cshots=( $(ls -QS "$BASEDIR/cpics/VTS$i") )'
eval VTSM_PIC_$i=\"\$BASEDIR/cpics/VTS$i/\${cshots[0]}\"
#let offsetX="($normX-$tvX)/2+1"
#let offsetY="($normY-$tvY)/2+1"
let offsetX='($normX-$tvX)/2+1'
let offsetY='($normY-$tvY)/2+1'
dvdwizard x2.mpg
Creating DVD with dvdwizard version 0.4.2b
Title #1: x2
DVD-Title: x2
Creating temporary DVD-structure......done.
Capturing Chapter-Screenshots from temporary DVD......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. ;-)
Logfile from dvdwizard version 0.4.2b run at 06.01.2006 - 12:59:34
dvdwizard invoked with dvdwizard "x2.mpg"
Default processing options read from built-in
-----------------------------------------------------------------
+-------------------------------------+
| Calling mk_tmpdvd |
| Creating temporary DVD-structure |
+-------------------------------------+
Checking chapter definition
49 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 x2.mpg...
STAT: VOBU 16 at 1MB, 1 PGCS
...
STAT: VOBU 448 at 51MB, 1 PGCS
INFO: Video pts = 0.184 .. 223.064
INFO: Audio[8] pts = 0.184 .. 223.072
STAT: VOBU 462 at 53MB, 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: 704x576
INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
STAT: fixing VOBU at 1MB (17/462, 3%)
...
STAT: fixing VOBU at 51MB (449/462, 96%)
STAT: fixed 462 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 1 chapters
Processing chapter No. 1
Selected tmp000002 as Screenshot for chapter 1 (should be frame number 45)
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'
Al
PS: BCC an den Author von dvdwizard, Wolfgang Wershofen, da er in dieser ML
nicht mtliest.
Reply to: