Bug 75289

Summary: menu creation borked in dvdauthor, bad ImageMagick interaction
Product: Ports & Packages Reporter: spadger <spadger>
Component: Individual Port(s)Assignee: Pierre Beyssac <pb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description spadger 2004-12-20 08:00:51 UTC
	DVD Menu creation (spumux) is borked on the above combination
	of packages (current ports as of this report). No buttons
	are detected, the mask file is detected as one giant button
	(jumppad still works).

	According to this post on a GenToo forum:

	http://forums.gentoo.org/viewtopic.php?t=117709&postdays=0&postorder=asc&start=200&sid=25f5ea21c8a84bf33c3fc0301ddfba05

	the index used to indicate transparency in ImageMagick has
	changed for versions >= ~6.0.7

	However, the last release of dvdauthor doesn't seem to know
	this, possibly it pre-dates it.

	The last two alphas of dvdauthor don't compile, it was
	easiest to fix this problem than sift through the broken
	autocruft^Wautoconf.

Fix: Drop this into /usr/ports/multimedia/dvdauthor/files as
	patch-subgen-image.c:
How-To-Repeat: 
	Follow any functional tutorial to create a DVD menu. spumux
	will detect the entire mask file as a single button:

spumux spu.xml < main_menu.mpg > final.mpg
DVDAuthor::spumux, version 0.6.10.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to US-ASCII
INFO: Picture had 2 colors
INFO: Picture had 2 colors
INFO: Constructing blank img
INFO: Autodetect 0 = 0x0-720x576
INFO: Pickbuttongroups, success with 1 groups, useimg=1
WARN:  Read 0, expected 4
INFO: Found EOF in .sub file.
INFO: Max_sub_size=1966
INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18

Statistics:
- Processed 0 subtitles.
- The longest display line had -1 characters.
- The maximum number of displayed lines was 0.
- The normal display height of the font arial.ttf was 0.
- The bottom display height of the font arial.ttf was 0.
- The biggest subtitle box had 1966 bytes.

	With the patch applied, the output looks rather different
	and DVD menu buttons are functional:

/tmp/spumux spu.xml < main_menu.mpg > final.mpg
DVDAuthor::spumux, version 0.6.10.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to US-ASCII
INFO: Picture had 2 colors
INFO: Picture had 2 colors
INFO: Constructing blank img
INFO: Autodetect 0 = 38x44-97x78
INFO: Autodetect 1 = 37x94-189x128
INFO: Autodetect 2 = 37x141-352x181
INFO: Autodetect 3 = 40x192-207x230
INFO: Pickbuttongroups, success with 1 groups, useimg=1
WARN:  Read 0, expected 4
INFO: Found EOF in .sub file.
INFO: Max_sub_size=722
INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18

Statistics:
- Processed 0 subtitles.
- The longest display line had -1 characters.
- The maximum number of displayed lines was 0.
- The normal display height of the font arial.ttf was 0.
- The bottom display height of the font arial.ttf was 0.
- The biggest subtitle box had 722 bytes.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-12-20 16:50:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pb

Over to maintainer
Comment 2 Pierre Beyssac freebsd_committer freebsd_triage 2004-12-20 22:06:50 UTC
State Changed
From-To: open->closed

Committed, thanks!