Log in

View Full Version : DVDSupTools not working as expected


IVaN_000
17th January 2009, 22:24
What am I doing wrong? I have a subpicture.sup file, generated with txt2sup, which I need to extract its contents to graphically edit a subtitle line. This works fine:

DVDSupDecode.exe -bitmap -ntsc subpicture.sup

The result is:

subpicture.txt
subpicture_00000001.bmp
subpicture_00000002.bmp
etc.

So far so good. Every bmp is perfectly readable, and the .txt has the right frame numbers. Now, this doesn't work fine:

DVDSupEncode.exe -ntsc subpicture.txt

The resulting subpicture.sup looks like random pixels when muxed with Muxman or when viewed with DVDSubEdit. And looks like empty subtitles when viewed with SupViewer, with Position (0,0) and size (1,1). The original .sup looked fine when muxed, or when viewed with DVDSubEdit or SupViewer.

But... If I run:

DVDSupDecode.exe -bitmap -ntsc subpicture.sup

to the apparently corrupted .sup, it extracts successfully all the .bmps. So they actually were in there.

This happens even if I don't edit the .bmps. And it happens with every subtitle I tried. Any ideas?

manusse
18th January 2009, 15:59
Could you have a look at your final subpicture (sup) file with SubtitleCreator and report if it looks correct or not.

Cheers
Manusse

IVaN_000
18th January 2009, 21:47
Thanks for your reply.

It doesn't look correct. It doesn't show at all. In "Manipulate SUP or VobSub file", you can see correctly the number of subtitle lines, but they all look empty.

Maybe somebody can try this, and tell me if the results are the same as mine:

- In SubtitleCreator v2.2, a new subtitle like this, with vertical position in about 353, which I named test.srt:

00,000 -> 10,000 - START OF|SUBTITLES
10,001 -> 20,000 - END OF|SUBTITLES

Save SUP as -> test.sup


- DVDSupDecode.exe -bitmap -ntsc test.sup

The resulting test.txt looks like this:

;test.sup
FrameRate=29.97
Palette=8239
Alpha=FFF0
{0}{300}{test_000001.bmp} <- (this would probably overlap with the next, so I change it to {0}{299})
{300}{600}{test_000002.bmp}

Rename or delete the file test.sup, so it won't interfere with the next step


- DVDSupEncode.exe -p:NTSC test.txt

The resulting test.sup doesn't look at all in SubtitleCreator and SupViewer, and looks like noise in DVDSubEdit or when muxed with Muxman.

I know there are other alternatives to do what I want, like the .son format, but I would really like to do this with DVDSupTools.

manusse
18th January 2009, 22:43
Hi,

Could you put the resulting (buggy?) sup to a file sharing site (rapidshare like) and post the link here (or PM it to me).

I'll try to have a look at it.

Cheers
Manusse

IVaN_000
18th January 2009, 23:13
There you go:

http://dl.getdropbox.com/u/9900/test.zip

Please notice, in test.log (generated by DVDSupEncode) you can read "FrameH = 576", even when I specify -p:NTSC in the command line.

manusse
19th January 2009, 19:53
Hi,

Try the new version (beta) of SubtitleCreator and you'll see it can open them.
Extract from the changelog:

When opening SUP files that have more than 1 SP_DCSQT, only the first one is used. This enhances the compatibility with DVDSupEncode. See following message for details about the solved problem: http://forum.doom9.org/showpost.php?p=1076316&postcount=281

So you aren't doing anything wrong but most of the sup editing programs here don't support subtitles that have more than one SP_DCSQT.

Cheers
Manusse

IVaN_000
23rd January 2009, 22:31
Great. I don't know what a SP_DCSQT is, but I open the .SUP in SC v2.3 and save it again, and the resulting file works everywhere. Thanks a lot.

manusse
24th January 2009, 10:15
You can also try to directly use SubtitleCreator.

Cheers
Manusse