gallery2 and dvd-slideshow

parseRecipe . . [header] tag
parseRecipe ----14- [titles/]
parseRecipe . . [titles] tag
parseRecipe ----15- [settings/]
parseRecipe . . [settings] tag
parseRecipe ----16-
parseRecipe ----17- [function/]
parseRecipe . . [function] tag
parseRecipe ----18- [name] imagesPath
parseRecipe New function definition 1: imagesPath
parseRecipe . . [name] tag
parseRecipe ----19- [command] myProgName="$(basename "$0")"
parseRecipe Command added to function 1: imagesPath
parseRecipe . . [command] tag
parseRecipe ----20- [command] myProgPath="$(which "$myProgName")"
parseRecipe Command added to function 1: imagesPath
parseRecipe . . [command] tag
parseRecipe ----21- [command] imagePath="${myProgPath%/bin*}/share/images/$myProgName"
parseRecipe Command added to function 1: imagesPath
parseRecipe . . [command] tag
parseRecipe ----22- [command] echo "$imagePath"
parseRecipe Command added to function 1: imagesPath
parseRecipe . . [command] tag
parseRecipe ----23- [/function]
parseRecipe . . [function] tag
parseRecipe ----24- [execute] imagesPath
parseRecipe Executing function 1:'imagesPath'
execute_function Command: myProgName="$(basename "$0")" && myProgPath="$(which "$myProgName")" && imagePath="${myProgPath%/bin*}/share/images/$myProgName" && echo "$imagePath"
execute_function Using IFS = ':'
execute_function myProgName="$(basename "$0")" && myProgPath="$(which "$myProgName")" && imagePath="${myProgPath%/bin*}/share/images/$myProgName" && echo "$imagePath"
parseRecipe Function result: [dvd-baker] execute_function Using IFS = ':'
/usr/share/images/dvd-baker
parseRecipe . . [execute] tag
parseRecipe ----25-
parseRecipe ----26- [function/]
parseRecipe . . [function] tag
parseRecipe ----27- [name] bakerLogo
parseRecipe New function definition 2: bakerLogo
parseRecipe . . [name] tag
parseRecipe ----28- [command] pngLogo="%%%function imagesPath%%%/dvd-baker_logo.png"
parseRecipe Command added to function 2: bakerLogo
parseRecipe . . [command] tag
parseRecipe ----29- [command] [ -f "$pngLogo" ] && echo "$pngLogo"
parseRecipe Command added to function 2: bakerLogo
parseRecipe . . [command] tag
parseRecipe ----30- [/function]
parseRecipe . . [function] tag
parseRecipe ----31- [execute] bakerLogo
parseRecipe Executing function 2:'bakerLogo'
execute_function Command: pngLogo="%%%function imagesPath%%%/dvd-baker_logo.png" && [ -f "$pngLogo" ] && echo "$pngLogo"
execute_function Using IFS = ':'
execute_function pngLogo="%%%function imagesPath%%%/dvd-baker_logo.png" && [ -f "$pngLogo" ] && echo "$pngLogo"
parseRecipe Function result: [dvd-baker] execute_function Using IFS = ':'
parseRecipe . . [execute] tag
parseRecipe ----32-
parseRecipe ----33- [function/]
parseRecipe . . [function] tag
parseRecipe ----34- [name] bakerLogoJpeg
parseRecipe New function definition 3: bakerLogoJpeg
parseRecipe . . [name] tag
parseRecipe ----35- [command] pnglogo="%%%function bakerLogo%%%"
parseRecipe Command added to function 3: bakerLogoJpeg
parseRecipe . . [command] tag
parseRecipe ----36- [command] jpglogo="$PWD/$(basename ${pnglogo%.png}.jpg)"
parseRecipe Command added to function 3: bakerLogoJpeg
parseRecipe . . [command] tag
parseRecipe ----37- [command] convert "$pnglogo" "$jpglogo"
parseRecipe Command added to function 3: bakerLogoJpeg
parseRecipe . . [command] tag
parseRecipe ----38- [command] [ -s "$jpglogo" ] && echo "$jpglogo"
parseRecipe Command added to function 3: bakerLogoJpeg
parseRecipe . . [command] tag
parseRecipe ----39- [/function]
parseRecipe . . [function] tag
parseRecipe ----40- [execute] bakerLogoJpeg
parseRecipe Executing function 3:'bakerLogoJpeg'
execute_function Command: pnglogo="%%%function bakerLogo%%%" && jpglogo="$PWD/$(basename ${pnglogo%.png}.jpg)" && convert "$pnglogo" "$jpglogo" && [ -s "$jpglogo" ] && echo "$jpglogo"
execute_function Using IFS = ':'
execute_function pnglogo="%%%function bakerLogo%%%" && jpglogo="$PWD/$(basename ${pnglogo%.png}.jpg)" && convert "$pnglogo" "$jpglogo" && [ -s "$jpglogo" ] && echo "$jpglogo"
parseRecipe Function result: [dvd-baker] execute_function Using IFS = ':'
parseRecipe . . [execute] tag
parseRecipe ----41-
parseRecipe ----42- [function/]
parseRecipe . . [function] tag
parseRecipe ----43- [name] dvd-baker_version
parseRecipe New function definition 4: dvd-baker_version
parseRecipe . . [name] tag
parseRecipe ----44- [command] dvd-baker --version
parseRecipe Command added to function 4: dvd-baker_version
parseRecipe . . [command] tag
parseRecipe ----45- [/function]
parseRecipe . . [function] tag
parseRecipe ----46- [execute] dvd-baker_version
parseRecipe Executing function 4:'dvd-baker_version'
execute_function Command: dvd-baker --version
execute_function Using IFS = ':'
execute_function dvd-baker --version
parseRecipe Function result: [dvd-baker] execute_function Using IFS = ':'
dvd-baker 0.7.36
parseRecipe . . [execute] tag
parseRecipe ----47-
parseRecipe ----48- [effect/]
parseRecipe . . [effect] tag
parseRecipe ----49- [name] fading_title
parseRecipe New fading_title-effect definition
parseRecipe Total known effect types now: fading_title
parseRecipe . . [name] tag
parseRecipe ----50- [effect] fadein:1
parseRecipe Adding effect to global fading_title-effects (1)
parseRecipe . . [effect] tag
parseRecipe ----51- [effect] title:2:::%%%1%%%
parseRecipe Adding effect to global fading_title-effects (1)
parseRecipe . . [effect] tag
parseRecipe ----52- [effect] fadeout:1
parseRecipe Adding effect to global fading_title-effects (1)
parseRecipe . . [effect] tag
parseRecipe ----53- [/effect]
parseRecipe . . [effect] tag
parseRecipe ----54-
parseRecipe ----55- [effect/]
parseRecipe . . [effect] tag
parseRecipe ----56- [name] flash_image
parseRecipe New flash_image-effect definition
parseRecipe Total known effect types now: fading_title flash_image
parseRecipe . . [name] tag
parseRecipe ----57- [effect] %%%1%%%:0.75:%%%2%%%
parseRecipe Adding effect to global flash_image-effects (2)
parseRecipe . . [effect] tag
parseRecipe ----58- [effect] background:0.25:%%%2%%%
parseRecipe Adding effect to global flash_image-effects (2)
parseRecipe . . [effect] tag
parseRecipe ----59- [/effect]
parseRecipe . . [effect] tag
parseRecipe ----60-
parseRecipe ----61- [/settings]
parseRecipe . . [settings] tag
parseRecipe ----62-
parseRecipe ----63- [title/]
parseRecipe . . [title] tag
parseRecipe ----64- [id] 1
parseRecipe Starting title definition: 1
parseRecipe . . [id] tag
parseRecipe ----65- [slideshow/]
parseRecipe Creating new directory for slideshow-1-1
parseRecipe . . [slideshow] tag
parseRecipe ----66- [effect] fading_title dvd-baker logo
insert_effect Inserting fading_title with args: dvd-baker logo
insert_effect Using IFS = ':'
insert_effect Inserting effects:
insert_effect 'fadein:1 title:2:::%%%1%%% fadeout:1'
insert_effect Inserting fadein:1 title:2:::%%%1%%% fadeout:1
insert_effect Effect: fadein:1
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
insert_effect Effect: title:2:::%%%1%%%
addToSlideshow Adding to slideshow: '%%%1%%%:'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 '%%%1%%%:'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6:%%%1%%%
insert_effect Effect: fadeout:1
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [effect] tag
parseRecipe ----67- [image] %%%function bakerLogoJpeg%%%:3:dvd-baker logo
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [image] tag
parseRecipe ----68- [/slideshow]
parseRecipe Total of 1 images in slideshow-1-1
parseRecipe Making slideshow from slideshow-1-1.txt
parseRecipe nice -n15 dvd-slideshow -f "/opt/lampp/htdocs/pages/files/dvd-baker-0.7.36/slideshows/slideshow-1-1/slideshow-1-1.txt" -n slideshow-1-1
parseRecipe Slideshow job started: 4627
parseRecipe . . [slideshow] tag
parseRecipe ----69- [/title]
parseRecipe . . [title] tag
parseRecipe ----70- [title/]
parseRecipe . . [title] tag
parseRecipe ----71- [id] 2
parseRecipe Starting title definition: 2
parseRecipe . . [id] tag
parseRecipe ----72- [slideshow/]
parseRecipe Creating new directory for slideshow-2-1
parseRecipe . . [slideshow] tag
parseRecipe ----73- [effect] fading_title Fading
insert_effect Inserting fading_title with args: Fading
insert_effect Using IFS = ':'
insert_effect Inserting effects:
insert_effect 'fadein:1 title:2:::%%%1%%% fadeout:1'
insert_effect Inserting fadein:1 title:2:::%%%1%%% fadeout:1
insert_effect Effect: fadein:1
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
insert_effect Effect: title:2:::%%%1%%%
addToSlideshow Adding to slideshow: '%%%1%%%:'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 '%%%1%%%:'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6:%%%1%%%
insert_effect Effect: fadeout:1
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [effect] tag
parseRecipe ----74- [effect] fadein:2:fading in
insert_effect Inserting effects:
insert_effect 'fadein:2:fading in'
insert_effect Inserting fadein:2:fading in
insert_effect Effect: fadein:2:fading in
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [effect] tag
parseRecipe ----75- [image] %%%function bakerLogoJpeg%%%:1:fading out
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [image] tag
parseRecipe ----76- [effect] fadeout:2:fading out
insert_effect Inserting effects:
insert_effect 'fadeout:2:fading out'
insert_effect Inserting fadeout:2:fading out
insert_effect Effect: fadeout:2:fading out
addToSlideshow Adding to slideshow: ':'
addToSlideshow 1 ''
addToSlideshow 2 ''
addToSlideshow 3 ''
addToSlideshow 4 ''
addToSlideshow 5 ':'
addToSlideshow No duration defined, using default
addToSlideshow Adding image duration 6
addToSlideshow + 6
parseRecipe . . [effect] tag
parseRecipe ----77- [/slideshow]
parseRecipe Total of 1 images in slideshow-2-1
waitForJob Waiting for Slideshow job:4627 to finish
waitForJob Process: 4627 complete.
waitForJob Waiting for approx. 2.4 seconds
FATAL ERROR. CREATION OF slideshow-1-1 FAILED.
Please check "/opt/lampp/htdocs/pages/files/dvd-baker-0.7.36/dvd-baker.log" and "/opt/lampp/htdocs/pages/files/dvd-baker-0.7.36/slideshows/slideshow-1-1/dvd-slideshow.log"
Please enable debug and examine "/opt/lampp/htdocs/pages/files/dvd-baker-0.7.36/dvd-baker.log"
Aborted

marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Thu, 2005-11-17 13:57

This project is known as dvd-baker

. . F O R . . T H E . . L A T E S T . . V E R S I O N . . P L E A S E . . S E E . .
http://dvd-baker.sf.net

or

for the latest release announcement in this forum:
http://gallery.menalto.com/node/40191?page=1#comment-180926

            __           __      __            __
           / /          / /     / /           / /
      ____/ /_  __ ____/ /     / /_   ____ _ / /__ ____   _ ___
     / __  /| |/ // __  /___  / _  \ / __ `// //_// __ \ / `__/
    / (_/ / | ' // (_/ /(___)/ /_) // (_/ // _`\ / ____// /
    \__,_/  |__/ \__,_/     /_,___/ \__,_//_/ \_\\____//_/
                                               0.7.43

Hi all,

After seeing the improvements in G2 I’ve upgraded several of my (multisite) sites to G2. However, as dvd-slideshow was written for G1 I’ve had to start writing my own “gallery2toslideshow"? script to operate with dvd-slideshow.

So far, I have a script which correctly enumerates the items of a (multi)site in the order specified by the site and outputs a script suitable for dvd-slideshow.
There are a few shortcomings (Hey! ... it’s only v0.0.6!!!)
— Descriptions of items on the website can’t include a colon.
— (parsing error involving colon delimiters?)
— I’m not sure if the script will work with single sites.
— I can’t build the dvd on a host other than the G2Host.

I could probably keep going for hours (at this rate), :)
...hopefully the reader empathizes :)

Anyway, version 0.0.6 of the script is:
http://marcusbrutus.cust.internode.on.net/software/gallery2toslideshow.sh

Suggestions for improvement are very welcome.

Marcus.

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2005-11-27 15:24

g2s version 0.5.8 (I got sick of typing gallery2-to-slideshows :) )

g2s works through a complete site, including sub-albums, and produces multiple
slideshows with menus. The result is an XML definition file for dvdauthor, and
all the video objects needed to make a DVD.

Features include rotation of images, and autoplay.

Warning: crossfade is currently on by default, so generation of slideshows
could easily take SEVERAL HOURS depending on the size of your site.

Still a lot of bugs and unimplemented features... but produces nice DVDs easily.
"g2s -help" will explain just about everything.

Suggestions for improvement welcomed.

Marcus.

http://marcusbrutus.cust.internode.on.net/software/g2s-0.5.8.tar.gz

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Wed, 2005-11-30 04:07

Latest Changelog and Known Bugs

# ##################################################
# Changelog
# v0.5.9
#	- changed duration settings for menus
#	- set default button for each menu
#	- changed quoting technique in item descriptions
#	- added more specific DVD entries in attempt to fix ps2 playback
#	- changed the register used during DVD playback for storing menu choices
#	- fixed quoting in descriptions
#	- Menu mask problem was in dvd-menu. Resolution is set before the PAL option
#	  is parsed!!! Fixed by moving the PAL test.
#
# Known bugs
# v0.5.8
#	PS2 Playback:
#	 	Menu mask is out of place (problem in dvd-menu?) = FIXED
#		Menu button default is incorrect (unset?) = FIXED
#		Menus timeout too quickly = FIXED
#	Quoting in a description is done with " by g2 = FIXED
#	Video clip descriptions incorrectly use title instead of description = FIXED
#	Blank descriptions give 2 x double quotes = FIXED
#	'Back' not working as expected
#
# ##################################################

If someone would like to have a go at making an NTSC DVD I'll correct my code.

Marcus.

g2s v0.5.9 including patched version of dvd-menu 0.7.1
http://marcusbrutus.cust.internode.on.net/software/g2s-0.5.9.tar.gz

patch for dvd-menu 0.7.1 to correctly implement PAL menus
http://marcusbrutus.cust.internode.on.net/software/dvd-menu.patch

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Thu, 2005-12-01 13:09
# Wishlist
#	- exclude album(s) option
#	- add recycling of previous ouput runs with md5sum checking
#
# Known Bugs 0.6.0
#	- some occasional misses with album highlights when the "it's good
#	  enough to be a highlight because you haven't set one' technique
#	  used by the g2-core code chooses a non-jpeg (eg. a movie clip)
#
# Changelog 0.6.0
#	- jumping back fixed by setting menu register to parent menu before jump
#	- added code for choosing highlighted item in an album
#	- added pal/ntsc switching
#	- corrected (inoperable) command line parsing
#	- miscellaneous cleanups (inc. replacing sed calls)
#
# Known Bugs 0.5.9
#	- Jumping back a menu still not working = FIXED

g2s v0.6.0 including patched version of dvd-menu 0.7.1
http://marcusbrutus.cust.internode.on.net/software/g2s-0.6.0.tar.gz

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2005-12-04 05:46
# Changelog 0.6.2
#	- made 'Embed Highlight' optional
#	- added recylcing of previous vobs and configs
#	    Should mean that if an indiviual album remains unchanged on the
#	    g2 site, that a new corresonding slideshow will not be generated.
#	    BUT if (say) a menu needs (re)creation, it will still happen.
#	    (Perhaps a better summary should appear here? :) )
#	    Either way, as long as *.g2s and *.gen files are retained, only
#	    the necessary vobs are rebuilt.
#	- miscellaneous cleanups
#
# Changelog 0.6.1
#	- added support for embedding highlighted image in a menu
#	  (patched dvd-menu-0.7.1)
#	- miscellaneous cleanups
#	- added exclude album(s) option

Renamed to gallery2-to-dvd

gallery2-to-dvd v0.6.2 including patched version of dvd-menu 0.7.1
http://marcusbrutus.cust.internode.on.net/software/gallery2-to-dvd-0.6.2.tar.gz

Sample dvd structure with blank slideshows and options menu (updated from 0.6.4):
(size=1.7MB) http://marcusbrutus.cust.internode.on.net/software/Kiah2005.tar.gz
(size=3MB) http://marcusbrutus.cust.internode.on.net/software/Kiah2005.tar.bz2

Snaphot of sample root menu:
[img]http://marcusbrutus.cust.internode.on.net/software/Kiah2005-root-menu.jpg[/img]

Website used for generation of sample (Firefox required for partially transparent png images?)
http://marcusbrutus.cust.internode.on.net/Kiah

Sample usage:

WebServer:~/Kiah2005$ gallery2-to-dvd -p -g "Kiah" -eh \
          -qu "root" -qp "MYPASSWORD" -n 'Kiah 2005' -x "Artwork" /var/www/g2data/

WebServer:~/Kiah2005$ dvdauthor -x Kiah-dvdauthor.xml

Enjoy; suggestions welcome,

Marcus.

ps:
gallery2-to-dvd handles subAlbums recursivley.
Tree view of above sample from g2 site:
[img]http://marcusbrutus.cust.internode.on.net/software/Kiah2005-g2-tree-view.jpg[/img]

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Wed, 2007-02-07 23:20

gallery2-to-dvd 0.6.3

New features include:
- random autoplay
- handle mpeg videos
- insert leader vob (and mpeg) if available

A newer version of dvd-menu is also included in the
tarball which has more intelligent placement of the
embedded image.

http://marcusbrutus.cust.internode.on.net/software/gallery2-to-dvd-0.6.3.tar.gz

Enjoy.

Marcus.

# Known Bugs 0.6.3
#	- images that aren't in leaf albums (albums without subalbums) are not
#	   included (feature? :) )
#	- images in a leaf album that contain mpeg video(s) are not included.
#	- recycling needs more refinement ... strange errors grow without occasional
#	    flushing. This option is really only suitable for short rebuild
#	    runs with minor fixes, at this stage, so problem is not yet
#	    considered urgent. Probably cleaning/restoring g2s-old if break/bust
#	    detected would help.
#	- mpeg videos are assumed to be dvd ready for the video format used.
#
# Changelog 0.6.3
#	- fixed problematic custom thumbnail race condition
#	- improved selection of derivative images for highlight
#	- improved SQL error output
#	- added randomness to autoplay and changed title-jumping method
#	    (due to limit of 128 instructions per pgc)
#	- made duration of panoramic scrolling = aspectRatio * duration
#	- fixed logic for embedded highlight
#	- improved handling of mpeg videos
#	- fixed subtitle settings and added logic
#	- miscellaneous cleanups (inc. functions returning variables)
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-15 04:14

cool stuff :)

i've added a "3rd party" for "DVD authoring" in the g1/g2 comparison. thanks!
http://codex.gallery2.org/index.php/G1-G2_Comparison#Feature_Chart

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sat, 2005-12-17 12:28

Thanks valiant!

gallery2-to-dvd 0.6.4

New features include:
- options menu

http://marcusbrutus.cust.internode.on.net/software/gallery2-to-dvd.tar.gz

Various versions of gallery2-to-dvd are available from the dvd-slideshow project on Sourceforge.
http://sourceforge.net/projects/dvd-slideshow

More extensive documentation should be available soon at
http://dvd-slideshow.sourceforge.net/

#
# Known Bugs 0.6.4
#	- subtitles not using item title when description is blank
#	    I still admit confusion between Summary and Title.
#	- when resuming from the options menu, a changed options does not
#	    come into effect until the next title is played.
#	- can not seem to use entry=subtitle and jump using subtitle button
#	    for brain-dead players like the PS2 (works in gxine).
#	    Option button included in root menu to compensate.
#
# Changelog 0.6.4
#	- added options menu system to change settings during playback
#

NOTE THAT ALL VERSIONS UP TO AND INCLUDING THIS ONE ONLY HANDLE MULTI-SITES
Version 0.6.5 will support single sites.
0.7.x development series is a complete redesign and will work on either at much higher speed.

 
Luke-Jr

Joined: 2005-11-18
Posts: 5
Posted: Fri, 2005-12-23 05:31

How about making this a real module that people can use w/ the Shopping Cart function to download a DVD image or archive?

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2005-12-23 08:27

I'd love to make it a module.

There are (probably) several issues involved.
The most important of which is that I'd like to rewrite all
the database lookup functions in php for speed and compatibility reasons.
(ie. using the g2 API rather than reverese-engineered command-line lookups)

To be honest, I had not envisaged having anyone other than the admistrator
generating DVDs, as with your suggestion ... unless the (majority of the)
slideshows had been pre-generated, it would take HOURS to produce a single
DVD (for a modest-sized site).
An email notification system could always be made I guess,
but the webserver would be flat out for a long time producing a DVD for
one customer, let alone many.

That being said, it shouldn't be too bad producing a few DVD images per day,
regenerating slideshows daily where required, and using the same slideshows
in different combinations (might be doubly painful for pal vs ntsc)
(features and content decided by the site admin)
and allowing them to be downloaded in the cart.

Food for thought.
Thanks for the suggestion.

 
Luke-Jr

Joined: 2005-11-18
Posts: 5
Posted: Fri, 2005-12-23 14:34

Not sure why it should take long at all-- it's not a very complicated process to resize, frame, and compress images-- which is probably the only time-taking step...

Even if it did take time, it could still have good use for galleries that have a price tag on shopping cart items. Another idea would be to have the option to either download an image/archive *or* to have a DVD burned and mailed by the administration (either could be disabled by the admin, of course).

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2005-12-23 16:19

Generation of the dvd itself is not the time consuming process,
nor the exploration of the g2 database, however should you skim through
the gallery2-to-dvd code you will see that there is much more involved
than just resizing and framing.

The majority of the time is spent generating the video object slideshows.
Multiply that time by 3 if crossfading between images (recommended effect).
This is done by dvd-slideshow (a bash script) written by Scott Dylewski,
and while it's conceivable that the process may be faster if the code was
written in (say) C, there are so many dependent programs (eg. ImageMagick)
that I can't say that I see a real benefit in doing so.

The sample site above has approx 60 titles made from over 400 images direct
from camera (4MP Canon A520). Generation of the slideshows for that takes
approx 6 hours at full (PAL) resolution on a P3/650 with adequate memory.
(The webserver is actually a virtual machine, but there's no need for details)
There are option(s) to produce lower resolution slideshows which should
significantly reduce generation time, however I have not enabled that
ability in gallery2-to-dvd yet.

I suspect that someone (like yourself?) is more likely to build the functionality
that you speak of into a program higher up the food chain.
At the moment, gallery2-to-dvd is simply a script that does what the name implies.
Packaging, pretty labels, prices, downloading and whatever all sound like
features of a "front-end" yet to be developed.

I appreciate your ideas, and I'm sure they will help shape future development.

Regards,

Marcus.

 
Luke-Jr

Joined: 2005-11-18
Posts: 5
Posted: Fri, 2005-12-23 17:36

Without crossfading, the only CPU-intensive task is resizing, framing, and compressing:
1) create framebuffer with video frame
2) copy video framebuffer for current frame
3) resize picture to fit display frame in video
4) render whatever text is needed
5) compress current video framebuffer with relation to past framebuffer
6) swap framebuffer pointers for 'current frame' and 'previous frame'
7) goto #2 until done

My ideas re pricing and such were indeed intended to refer to the Shopping Cart module... I was assuming it already handled that.

 
GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Tue, 2005-12-27 14:59

I have a "little" problem when trying to generate a DVD from my gallery2 install.

Quote:
[me@sandnyko gallery2-to-dvd-0.6.5]$ ./gallery2-to-dvd /the/path/to/my/albums/
./gallery2-to-dvd: line 598: [: -eq: unary operator expected
ls: /home/me/gallery2-to-dvd-0.6.5/g2-*.g2s: No such file or directory
./gallery2-to-dvd: line 933: [: ==: unary operator expected
[gallery2-to-dvd] To generate and burn a DVD, you should now run:
[...]

The name of the database where information are stored is "gallery2", and the tables in it are named like "g2_*", but the field names always begin with "g_*".
The result is that gallery2-to-dvd is unable to retrieve information from the database.
Here are some logs from the generated file "g2-g2s.log":

Quote:
getMysqlData: Search statement:mysql -pMyPassword -uMyUser gallery2 -e"SELECT g2_Item.g2_Id FROM g2_Item WHERE g2_Item.g2_canContainChildren = 1 limit 1"
ERROR 1054 (42S22) at line 1: Unknown column 'g2_Item.g2_Id' in 'field list'
getMysqlData: SQl data retrieved:
processChildren: Processing child: 0 0
getMysqlData: Retrieving SQL data: :FileSystemEntity: :FileSystemEntity.pathComponent: :FileSystemEntity.id = : ::
getMysqlData: SQL Select variables: g2_FileSystemEntity.g2_pathComponent
getMysqlData: Search statement:mysql -pMyPassword -uMyUser gallery2 -e"SELECT g2_FileSystemEntity.g2_pathComponent FROM g2_FileSystemEntity WHERE g2_FileSystemEntity.g2_id = "
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

How can I bypass this problem?

I have not made anything to have this formatting issue, so I don't know how to solve it!

Can somebody help me?

Thanks!

Gallery version = 2.0.2+ noyau 1.0.10
PHP version = 4.3.10 apache2handler
Web Server = Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.3.102mdk) PHP/4.3.10 mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_ssl/2.0.53 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.6
Datebase = mysqlt 4.1.11
Toolkits = ArchiveUpload, Gd, NetPBM, Exif, Thumbnail, Ffmpeg, ImageMagick, Dcraw, SquareThumb
Operating System = Linux sandnyko 2.6.11-12mdkcustom #3 SMP Thu Aug 25 10:37:08 CEST 2005 i686
Web Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8) Gecko/20051111 Firefox/1.5

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2005-12-30 00:50
GrauNykho wrote:
I have a "little" problem when trying to generate a DVD from my gallery2 install.

OK, let's see what can be done :)
Excuse the delay, I've been away for holidays.

Quote:
[me@sandnyko gallery2-to-dvd-0.6.5]$ ./gallery2-to-dvd /the/path/to/my/albums/
./gallery2-to-dvd: line 598: [: -eq: unary operator expected

It seems I need to take a better look at the conditional statements:

This line doesn't really handle the situation where the data is invalid (I think),
and is probably related to the field naming issue below.
I probably should do an sql lookup to ensure that the site name is correct first.

Quote:
ls: /home/me/gallery2-to-dvd-0.6.5/g2-*.g2s: No such file or directory

Yes, it's totally confused now.

Quote:
./gallery2-to-dvd: line 933: [: ==: unary operator expected

Line 933 is a silly error that I've never noticed because I always make pal dvds.
Changing that line to read:

	if [ "$videoMode" == "-p" ]; then

should fix the problem. I'll update this in the next release.

Quote:
The name of the database where information are stored is "gallery2", and the tables in it are named like "g2_*", but the field names always begin with "g_*".
The result is that gallery2-to-dvd is unable to retrieve information from the database.

Interesting. Thanks for the info. I assume you have a single-site install?

Quote:
How can I bypass this problem?

If you're positive that the table names are g2_* and field names are g_*
then try this:

In function getMysqlData (lines 464-521), change line 491 to this

selectVariables=$selectVariables${g2SiteName}"_"${selectLoop/./."g_"}

and line 501 to this

conditions=$conditions" "$g2SiteName"_"${selectLoop%.*}".g_"${selectLoop#*.}

The root of the problem here is probably more that I'm doing direct
database lookups from the command line, rather than using the g2 api.
This issue will hopefully be addressed soon, however, if you manage
to get everthing running usings the hacks above, I might be able to
work a nice simple fix in the meantime.

I hope that helps, or at least gets you closer to a solution.

 
GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Fri, 2005-12-30 09:13

Thanks for your answer!

First of all, I have a single-site install, as you correctly guessed.

I have made the modifications you wrote, and now gallery2-to-dvd is working without error statements!

But I have another problem now: when I type the next command ("dvdauthor"), I have this:

Quote:
[me@sandnyko gallery2-to-dvd-0.6.5]$ dvdauthor -x /home/me/gallery2-to-dvd-0.6.5/g2-dvdauthor.xml
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=fr_FR
INFO: Converting filenames to ISO-8859-15
INFO: dvdauthor creating VTS
ERR: no titles defined

So what is the solution? I have run gallery2-to-dvd with the -n option but it did not do anything...

The file g2-dvdauthor.xml contains these lines:

Quote:
<dvdauthor dest="/home/me/gallery2-to-dvd-0.6.5/DVD" jumppad="0">
<vmgm>
<fpc>
g0=0; g1=1; g2=0; g3=1; g4=1; g5=1; g6=2;
if ( g4 == 1 ) subtitle=64;
jump menu 1;
</fpc>
<menus>
<video format="ntsc" aspect="4:3" resolution="720x480"/>
<subpicture lang="en"/>
<pgc entry="title" pause="0">
<pre> g0=0; g1=1; jump titleset 1 menu; </pre>
</pgc>
</menus>
</vmgm>
<titleset>
<menus>
<video format="ntsc" aspect="4:3" resolution="720x480"/>
<subpicture lang="en"/>
</menus>

<titles>
</titles>
</titleset>
</dvdauthor>

Thanks for your help!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2005-12-30 09:49

How odd.
Can you post me the log? (not into the forum as it's probably quite large)
marcusbrutus ^at^ users.sourceforge.net

ps. most of the errors will be swallowed and put in the log anyway.

 
GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Fri, 2005-12-30 10:31

I have sent you an email with the content of the log and the g2s files.

Before sendong you the content of the log file, I did not noticed the 3 errors which occured. Always the problem with the "g_" beginning of the field names.

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Mon, 2006-01-02 14:05

Patches have been sent.
Hoping for verification before adding modifications for 0.6.5 release.

Development currently underway for 0.7.x series (complete rewrite),
which uses the gallery2 api on the webserver to produce a dvd 'recipe'
which is then used by the client machine (which could also be the webserver)
to download the images, produce the slideshows, and then bake them into
one big pie ... *cough* ... I mean ... DVD! :)
ie. RECIPE ==> BAKE ==> BURN
heh, like the idea? :)

The G2api/webserver (RECIPE) portion is nearing completion.
It is envisaged that it should also be possible in future releases to build
a win32 client to bake the recipes (0.8.x???), when rewritten (again) in C.

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Wed, 2006-01-25 11:02

dvd-baker 0.7.29 (beta) has now been released after a complete rewrite.

Operation is now split into two parts:
- a php script on the G2 webserver creates a dvd recipe (dynamically)
- dvd-baker is a bash script capable of remote operation.

dvd-baker pulls the recipe from the website, and then all the listed ingredients.
The slideshows and menus are constructed, and linked together in a dvdauthor.xml file.
It can also (optionally) execute dvdauthor for you to construct the dvd filesystem.

Please see http://dvd-baker.sourceforge.net

Note: requires dvd-slideshow 0.7.3

 
Luke-Jr

Joined: 2005-11-18
Posts: 5
Posted: Wed, 2006-01-25 16:16

Any plans on a real G2 module?

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Tue, 2006-02-14 22:54

There certainly are, however, I'd intended doing a few other things first:
- release 0.7.40 (any day now :) ) ... vastly improved structure and features
- make a php front-end (dvd-chef?) for editing recipes ... possibly to use as a basis for a g2 module
- possibly change the structure of the dvd itself to include titlesets
- make some of the dvd's I wrote dvd-baker for in the first place ;)

ie. I know a module would be nice, but it's not high enough on my list to register as important.

That being said, a very basic module may be released (with a bit of help) if it all
comes together before 0.7.40 feels ready.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Sun, 2006-03-05 13:16

Hello,

I tried the Script and got this message:

I copied the file g2-dvd-recipe.php and executed the command you can see below what is my mistake?

debian:/opt/lampp/htdocs/pages/dvd-baker/dvd-baker-0.7.30# sh dvd-baker -u admin -p test http://localhost/pages/gallery2 [dvd-baker] getRecipe
[dvd-baker] prepareIngredients
[dvd-baker] getRecipe Invalid tag <br in recipe file at line:2
[dvd-baker] Aborted

Any Idea?

My Server/Gallery:

Gallery-Version = 2.0.2 Kern 1.0.0.2
PHP-Version = 5.1.1 apache2handler
Webserver = Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/5.1.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7
Datenbank = mysql 5.0.18
Werkzeuge = Exif, Thumbnail, Gd, SquareThumb, ArchiveUpload
Betriebssystem = Linux debian 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

---EDIT---

I tried to run Apache 4.* and now it works, but it is allready for abou 10 minutes at:

[dvd-baker] getRecipe
[dvd-baker] prepareIngredients
[dvd-baker] Preparing Slideshows: #
[dvd-baker] Preparing Menus: #

lets see, what happens in the next hour :)

---EDIT---

Yeah Its done! Great Script!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2006-03-05 15:07

Hi, ommma

Glad you got it going ... can you tell me what was wrong initially?

dvd-baker 0.7.35 is just about ready for release.
It was going to be called 0.7.40 ... but Oh well ;)
(I'm waiting for the official release of dvd-slideshow 0.7.5)
It includes two version of a g2 module :) (2.0 and 2.1)
The 2.1 version hasn't been fully tested, but then again, I haven't
received any complaints from the tasters yet ;)
0.7.35 is also about 6 times faster, and has many more features.

See http://dvd-baker.sf.net for more details.
You'll notice the website is ready for the updated version.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Sun, 2006-03-05 15:42

Yeah, Iam really looking forward to it, because I have a Gallery with about 8000 Pictures, at the moment i tested it with 400 and it took about 1 hour, so lets see what 0.735 will bring :)

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Sun, 2006-03-05 19:42

Hello,

I runned this test with the 400 Images and had no Problem, now I have this Vob, Bup and Ifo files. I opened them with my DVD Player on the Computer, and it works fine, but I am not able to burn them, or export them into an Iso file. As i don't have any DVD-Burner on my Linux Computer I have to use Windows. Which programm would you recomend to put this files into an iso (or other image file) or just burn them?

Thanks!

--EDIT--

As usual i found it out on my own, so i used mkisofs, and downloaded the file to my Computer and tried to burn it, but nero writes: Fals Disk for this file you have to Insert a CD not a DVD. I hope you have a solution before I find one :)

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2006-03-05 22:31

make sure you add -dvd-video to your mkisofs command line

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Mon, 2006-03-06 13:20

I have finally decided to bite the bullet and release.
dvd-baker 0.7.36 is available at http://dvd-baker.sf.net
The site includes compressed videos, pictures, samples,
and DETAILED manuals ;)

Most importantly, I've also released g2 modules for both
v2.0 and v2.1 galleries. They should be considered alpha.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Tue, 2006-03-07 19:47

I tried it now, did I have to install the Modul or is there a way to use it without the modul?

If I run it normal it shows me this:

Quote:
dvd-baker -t g2 -u admin -p password http://localhost/pages/gallery2 -i
/usr/bin/dvd-baker: line 1: growisofs: command not found
/usr/bin/dvd-baker: line 1: growisofs: command not found
[dvd-baker]
[dvd-baker] dvd-baker 0.7.36
[dvd-baker] Licensed under the GNU GPL
[dvd-baker] Copyright 2005-2006 by Marcus Brown
[dvd-baker] mailto:dvd-baker-users@lists.sourceforge.net
[dvd-baker]
[dvd-baker]
[dvd-baker] WARNING: VERSION DEPENDENCY FAILURE FOR wc
[dvd-baker] Specify --force to ignore warning.
[dvd-baker] Aborting.

I havn't put any file into the gallery2 directory, but I also hadn't found any. Do you know what i make wrong?

---Edit---
added --force

Quote:
[dvd-baker]
[dvd-baker] dvd-baker 0.7.36
[dvd-baker] Licensed under the GNU GPL
[dvd-baker] Copyright 2005-2006 by Marcus Brown
[dvd-baker] mailto:dvd-baker-users@lists.sourceforge.net
[dvd-baker]
[dvd-baker]
[dvd-baker] WARNING: VERSION DEPENDENCY FAILURE FOR wc
[dvd-baker] VERSION FORCED
[dvd-baker]
[dvd-baker]
[dvd-baker] WARNING: VERSION DEPENDENCY FAILURE FOR mkisofs
[dvd-baker] VERSION FORCED
[dvd-baker]
[dvd-baker]
[dvd-baker] WARNING: VERSION DEPENDENCY FAILURE FOR dvd+rw-tools
[dvd-baker] VERSION FORCED
[dvd-baker]
[dvd-baker] Making recipe for directory: http://localhost/pages/gallery2//
ls: /opt/lampp/htdocs/pages/gallery2/http://localhost/pages/gallery2//: Datei oder Verzeichnis nicht gefunden
[dir-dvd-recipe] FATAL ERROR! Failed to find any images!
[dvd-baker] FATAL ERROR READING RECIPE FILE.
[dvd-baker] Recipe: "/opt/lampp/htdocs/pages/gallery2/recipe.txt" does not exist.

The Debug file:

Quote:

dvd-baker log file
Licensed under the GNU GPL
Copyright 2005-2006 by Marcus Brown
mailto:dvd-baker-users@lists.sourceforge.net
Version: 0.7.36
Started: Don Mär 2 22:15:38 CET 2006
Command arguments: -p test -u admin http://localhost/pages/gallery2/ --force --debug 1

Input settings:
inputFile = stdin
Known spices = find_font zoom-pan zoom-scroll
Output settings:
output_dir = /opt/lampp/htdocs/pages/gallery2
runDVDauthor = no
Make ISO = FALSE
Burn DVD = FALSE
Other options:
get_only = FALSE
test_only = FALSE
ignore version = TRUE
dvd_title = will be set to title of the root menu
videoFormat = NTSC
quality = med
embedHighlights = off
randomAutoplay = off
skip menu = FALSE
optionsMenu = off
whiteMask = on
Oven used:
Brand name = GenuineIntel
Power rating = Intel(R) Pentium(R) M processor 1.50GHz
cpu MHz : 1499.428
Capacity = 284984 kB
Cupboard space = 377488 kB
Dependencies: NEED FOUND SATISFIED
dvd-slideshow 0.7.3 0.7.4 YES
gzip 1.3 1.3.5 YES
ImageMagick 6.0.6 6.0.6 YES
netpbm 10.0 10.0 YES
unzip 5.5 5.52 YES
wc 5.90 5.2 NO

WARNING: VERSION DEPENDENCY FAILURE FOR wc
VERSION FORCED

wget 1.9 1.9.1 YES
grep 2 2.5.1 YES
dvdauthor 0.6.9 0.6.11 YES
mkisofs 2.01 -le NO

WARNING: VERSION DEPENDENCY FAILURE FOR mkisofs
VERSION FORCED

dvd+rw-tools 5.21 -le NO

WARNING: VERSION DEPENDENCY FAILURE FOR dvd+rw-tools
VERSION FORCED

FATAL ERROR READING RECIPE FILE.
Recipe: "/opt/lampp/htdocs/pages/gallery2/recipe.txt" does not exist.
Please see logfile: /opt/lampp/htdocs/pages/gallery2/dvd-baker.log
For help, use $ dvd-baker -h

As i thought is the problem something with the recipe.txt how should I generate this file? I read the Manual but didn't find anything special how to use dvd-baker for g2?

I tried to use the dir-dvd-recipe, but i just tooks the whole folder, so i think i took the wrong? (Also if it really was a lot faster then the old Version!!! GREAT!!)

Looking forward to your reply!

Thanks!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Tue, 2006-03-07 21:24

Yes you DO have to install one of the modules to bake a g2 site.

I think my logic circuits probably burnt out some time ago. ;)
All the information about installing the g2 module is in the dvd-baker lib directory.
It's dawned on me now that the README, INSTALL and dvd-recipe modules (must rename them)
might be hard to find for a user who installs one of the distro packages (a recent invention).
I'll have a think about that for the next release.

The information you are looking for is most likely in /usr/lib/dvd-baker
The instructions are in INSTALL

There is no point in specifying '-i' (make iso) if mkisofs is not installed.

dir-dvd-recipe is a script in it's own right, but designed to be called by
dvd-baker with '-t dir' (which is the default anyway). There's no need to
use it directly.

I'll also improve the dependency checking logic when I can, and update the
version numbers.

Can you tell me which distro you're using?

ps. you might want to install mkisofs on your Linux machine, and then just
transfer the iso over for burning, rather than the whole DVD directory.

pps. the purpose of the samples is to verify that everything works correctly
before you start baking your own recipe.
Please try:

$ dvd-baker -d -e --sample 1

btw: your logfile shows that you specified an http source,
without a '-t g2' (sourcetype=g2) option.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Wed, 2006-03-08 08:42

Hello

I use Debian Sarge, the newest Version.

MKISOFS:

As I thought that I have mkisofs installted i typed this and got a message:

Quote:
mkisofs --version
mkisofs 2.01-unofficial-iconv (i686-pc-linux-gnu)

I allready tried to install the module but there is a problem with the versions:

Quote:
DVD Baker
Inkompatibles Modul!
Folgende Kern-API benötigt: 6.10 (verfügbar: 6.8)
Folgendes Modul-API wird benötigt: 2.4 (Verfügbar sind: 2.0)

My Gallery:

Quote:
Gallery-Version = 2.0.2 Kern 1.0.0.2
PHP-Version = 4.4.1 apache2handler
Webserver = Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/4.4.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7
Datenbank = mysql 5.0.18
Werkzeuge = Dcraw, Exif, Ffmpeg, ImageMagick, NetPBM, SquareThumb, Gd, ArchiveUpload
Betriebssystem = Linux debian 2.4.27-2-686 #1 Wed Aug 17 10:34:09 UTC 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

I runned Another Test:

Quote:
dvd-baker -d -e --sample 1 --debug 10

The Log file:

Quote:
dvd-baker log file
Licensed under the GNU GPL
Copyright 2005-2006 by Marcus Brown
mailto:dvd-baker-users@lists.sourceforge.net
Version: 0.7.36
Started: Mit Mär 8 10:38:25 CET 2006
Command arguments: -d -e --force --debug 10 /usr/lib/dvd-baker/samples/sample-1.txt.gz

Input settings:
inputFile = /usr/lib/dvd-baker/samples/sample-1.txt.gz
Known spices = find_font zoom-pan zoom-scroll
Output settings:
output_dir = /opt/lampp/htdocs/pages/files/dvd-baker-0.7.36
runDVDauthor = yes
Make ISO = FALSE
Burn DVD = FALSE
Other options:
get_only = FALSE
test_only = FALSE
ignore version = TRUE
dvd_title = will be set to title of the root menu
videoFormat = NTSC
quality = med
embedHighlights = on
randomAutoplay = off
skip menu = FALSE
optionsMenu = off
whiteMask = on
Oven used:
Brand name = GenuineIntel
Power rating = Intel(R) Pentium(R) M processor 1.50GHz
cpu MHz : 1498.930
Capacity = 284984 kB
Cupboard space = 377488 kB
Dependencies: NEED FOUND SATISFIED
compare_versions Comparing: 0.7.3 -le 0.7.4
dvd-slideshow 0.7.3 0.7.4 YES
compare_versions Comparing: 1.3 -le 1.3.5
gzip 1.3 1.3.5 YES
compare_versions Comparing: 6.0.6 -le 6.0.6
ImageMagick 6.0.6 6.0.6 YES
compare_versions Comparing: 10.0 -le 10.0
netpbm 10.0 10.0 YES
compare_versions Comparing: 5.5 -le 5.52
unzip 5.5 5.52 YES
compare_versions Comparing: 5.90 -le 5.2
wc 5.90 5.2 NO

WARNING: VERSION DEPENDENCY FAILURE FOR wc
VERSION FORCED

compare_versions Comparing: 1.9 -le 1.9.1
wget 1.9 1.9.1 YES
compare_versions Comparing: 2 -le 2.5.1
grep 2 2.5.1 YES
compare_versions Comparing: 0.6.9 -le 0.6.11
dvdauthor 0.6.9 0.6.11 YES
compare_versions Comparing: 2.01 -le
compare_versions Evaluating version:
compare_versions Comparing: 2.01 -le
mkisofs 2.01 -le NO

WARNING: VERSION DEPENDENCY FAILURE FOR mkisofs
VERSION FORCED

compare_versions Comparing: 5.21 -le
compare_versions Evaluating version:
compare_versions Comparing: 5.21 -le
dvd+rw-tools 5.21 -le NO

WARNING: VERSION DEPENDENCY FAILURE FOR dvd+rw-tools
VERSION FORCED

getRecipe Moving stale recipe
getRecipe
getRecipe Gunzipping recipe to /opt/lampp/htdocs/pages/files/dvd-baker-0.7.36
Recipe:
/opt/lampp/htdocs/pages/files/dvd-baker-0.7.36/recipe.txt

parseRecipe init
parseRecipe -----1- [#] dvd-baker sample 1
parseRecipe . . [#] tag
parseRecipe -----2- [dvd-recipe/]
parseRecipe . . [dvd-recipe] tag
parseRecipe -----3- [header/]
parseRecipe . .

tag
parseRecipe -----4- [version] 0.7.36
compare_versions Comparing: 0.7.36 -ne 0.7.36
parseRecipe . . [version] tag
parseRecipe -----5- [sourceType] dir
parseRecipe Setting sourceType to dir
parseRecipe . . [sourceType] tag
parseRecipe -----6- [base] .
parseRecipe . . [base] tag
parseRecipe -----7- [depend/]
parseRecipe . . [depend] tag
parseRecipe -----8- [name] dvd-slideshow
parseRecipe . . [name] tag
parseRecipe -----9- [version] 0.7.5
parseRecipe . . [version] tag
parseRecipe ----10- [command] dvd-slideshow -version | tail -n1 | grep -o "[[:digit:]].[[:digit:]].[[:digit:]]"
parseRecipe . . [command] tag
parseRecipe ----11- [echo] This recipe prefers dvd-slideshow >= 0.7.5 for the title, kenburns and crop effects
parseRecipe . . [echo] tag
parseRecipe ----12- [/depend]
parseRecipe This recipe depends on dvd-slideshow 0.7.5
compare_versions Comparing: 0.7.5 -le dvd-slideshow -version | tail -n1 | grep -o "[[:digit:]].[[:digit:]].[[:digit:]]"
compare_versions Evaluating version: dvd-slideshow -version | tail -n1 | grep -o "[[:digit:]].[[:digit:]].[[:digit:]]"
compare_versions Comparing: 0.7.5 -le 0.7.4
parseRecipe dvd-slideshow dependency not satisfied
parseRecipe WARNING: IGNORING DEPENDENCY FAILURE
parseRecipe
parseRecipe . . [depend] tag
parseRecipe ----13-
 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Wed, 2006-03-08 13:01

OK, I'll have a look at the detail tomorrow (bed time now).
Would you please send gzipped versions of dvd-baker.log and slideshows/slideshow-1-1/dvd-slideshow.log
to

?
Log files clog up the forum here, and I find them hard to read. :)

Glad to hear you're running Debian :)
I'll be able to create a virtual machine to emulate yours very easily, if necessary.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Wed, 2006-03-08 20:20

Another Test Run:

Gallery Version:

Quote:
Gallery-Version = 2.1-rc-1 Kern 1.0.27
PHP-Version = 4.4.1 apache2handler
Webserver = Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/4.4.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7
Datenbank = mysql 5.0.18
Werkzeuge = ArchiveUpload, Dcraw, Exif, Ffmpeg, NetPBM, Thumbnail, Gd
Betriebssystem = Linux debian 2.4.27-2-686 #1 Wed Aug 17 10:34:09 UTC 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

I typed:

Quote:
dvd-baker -t g2 -u admin -p test http://localhost/pages/gallery2.1/gallery2 --force --debug 10

The rest is in the Attachment!

(I don't like mailing :))

mfg oma

PS: As you can see I updated my Gallery and the new plugin doesn't show any error!

PS2: You have to rename the file to dvdtest.tar.gz (i don't know why he adds .txt??)

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2006-03-10 00:11

Thanks for posting your results, made thing a lot easier.
I've released a new version for you on sf.net
Also included a new option '-L' that might interest you :)

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Fri, 2006-03-10 11:49

Have you tried to solve the Problem I've got with the Script, because I still get the same failure.

Another Problem with the Modul:

When I Install it on the Top of my Gallery Site it shows this Message:

Quote:
Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/pages/gallery2.1/gallery2/modules/core/classes/GalleryTheme.class on line 1420

My Gallery:

Quote:
Gallery-Version = 2.1-rc-1 Kern 1.0.27
PHP-Version = 4.4.1 apache2handler
Webserver = Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a DAV/2 PHP/4.4.1 mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.2 Perl/v5.8.7
Datenbank = mysql 5.0.18
Werkzeuge = ArchiveUpload, Dcraw, Exif, Ffmpeg, NetPBM, Thumbnail, Gd, ImageMagick
Betriebssystem = Linux debian 2.4.27-2-686 #1 Wed Aug 17 10:34:09 UTC 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

Thanks for the Language addon, just GREAT!!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Fri, 2006-03-10 13:15
ommma wrote:
Have you tried to solve the Problem I've got with the Script, because I still get the same failure.

Yes I did try to solve the problem(s) you had.
However, by the time I finished working on all the problems that I identified (4am), I had completely lost track of the original purpose. I did manage to bake a modified version of your recipe. (Nice pics)
If you would please post another tarball, I'll have another go, and this time I'll load your images onto a test account on my g2 webserver and do it properly.

Quote:
Another Problem with the Modul:

When I Install it on the Top of my Gallery Site it shows this Message:

Quote:
Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/pages/gallery2.1/gallery2/modules/core/classes/GalleryTheme.class on line 1420

I'm not convinced that's a problem with the dvd-baker module, that looks theme related.
Try deactivating and uninstalling the dvd-baker module in g2 admin, delete the modules/dvdbaker directory and see if that error persists.

I'm also running 2.1rc1.

Quote:
Thanks for the Language addon, just GREAT!!

No problem, glad you like it ... hopefully it works properly ... a little difficult for me to test it :)
Had the idea for it while I was working through your logfile, and suddenly realised that it would be a little silly having non-English text stuffed into an English-only dvd ;)

If you can post a tarball of your latest results (it really would be better in email ;) ) I'll be able to work on it tomorrow (it's past midnight now).

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Sat, 2006-03-11 11:21
Quote:
I'm not convinced that's a problem with the dvd-baker module, that looks theme related.
Try deactivating and uninstalling the dvd-baker module in g2 admin, delete the modules/dvdbaker directory and see if that error persists.

I tried this allready and it shows the Failure only if I aktivate the dvd-baker Modul.

Quote:
If you can post a tarball of your latest results (it really would be better in email ;) ) I'll be able to work on it tomorrow (it's past midnight now).

I updated dvd-baker to the newest Version 0.7.38 and DVD-Slideshow to 0.7.5, and sent you the tarball by mail.

(I know its already late in your country but, its midday on my clock :))

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sat, 2006-03-11 13:56
ommma wrote:
Quote:
I'm not convinced that's a problem with the dvd-baker module, that looks theme related.
Try deactivating and uninstalling the dvd-baker module in g2 admin, delete the modules/dvdbaker directory and see if that error persists.

I tried this allready and it shows the Failure only if I aktivate the dvd-baker Modul.

Where is this message shown? Can you be more specific please?

Quote:
I updated dvd-baker to the newest Version 0.7.38 and DVD-Slideshow to 0.7.5, and sent you the tarball by mail.

Excellent, thanks for your trouble, however, I just discovered that sf.net mailing
lists have a 40KB limit (makes sense) so there's an email in the rejection mail that you can use.

Quote:
(I know its already late in your country but, its midday on my clock :))

*yawn*, hmmm :)
I've been working on this problem all day. (Without your tarball)
I've managed to add a new feature we'll call "intelligent diagnosis" :)
Got it working, just making the output look nicer.
This will help identify problems like permissions errors, module installation problems, etc.

If I fall asleep while you feel like playing, you might like to see if this works:

$ dvd-baker -d -e -u test2 -p test http://marcusbrutus.cust.internode.on.net/Kiah --debug 1

(I can't test it right now, but it WAS working ;) ... I've been forcing errors for my debug magic)
I'd love gzipped copies of login.html and dvd-baker.log from that test if you have time.
It *should* be an exact replica of your own test.

 
ommma

Joined: 2005-10-03
Posts: 52
Posted: Sat, 2006-03-11 18:03
Quote:
Where is this message shown? Can you be more specific please?

The message is on the Top of the page, and is allays shown ...

I sent you the tarballs another time. I hope they are ok!

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Tue, 2006-03-14 02:57

This sounds like a cool tool but having some difficulties.

As root I run

dvd-baker --get -t dir --force /var/www/localhost/g2data

[dvd-baker]     Recipe successfully retrieved
[dvd-baker]     Testing complete
[dvd-baker]     
[dvd-baker]     Done.

Then I run

dvd-baker --force recipe.txt

which produces:

[dvd-baker]     Baking progress: ln: creating symbolic link `/home/testme/Gallery2/DVD-baker/items/image_1.jpeg' to `/var/www/localhost/g2data/albums/2003_Summer_Vacation/Yellowstone/Dcp_1543.jpg': No such file or directory

It's right there is no such file because the actual file is named DCP_1543.JPG.
I then modify the recipe.txt to correct the filenames and run again but then I get:

[dvd-baker]     FATAL ERROR: Item does not exist: /home/testme/Gallery2/DVD-baker/items/_1.

So, is it me or does the script have some bugs?


Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 4.4.1-pl3-gentoo apache
Webserver = = Apache/1.3.34 (Unix) (Gentoo/Linux) mod_gzip/1.3.26.1a PHP/4.4.1-pl3-gentoo
mod_ssl/2.8.25 OpenSSL/0.9.7i
Database = mysql 4.0.25,lock.system=flock
Toolkits = Exif, Ffmpeg, NetPBM, ArchiveUpload, Thumbnail, Gd, Dcraw, ImageMagick
Acceleration = full/900, full/900
Operating system = Linux digi-archive 2.6.15-gentoo-r1 #1 SMP Sun Feb 5 12:13:48 PST 2006 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Tue, 2006-03-14 05:59
swordfish wrote:
This sounds like a cool tool but having some difficulties.

Looks pretty good too! (when it works ;)
Let's see what can be done to help.

Quote:
As root I run

dvd-baker --get -t dir --force /var/www/localhost/g2data

[dvd-baker]     Recipe successfully retrieved
[dvd-baker]     Testing complete
[dvd-baker]     
[dvd-baker]     Done.

-t dir option should be default when the source is a directory.
Why have you used --force?

Quote:
Then I run

dvd-baker --force recipe.txt

which produces:

[dvd-baker]     Baking progress: ln: creating symbolic link `/home/testme/Gallery2/DVD-baker/items/image_1.jpeg' to `/var/www/localhost/g2data/albums/2003_Summer_Vacation/Yellowstone/Dcp_1543.jpg': No such file or directory

Looks like dir-dvd-recipe is broken... I'll look into it

Quote:
It's right there is no such file because the actual file is named DCP_1543.JPG.

I suspect so.

Quote:
I then modify the recipe.txt to correct the filenames and run again but then I get:

[dvd-baker]     FATAL ERROR: Item does not exist: /home/testme/Gallery2/DVD-baker/items/_1.

Oh dear ...

Quote:
So, is it me or does the script have some bugs?

Probably both :)

Would you please post some details to

eg. a tarball containing dvd-baker.log and recipe.txt
and any information specific to your computer which you think relevant.
(There is a 40KB limit for postings to sf.net lists)

I can then have a really good look at all the information at once, and
hopefully make necessary improvements for the next release.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Tue, 2006-03-14 09:09

marcusbrutus,

If I don't use --force then I get a version dependency failure for DVD-slideshow and the script aborts.
Logs posted to the user list.

Thanks!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sat, 2006-03-25 00:47

The latest version of dvd-baker has been released.

Significant improvements have been made, including:
- updated dir-dvd-recipe
- audio support (inc. generic and midi conversion)
- support for converting generic image types
- improved compatability with bash 2.05b (Debian Sarge)
- menu overflow handling
- differential slideshow and menu recreation
- more detailed progress indication
- ...and much, much more.

Get your hot and crunchy version of dvd-baker now!
http://dvd-baker.sourceforge.net

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sat, 2006-03-25 07:25

hey Marcus,

Looks as though you solved the issues I had.
2 hours later and still bakin. No errors or faults so far.

Thanks!

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sat, 2006-03-25 07:45

Phew! (*Fingers crossed*)

Like the progress indicators? :)

( See the FAQ on sf.net re burning smells )

I'm not completely convinced that I've fixed it all,
but it's a lot better than it was, and after restructuring
a lot of things, and changing a few techniques used,
I've got a lot better base to deal with.

ps. Thanks for letting me know.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sat, 2006-03-25 09:35

It's still cookin... guess I have alot of images :-).
I don't think the progress bar works. All it does is output an "S" once every 30 minutes.
Baking Progress: SSSSSSSSS

Gotta get some sleep now so hopefully by tomorrow it will have completed successfully.

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sat, 2006-03-25 10:46

It's best to have a cpu monitor running at the same time.
eg. I use gkrellm http://www.gkrellm.net/

As long as debug<=1 you should also see a 'whirlygig'
next to the 'S', which is updated 5 times per second.
A 'whirlygig' shows baking in progress.

Progress letters:
S : A slideshow has been baked.
s : A previously baked slideshow that has been skipped
M : A menu that has been baked.
m : A previously baked menu that has been skipped

Opening another console, and changing to the same
directory, you can do a 'tail -F dvd-baker.log' to see
what's happening. (as long as debug>0)

In short, when unsure, run a cpu monitor, tail the log
in another console, and run with '--debug 1'.

The time that each slideshow takes to bake will depend
on the power of your oven, the number of images in the
slideshow, the number (and type) of effects used ...
( the direction of the prevailing winds :) )
and so on ... so very hard to even estimate percentage
(although I have an idea)
... hence the whirlygig.
There is a small check however. If the size of the output
directory doesn't change after a while, you will here 3
beeps and see a warning message prompting you to cancel
if you think something has died. Because dvd-baker is so
'nice', this can be an irritation if your computer is
busy doing other things at the same time.

How powerful is your oven ...err computer?

I'd love to see a gzipped log if you have any problems.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sat, 2006-03-25 20:36

Right after I posted my above comment I noticed the CPU was railed to 100%.
I thought that was a bit excessive and then discovered I had two runaway processes.
I killed them and the cpu utilization went down to 50%.
My machine is a 1.7GHz Dual Xeon, 1GB ram.

The bad: DVD-baker aborted.

Error:
[dvd-baker] Baking progress: SSSSSSSSSSSSSSSSSSSSSSSSSSS
[dvd-baker] convert: /home/zman/Gallery2/DVD-baker/items/image_1784.tiff: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory'.
[dvd-baker] FATAL ERROR CONVERTING IMAGE
[dvd-baker] Image: "/home/zman/Gallery2/DVD-baker/items/image_2227.jpeg"
[dvd-baker] Aborting

This looks to be more of an IM convert issue vice DVD-baker.?
My guess is that windows/Photoshop is adding an extra 'meta-tag' to the TIFF image and IM does not understand these extra unknown tags.

I'm using Imagemagick v6.2.5.5. Viewing the source for IM tiff.h I find:
tag 37724 is private tag registered to Adobe for PhotoShop

I did in fact use Photoshop to create/edit my Tiff images.

According to some posts in the Imagemagick forums IM 6.2.6 fixes some of these tag errors.
So, maybe I'll try compiling and installing the newer version.
I'm determined to get this DVD-baker working on my system!

Thanks for your help.

Update: I upgraded to IM 6.2.6.0 and tried converting the tiff image to a png and jpg. The result was the same error but both the jpg/png image was in fact created and not corrupted. However, all the meta-tag info had been stripped out. The tiff in question here is 600dpi, 34MB.

Update2: I removed the offending Tiff images from the recipe... so here we go a bakin again.

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2006-03-26 00:09

Try gkrellm,
all sub-processes started by dvd-baker are green (niced)

http://dvd-baker.sourceforge.net/screenshots/sample1/screenshot4.shtml

I'm not sure if I can do anything about the IM issue, thanks for the info.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sun, 2006-03-26 01:25

Marcus,

I don't have problem with processes or anything like that now. After removing the Tiff images from recipe.txt DVD-baker proceeds along nicely but now I get the following error:

[dvd-baker] Baking progress: SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
[dvd-baker] parseRecipe FATAL ERROR: Item does not exist: /home/zman/Gallery2/DVD-baker/items/image_1372.jpeg
[dvd-baker] Aborted

The frustrating part is that each time I rerun DVD-baker with the recipe.txt it aborts on a different image.
The image does exist and the path is correct to the G2 album dir. The image_1372.jpeg does exist in the items dir.
Any idea what could be causing this issue?

 
marcusbrutus

Joined: 2005-11-17
Posts: 64
Posted: Sun, 2006-03-26 02:26

hmmm.
Can you send me a gzipped dvd-baker.log?
I've got a theory, but can't prove it without debug info.