From: Varol <va...@mo...> - 2006-12-25 21:09:05
|
Folks, While creating subtitles I found that some images are counting 1 too many colors. I create subtitles in QDVDAuthor and all of them have 3 colors but for some reason I get 4 colors counted when using spumux. See image below. It has only 3 colors but spumux reports 4 colors on my system. http://qdvdauthor.sf.net/b.png Now if I could solve this issue I could actually increase the color map to 4 colors total. Any help is appreciated. Varol :) Ps. I am using "Version: ImageMagick 6.2.5 04/09/06 Q16 http://www.imagemagick.org" PPs. mtpaint is a nice tool to check the color count. |
From: Ben H. <be...@de...> - 2006-12-28 02:02:07
|
On Mon, 2006-12-25 at 16:06 -0500, Varol wrote: > Folks, >=20 > While creating subtitles I found that some images are counting 1 too > many colors. >=20 > I create subtitles in QDVDAuthor and all of them have 3 colors but for > some reason I get 4 colors counted when using spumux. Did you get dvdauthor from your distribution, from the Sourceforge release, or from the darcs repository? The Debian package includes a patch I made which will add transparency to the palette if it's not already included and if there's a spare palette entry. I don't remember whether this adds to the reported number of colours. > See image below. It has only 3 colors but spumux reports 4 colors on my > system. > http://qdvdauthor.sf.net/b.png >=20 > Now if I could solve this issue I could actually increase the color map > to 4 colors total. Any help is appreciated. Is this an issue? Have you tried increasing the colour map to 4 colours yet? > Varol :)=20 > Ps. I am using "Version: ImageMagick 6.2.5 04/09/06 Q16 > http://www.imagemagick.org" This isn't the version number of dvdauthor/spumux but of one of the libraries spumux uses. Ben. > PPs. mtpaint is a nice tool to check the color count. --=20 Ben Hutchings For every complex problem there is a solution that is simple, neat, and wrong. |
From: Scott S. <sco...@gm...> - 2007-01-07 19:35:38
|
On 12/27/06, Ben Hutchings <be...@de...> wrote: > The Debian package includes a patch I made which will add transparency > to the palette if it's not already included and if there's a spare > palette entry. I don't remember whether this adds to the reported > number of colours. why did you do that? -- Scott |
From: Ben H. <be...@de...> - 2007-01-08 02:46:36
|
On Sun, 2007-01-07 at 11:35 -0800, Scott Smith wrote: > On 12/27/06, Ben Hutchings <be...@de...> wrote: > > The Debian package includes a patch I made which will add transparency > > to the palette if it's not already included and if there's a spare > > palette entry. I don't remember whether this adds to the reported > > number of colours. >=20 > why did you do that? I found that my Panasonic standalone player and one of the software players (I forget which) would sometimes add a narrow strip of colour 0 along the bottom and right of subpictures. At a guess they may be padding to a multiple of 2 pixels. Usually colour 0 will be whatever colour is at the top left pixel of the subpicture and that's a border or background colour that's also present on the right and bottom edges, so this isn't noticeable. When that isn't the case, it becomes obvious. Ben. --=20 Ben Hutchings For every complex problem there is a solution that is simple, neat, and wrong. |
From: Scott S. <sco...@gm...> - 2007-01-08 07:12:40
|
On 1/7/07, Ben Hutchings <be...@de...> wrote: > I found that my Panasonic standalone player and one of the software > players (I forget which) would sometimes add a narrow strip of colour 0 > along the bottom and right of subpictures. At a guess they may be > padding to a multiple of 2 pixels. Usually colour 0 will be whatever > colour is at the top left pixel of the subpicture and that's a border or > background colour that's also present on the right and bottom edges, so > this isn't noticeable. When that isn't the case, it becomes obvious. I have heard of the multiple-of-2 issue, but I haven't (yet) coded that in as a requirement (or a warning). Yeah, the specific colors have meaning, which spumux does not allow you to set. I always wondered if that mattered or not. Guess it does... -- Scott |
From: Scott S. <sco...@gm...> - 2007-01-13 01:44:48
|
On 1/7/07, Ben Hutchings <be...@de...> wrote: > I found that my Panasonic standalone player and one of the software > players (I forget which) would sometimes add a narrow strip of colour 0 > along the bottom and right of subpictures. At a guess they may be > padding to a multiple of 2 pixels. Usually colour 0 will be whatever > colour is at the top left pixel of the subpicture and that's a border or > background colour that's also present on the right and bottom edges, so > this isn't noticeable. When that isn't the case, it becomes obvious. I noticed my Pioneer will add a strip of color 0 if the bottom Y coordinate is odd. I just made it a warning if you use odd Y coordinates. I'm surprised about it happening on the right edge though. Can you test what happens if you make your X coordinates even? Does that cause the problem to go away? -- Scott |