PDA

View Full Version : DivX Media subtitle creation (xsub)


Zhnujm
9th February 2005, 19:07
I created a little utility that converts .bmp files to .xsub subtitles, mostly for playback in my hardware player.
The .xsub files can be muxed directly in your avi files with fuse.exe.

Download: link (ftp://zhnujm.dyndns.org/bmptoxsub.zip)


First thing, we need bitmaps for every subtitle.
For that use SubRip and save subtitles as .bmp files.

Format:
-Philips SVCD Designer
-4bits
-Custom Colors (you HAVE to use custom colors, dont know why), color 1 should be black
-Minimum picture width 720, minimum picture height 576 (PAL) or 480 (NTSC)
-As Output format for the timecode file you have to use TurboTitler .tts format

Then convert the bitmaps to .xsub with bmptoxsub:
BMPTOXSUB timecodefile xsubfile bitmapfile(without the numbers at the end) PAL/NTSC switch

Example:
bmptoxsub english\time.tts test.xsub english\bitmap PAL

The bitmap filenames would be in this example bitmap00001.bmp, bitmap00002.bmp,...
Make sure they start with 00001.

The resulting .xsub file can be muxed with fuse.exe:
fuse -v film.avi -s test.xsub -o film.divx


--edit
I did not even know the name of my program...

thefluffy
10th February 2005, 02:16
Cool !

Please note the subtitle bitmap limit is 720 x 480, not 720 x 576. If you exceed this limit, you lose the guarantee of DivX Certified playback.

I'm sure the community will appreciate you respecting the limit.

LordRPI
10th February 2005, 03:28
Nice work! I've tested it out with a clip of my own and it's working!

But just so you know



Example:
bmp2xsub english\time.tts test.xsub english\bitmap PAL



should be

bmptoxsub english\time.tts test.xsub english\bitmap PAL/NTSC


This is excellent work!

Zhnujm
10th February 2005, 15:35
Thanks, at least it works for somebody else than me :)

Originally posted by thefluffy
Cool !

Please note the subtitle bitmap limit is 720 x 480, not 720 x 576. If you exceed this limit, you lose the guarantee of DivX Certified playback.

I'm sure the community will appreciate you respecting the limit.

Does that only mean the bitmap size can not be bigger than 720x480 or also that the bitmap cannot be placed below 480 pixels ?
First thing can surely be solved but the second one would be a major problem for PAL users.
I dont like subtitles in the middle of the screen....

thefluffy
12th February 2005, 02:45
You have a max of 720 x 480 for the subtitle bitmap. This bitmap is then scaled to the video resolution.

So if the subtitle bitmap and video resolution are the same, then it's 1 for 1.

Zhnujm
12th February 2005, 18:55
But there is no scaling if you use a hardware player.
The subtitle is displayed exactly at the position that you define. Lets say i use a 200x50 bitmap and place it at 300,430-499,479 then it appears near the middle of the PAL screen.

So i need to place it at something like 300,510-499,559.

Jeffster
13th February 2005, 02:56
I have just tried your converter with a PAL clip and the settings you suggest including 720-576 for the bitmaps.

It works and the subs play back fine.

I then changed the TV standard setting on my standalone from Multi to NTSC... the result is that the subs are no longer visible, as they are positioned too low. Other than that, the clip still plays back okay.

I made a second sample with the same PAL clip using 720-480 for the bitmap size in SubRip. Forcing NTSC output to my TV and it played fine this time with the subs showing up, although the font seems out of proportion (quite tall). Is that the same on your NTSC clips?

Playback in PAL mode though is a problem. Yes the subs are higher up on the screen, but there is some flickering and weirdness when subs appear.

I imagine the recommened subtitle limit of 480 that was mentioned here is so they will be compatible with NTSC only TV's (as I understand it, Multisystem TV's are rare in America)?

Zhnujm
13th February 2005, 12:25
What hardware player did you use ? For me (Yamaha 550) the subs stay at the same position if i switch from PAL to NTSC.
Im currently testing some PAL/NTSC clips to see what happens.
The next version wont need fullscreen bitmaps so it should be easier to place them on screen.

Jeffster
13th February 2005, 13:07
Originally posted by Zhnujm
What hardware player did you use ?

Philips 640K

Zhnujm
13th February 2005, 19:19
I tried some combinations:

PAL video, 576 bitmap: perfect
PAL video, 480 bitmap: subtitles to high
NTSC video, 480 bitmap: perfect
NTSC video, 576 bitmap: subtitles to low (out of the screen area)

I will implement 2 modes, one wich uses a 720x576 bitmap for PAL and one that uses 720x480 for PAL and moves the subtitles down as far as possible.

thefluffy
15th February 2005, 19:15
That is correct.

For NTSC the resolution limit is 720x480.
For PAL the resolution limit is 720x576.

Zhnujm
15th February 2005, 22:26
Well, thats good to hear even after i created a mode to move the subtitles up to 480.....

Heres the new version:
download (ftp://zhnujm.dyndns.org/bmptoxsub.zip)

Everything is changed, use it like this:

bmptoxsub 1 2 3 4
1: Timecodefile (Philips SVCD-Designer .sub format
2: Output subtitle file (.xsub format)
3: (optional) Path to bitmap files
4: (optional) PALMODE1/PALMODE2(default)

examples:
bmptoxsub test\test.sub subtitle.xsub
bmptoxsub test\test.sub subtitle.xsub c:\files\
bmptoxsub test\test.sub subtitle.xsub PALMODE1


SubRip subtitle format:
SVCD-Designer, 4bits, custom colors,width+height+left+top dividable by 2

It now uses directly the SVCD-Designer .sub format, no need to convert to .tts.
Also theres no need anymore to use fullscreen bitmaps.
The TC&Res option must be enabled in SubRip.

PALMODE1:
Moves subtitles to NTSC save area for PAL->NTSC conversion.

PALMODE2:
Use original subtitle position.

If no path is specified it searches for the bitmap files in the current folder and in the folder where the .sub file is.
Its not tested with NTSC files, so make sure you check the output....
And dont use to complicated filenames, nobody knows what could happen.

LordRPI
16th February 2005, 18:34
Originally posted by thefluffy
That is correct.

For NTSC the resolution limit is 720x480.
For PAL the resolution limit is 720x576.

It's funny, when you actually know the guy in person, you read it with an Australian accent ;)

SeeMoreDigital
16th February 2005, 20:20
Hi Zhnujm,

Do you have an short PAL and NTSC "example clips" you can provide us?


Cheers

Zhnujm
16th February 2005, 21:29
Heres a short example with 2 subtitle streams:
download (ftp://zhnujm.dyndns.org/small.divx)

Download may be slow.


It seems to me that the (Software) DivX-Player does not correctly recognise the subtitle position, i have a dvd that has some subtitles at the top, but the DivX-Player shows them at the bottom. Hardware playback is OK.

SeeMoreDigital
16th February 2005, 22:25
Originally posted by Zhnujm
,,,It seems to me that the (Software) DivX-Player does not correctly recognise the subtitle position, i have a dvd that has some subtitles at the top, but the DivX-Player shows them at the bottom. Hardware playback is OK. Are you using a stand-alone player that recognises PAR/DAR signalling in AVI?

If so, you might be interested to know (or you might already know) that MPEG Modifier will accept Mpeg4 streams with an .divx file extension!

I was hoping that after adding 16:9 DAR signalling to your sample, DivX Player would have displayed the subtitles in the correct place... but sadly it didn't :(


Cheers

thefluffy
16th February 2005, 22:56
The subtitle stream of small.divx is as follows:

00:00:05.080 00:00:07.720 "small000.bmp" (214 464 505 535)
00:00:07.880 00:00:11.400 "small001.bmp" (172 464 545 535)
00:00:11.560 00:00:14.600 "small002.bmp" (174 464 543 529)
00:00:14.960 00:00:16.800 "small003.bmp" (262 504 455 529)
00:00:17.000 00:00:19.040 "small004.bmp" (182 464 535 529)

Lets take the first one for example; left as 214, right as 505, top as 464, and bottom 535. This subtitle shouldn't play at the top of the screen.

Maybe I'm looking at the wrong file ?

Zhnujm
16th February 2005, 23:30
Originally posted by thefluffy
Maybe I'm looking at the wrong file ?

Yes, sorry, maybe i was not that clear, thats NOT the file with the subtitle at the top :)
I can make it available tomorrow.

Zhnujm
17th February 2005, 18:19
Heres the same file as above, but the first and the third subtitle should be at the top:

download (ftp://zhnujm.dyndns.org/small2.divx)

Its works in hardware, but not with DivX-Player.

thefluffy
17th February 2005, 19:25
This is a DivX Player bug. Thanks for the feedback !

Zhnujm
17th February 2005, 22:23
Originally posted by SeeMoreDigital
If so, you might be interested to know (or you might already know) that MPEG Modifier will accept Mpeg4 streams with an .divx file extension!


Nice, seems to work.
I thought it would loose the subtitle streams after saving.

SeeMoreDigital
17th February 2005, 22:37
Originally posted by Zhnujm
Nice, seems to work.
I thought it would loose the subtitle streams after saving. So did I...

I also tried to de-muxing the video stream using AVI-mux (v1.16.11). But could not :o

Have you tried de-muxing the video stream?


Cheers

stephanV
17th February 2005, 23:18
demuxing the video stream should be possible with VirtualDub... AVImux GUI seems to b0rk yes.

SeeMoreDigital
17th February 2005, 23:45
Originally posted by stephanV
demuxing the video stream should be possible with VirtualDub... AVImux GUI seems to b0rk yes. Can you have a go? I don't have VirtualDub or VirtualDubMod installed.


Cheers

stephanV
18th February 2005, 00:04
I'm quite sure it works. VirtualDub will give you a bunch of warnings about the subtitles, but you can ignore those.

Furthermore, its only a <1MB download, and you should have it anyway... :rolleyes:

(how can one work with AVI and not have VirtualDub...)

SeeMoreDigital
20th February 2005, 23:28
Originally posted by stephanV
I'm quite sure it works. But have "you" (or anybody else for that matter) tried it yet?


Cheers

stephanV
20th February 2005, 23:42
works

SeeMoreDigital
21st February 2005, 00:17
Originally posted by stephanV
works Was VirtualDub/Mod able to detect and de-mux both the 640x352 and 1280x720 DivX video streams?

Cheers

stephanV
21st February 2005, 10:08
of course not, only the first stream. the second stream is not in the riff tree of the first. basically what DivX is doing is "copy /b normal.avi+menues+HD.avi new.divx". Since this is not in anyway allowed for AVI, VirtualDub ignores the menues and HD part.

If you want to extract the HD part you need a hexeditor and do some serious "find and replace". I managed to do it though. :)

stephanV
21st February 2005, 11:57
it should also be possible with Haali's splitter and graphedit BTW - since that splitter can detect AVI segments and ignores chunk IDs.

tvdpoll
25th February 2005, 14:05
First of all, thx for the program, it works great!!!! Now I can finaly watch my movies with good subs. The fuse program accepts *.srt files, but they get displayed to high on my dvd-player. With bmptoxsub it's perfect! Just like watching a dvd.

However, I've tried to get this working with *.srt files, converting the text into bitmaps using srt2sup. I get the bitmaps allright, and can convert the *srt file to a *.sub file using subrip, but somehow the bmptoxsub program does not accept the bitmaps. I get no error, but the xsub file is small (about 6k for a 2 hour movie) and does not work, neither on the pc nor on my dvd-player.

Is there a way to get this to work? In that way we can ad subtitles in languages we have not available on the dvd.

Thanks in advance for help and advise!

Zhnujm
25th February 2005, 19:21
Srt2sup seems to create 24bit bmp files, but bmp2xsub only accepts 4bit bmp files.
You can batch convert the images for example with irfanview to 4bit, then it works, but i cannot find a solution to get the right colors.

If i set the outline to black it gets transparent during playback, and custom colors are not possible with srt2sup. A dark gray would be useful.



--edit
I think a can make switch to override the color settings.

Btw, is there any other program for srt to bmp conversion ?

tvdpoll
26th February 2005, 00:46
I do not know of any other program that can convert srt to bitmaps.

I am still trying to get it to work using srt2sup. I am getting quite far, transforming the sup into vob using ifoedit, but ifoedit does not like this very much without a movie-file (have to cheat, and open a file like movie-file and than delete it, before saving the new ifo), but I get some synchronisation problems. Also, the first and last lines are left out (don't know why, probably has to do with the fact that a videofile is missing in ifoedit). Keep on trying dough.

If you could get it to work without the use of ifoedit, that would be great (and easier as well)!

tvdpoll
26th February 2005, 02:03
I seem to have it working!!!

Using srt2sup and irfanview. I am using the following colour settings (attention: I think you need to use these in Global settings).
backround: black
text: grey
outline: white
antialias: silver

It works on my pc. Haven't tested it on my dvd-player yet, and i'm going away for a week tomorrow, but i am sure it will work on my player as well.

Thanks for directing me to irfanview.

Zhnujm
26th February 2005, 23:53
Dont use the old version of bmptoxsub for converting, it will not produce compatible files with SRT2SUP. It seems that SupRip is not able to convert the .srt that SRT2SUP generates correctly to Philips SVCD Designer .sub format, the bitmap coordinates and dimensions are not right.
This does work in software but does not work with my hardware players.

Heres a new version of bmptoxsub: download (ftp://zhnujm.dyndns.org/bmptoxsub.zip)

It takes care of the problems and has 2 new (optional) options:
SRT2SUP - forces outline color to black so you can use any outline color in SRT2SUP
REPOS - changes the position of the subtitles to the bottom safe area, may be useful with SRT2SUP as it places the subs a bit to low for some TVs.

tvdpoll
28th February 2005, 11:57
Thanks once more Zhnujm. This is great news!

Like i said, I am away this week (but do have a internetconnexion), so I can not test it this week. Will try it as soon as I am back, but i am sure it will work great! Now I can add "professional looking"subs to my divx movies!

javierperezch
1st March 2005, 16:32
I managed to generate a SUB file in Philips SVCD format with its corresponding set of 4 bits BMP files using the srt2sup / subrip / InfranView stuff
I used black background, white outline, yellow font and olive antialias.
Then I generated the XSUB file using the last version of BMPTOXSUB using the SRT2SUP mode enabled in order to get black outline instead of white.
Finaly, I muxed an AVI and the resulting XSUB using FUSE.
When I play the generated DIVX file, randomly some subtitle lines are displayed with yellow font (as I wanted to) but others are displayed in cyan. The outline is always white, although I used the SRT2SUP option to get a black outline. The BMPs used to generate the XSUB file are all 4 bits and the text are displayed in yellow when I open the files with Windows 2000 Paint.
I didn't try it on a stand alone player.
Am I doing anything wrong?

Thank you

Zhnujm
1st March 2005, 20:21
Originally posted by javierperezch
Am I doing anything wrong?


I think not.

Two problems:
Colors are not displayed right (yellow is not yellow):
I recognised this also with subrip, try red and it gets displayed as blue, yellow is cyan. I hav no idea why that is, the colors are read from the bitmap file with a function from the DivX SDK. Maybe a bug in the SDK or subtitle demo code.

Second:
Theres no general rule how Irfanview chooses the palette colors. The setting SRT2SUP only changes the second enrty in the palette to black.
In your case this is the oliv antialias :rolleyes:

I think i can solve the second problem by adding an option to choose the palette entry that should be black but i dont now if i can solve the first problem.

Zhnujm
1st March 2005, 20:43
Well problem 1:
The Red and the Blue RGB values are swapped.
Is this definition in subtitleparser.h correct ?

typedef struct _DIVXBITMAPRGBQUAD
{
uint8_t rgbBlue;
uint8_t rgbGreen;
uint8_t rgbRed;
uint8_t rgbReserved;
}
DIVXBITMAPRGBQUAD;

Shouldnt it be Red-Green-Blue instead of Blue-Green-Red ? Unfortunatly i have no idea if the order matters at all.
The colors are right if i swap the Red/Blue values in my program, but not if i change the header file.

javierperezch
1st March 2005, 21:18
Originally posted by Zhnujm
Colors are not displayed right (yellow is not yellow):
I recognised this also with subrip, try red and it gets displayed as blue, yellow is cyan. I hav no idea why that is, the colors are read from the bitmap file with a function from the DivX SDK. Maybe a bug in the SDK or subtitle demo code.

The problem is that for some text lines, colors are displayed correctly, and for others they are swapped.

If colors were displayed always swapped, if for instance I wanted to show blue subtitles, I could write them in red, and then get them displayed in blue. But instead I would get some lines in red and some in blue.

Zhnujm
1st March 2005, 21:43
If you could send me a single bitmap that is correctly displayed as yellow to zhnujm@hotmail.com ?
I cannot reproduce that, the colors are always wrong for me.

I did not recognised this before as i only use white/grey/black for subtitles. And in this case the swapped values have no effect.

javierperezch
2nd March 2005, 13:38
Ok.
I'm sending you some BMP samples to your mail.

Javier

javierperezch
2nd March 2005, 17:08
Zhnujm,

I didn't keep a copy of the BMPs causing the problem, so I tried to generate them again. I don't know why, but I cant reproduce the problem anymore. I did it a lot of times yesterday and allways I got some lines Ok and some wth swapped colors, but now I get all lines with swapped colors!!! It's weird because I'm using the same exact programs I used yesterday in the same way!!!

javierperezch
3rd March 2005, 17:44
Oops! I did it again!

I don't know exactly how (I supposedly did exactly the same than before), but I was able to reproduce the problem again. I'll send you now some samples of the BMPs.

Zhnujm
3rd March 2005, 19:51
Thanks, i got your mail. I will see what happens. Maybe the problem is a different color palette in each BMP file.

Until then heres a new version:
download (ftp://zhnujm.dyndns.org/bmptoxsub.zip)

It switches the red and blue values and has new optional options:
SRT2SUP1 SRT2SUP2 SRT2SUP3 SRT2SUP4
Wich these you can select wich color will be replaced with black. Just look at the palette of the BMP file with irfanview and choose the right color.

SRT2SUP is no more allowed.

yippy_yaya
4th March 2005, 00:56
****************************************************
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

E:\>cd dvd2divx\divx\bitmapn

E:\dvd2divx\divx\BitmapN> bmptoxsub eng\eng.tts eng.xsub eng\eng
Timecode file: eng\eng.tts
Subtitle file: eng.xsub
Bitmap file path: eng\eng
PAL Mode: 2
SRT2SUP Mode: 0
REPOS Mode: 0
Cannot parse, (PAL/NTSC)

E:\dvd2divx\divx\BitmapN>
****************************************************************
What's wrong with mine one???
i save the bmptoxsub inside the bitmapn folder.Inside the bitmapn folder got eng folder. inside the eng folder is *.tts and eng00001.bmp.... files

pls advice.

Zhnujm
4th March 2005, 14:25
Sorry, many things were changed since my first post. tts files do not work anymore, you can directly use the philips .sub format (you have to as i need the position data for the bitmaps and the filenames inside the .sub file).

here the new decription:

bmptoxsub 1 2 3 4 5 6
1: Timecodefile (Philips SVCD-Designer .sub format
2: Output subtitle file (.xsub format)
3: (optional) Path to bitmap files
4: (optional) PALMODE1/PALMODE2(default)
5: (optional) SRT2SUP1/SRT2SUP2/SRT2SUP3/SRT2SUP4
6: (optional) REPOS

In your case a
bmptoxsub eng\eng.sub eng.xsub
should be enough.

If you dont use a bitmap path it searches in the folder where bmptoxsub is and in the folder of the .sub file.

tvdpoll
10th March 2005, 01:36
I'm back home again ;-)

Thx for your work, Zhnujm. It works!

However, I've tried it on a longer srt file (I, Robot), and I get the next error:

Cannot Parse, <POSITION>

I've tried it in REPOS MODE 1 as well, but with the same result.

What can this be?

Thx in advance

----------------

Never mind, i've already figured it out. The txt was 'going off screen'. I now check this within srt2sup before I convert to bitmaps and it works great now!!!!

Thanks so much, Zhnujm; for your nice tool!

Zhnujm
14th March 2005, 15:29
Nice to see that it works, im a bit out of time currently. (World of Warcraft)
I already tried javierperezchs bitmap files and for me both show the same wrong colors (or correct colors with the current bmp2xsub version). So im out of ideas.
Im also want to implement a mode with repositions x and y values so it will completely override srt2sups settings.

tvdpoll
14th March 2005, 17:28
Zhnujm,
Repositioning would be nice. If we could just give the aim size (for instance 720 x 576) and that bmptoxsub would ajust to the bottom and the centre, that would be very fine.

As for the colours, i've used it quite some times now, but i have never had any problems with colors.

Once again, this is a very nice little tool, that increased my pleasure of watching my avis (divx's) on my stand-alone player enormously!

vsr
15th March 2005, 13:42
Zhnujm,
tank you for this nice tool. I'm write a little app to convert from srt files to xsub files using your little and amazing program.

Features:

1. Convert from srt to bmp (PHILIPS SVCD designer file format);
2. Convert from above format to xsub (simple GUI to bmptoxsub);
3. A simple GUI to fuse;
4. can process srt files in batch mode to gen xsub's.

I have some problem with your time parser routines then Zhnujm, I ask you about the possibility of your program accept time format as hh:mm:sec.ms?

For those who wants try the program, download it here: ftp://200.136.190.108/srttobmp-1.0.4.18.rar

2005-05-05 Added some suport to non-alphabet charset. See changes.txt for more.

I write the app in my spare time then, don't expect a amazing one. The interface is a little... "complicated?" and have some bugs and useless features, for most of you, but works fine for my needs (produce a .divx file for watch in my standalone a Philips dvp642k/78 firmware v0531).

vsr

tvdpoll
15th March 2005, 18:42
vsr,

Very nice tool, thx.

However (complaining as usual), I have a little problem with it in the sence that I have a movie of 640 x 356 and no matter what I do, the subtitles are displayed somewhat high on my tv (pal).

I have tried it with a 720 x 400 movie as well, and that worked just fine.

Any advise?

Thx in advance, and thx for the nice tool!

vsr
16th March 2005, 14:54
@tvdpoll,

thanks for trying the tool. I made a little change in app and create a new option in miscelaneous "PAL TV" mode. It will change the "size" of bitmap to PAL res 720x576. Basicaly only change the bitmap positions.

You can try to uncheck the Clip Bitmap option and test but I have no ideia if will work (DMF limitations, Player limitations, who knows? I'm a hobbyist not an expert.)

Use the link in my last post to download the new version.

vsr

tvdpoll
16th March 2005, 15:10
thx vsr! I will try it right away and let you know the outcome.

tvdpoll
16th March 2005, 15:20
Sorry, but it does not seem to work. I get the following error when I want to create the xsub: "error, could not parse, <POSITION>".

Seems to be a problem with the positioning.

vsr
16th March 2005, 17:19
I suspect that, DMF are limited up to 720x480 resolution.


vsr

tvdpoll
16th March 2005, 17:32
Sorry, vsr, but what is DMF?

What I find strange is that I can position them lower using the srt2sup and bmptoxsup tools.

It would be great if this would be possible using your tool, since this is so much easier to use.

vsr
16th March 2005, 17:41
Sorry, DMF = Divx Media Format.

vsr

tvdpoll
16th March 2005, 17:49
But if I can do it using srt2sup and bmp2xsup, does this not mean that it is 'technically' possible, in other words, that the divx media format accepts this?

Zhnujm
16th March 2005, 20:11
Originally posted by vsr
I have some problem with your time parser routines then Zhnujm, I ask you about the possibility of your program accept time format as hh:mm:sec.ms?


That would be possible, in fact it would be easier as the divx media also uses milliseconds. I think i can create a millisecond mode, but it would be best if the ms value always use 3 chars for easier parsing.

@tvdpoll:
Are you trying to create the subtitles with the "REPOS" option ?
Thats not possible as it semms that srttobmp creates full-screen bitmaps.

vsr
16th March 2005, 20:55
Originally posted by Zhnujm
That would be possible, in fact it would be easier as the divx media also uses milliseconds. I think i can create a millisecond mode, but it would be best if the ms value always use 3 chars for easier parsing.

No problem, srt files uses 3 chars for millisec. I could use a modified Philips SVCD Designer file (or a specific one to make easier) as output for bmptoxsub, some suggestion?

Zhnujm, correct me if I wrong, bmptoxsup uses the FRAMERATE header to determine the size of bitmat, right? PALMODE1 and PALMODE2 determines if change bitmap position or not.

@tvdpoll,
srttobmp was generating Philips SVCD Designer only for NTSC I fixed that. Now seems to work. Download and try, again.

vsr

tvdpoll
16th March 2005, 21:25
@vrs
Thx! I'll give it a try, and will let you know bout the result

@Zhnujm
No, dit not use repos.

tvdpoll
16th March 2005, 22:27
vrs,

The positioning problem seems to be gone :-)
but now i get another error :-(

"cannot parse, <FRAMEMS>"

What does this mean? And can we do something about it?

Zhnujm
16th March 2005, 23:05
Thats an error in the frame to millisecond conversion.
I can look tomorrow what it means exactly, dont know anymore :D

vsr
17th March 2005, 12:37
This hapens when file header FRAMERATE (.sub file) points to NTSC or PAL values and the frame part of time code to another, eg.

XX:XX:XX:30

in ms results:

1) NTSC => 30 * 33 = 990
2) PAL => 30 * 40 = 1200 *** wrong value

in 2nd case we have PAL FRAMEHEADER and a NTSC frame value resulting in error: "cannot parse, <FRAMEMS>"

The values 33 and 40 are rounded time of duration for one frame (33.36ms for NTSC and 40ms for PAL). I discover the error, by observation of bmptoxsub log file. this error was fixed in srttobmp build 1033. tvdpoll please verify the file version.


vsr

tvdpoll
17th March 2005, 13:34
Vrs, thx for your comment.

However, I do not understand exactly. Which file version should I check? I have used the lates version of your tool when I got this error...

vsr
17th March 2005, 14:22
Right click in exe file, select properties and click in version tab, file version should be 1.0.3.3.

If version number match then I have another bug.

Can you send me the "bmptoxsub.log" file of your last erroneous conversion and the header part of .sub file generated by my tool.

vsr

tvdpoll
17th March 2005, 14:35
vrs,

Thx for looking in to this.

I have the right version (1.0.3.3).

I did not have the erroneous files anymore. But have reproduced them. Where do you want me to send the files?

vsr
17th March 2005, 14:45
please send to vsr@polo.faenquil.br

vsr

tvdpoll
17th March 2005, 16:24
vrs,

Files sent...

vsr
17th March 2005, 17:28
tvdpoll,
Bug fixed (I hope), try it again...

Download it here (ftp://200.136.190.108/srttobmp-1.0.4.18.rar) (build version 1.0.4.18 - 2005-05-05)

vsr

tvdpoll
17th March 2005, 17:39
vrs,

It seems to be working now! Great!!! Have not tried the result on my standalone player yet, but i'm sure it will be ok (will confirm this later).

Thanks for this great tool. Now subtitling my movies is a peace of cake ;-)

Zhnujm
17th March 2005, 18:26
Hi !
I added support for ms values, the lines should look like that:
test100001.bmp 00:00:05.020 00:00:07.180 292 072 214 050

I dont have any longer testfiles for that so maybe its working....


Originally posted by vsr
Zhnujm, correct me if I wrong, bmptoxsup uses the FRAMERATE header to determine the size of bitmat, right? PALMODE1 and PALMODE2 determines if change bitmap position or not.


The FRAMERATE header is used for creating the right divx subpicture size (always 720x576 for PAL or 720x480 for NTSC) and also for converting frames to milliseconds. PALMODE1 forces NTSC dimensions also for PAL.

Small request:
Can you change your program to create only bitmap sizes with even numbers ? Dont know if its a real problem but divx media format does only allow even numbers.
They should also start at even x and y positions but thats no problem as bmptoxsub already changes these values (i had some problems with playback on my hardware player without that).

tvdpoll
17th March 2005, 18:47
@vrs

Still trying, have some problems. Will let you know...

tvdpoll
17th March 2005, 19:50
Have it working.

Somehow the placement of the subs seems to be related to the size of the movie. Can anyone tell me exactly how this works?

Thx.

vsr
17th March 2005, 21:28
@Zhnujm
thx for added suport for milliseconds. I added "Force even sizes" and "Use millisec in time code" options in miscelaneous.

@tvdpoll
I gen subs only in NTSC I don't noticed this, until now, for this reason, maybe.

Download new version with fixes, improvements and non-cosmetics changes in GUI in same link.


vsr

Zhnujm
18th March 2005, 14:09
The subtitle position should be independent from the movie size, at least for hardware playback.
For software playback it seems that the whole subtitle frame size 720x576/480 is scaled down to the movie resolution and then displayed, but i dont know exactly.

tvdpoll
18th March 2005, 14:19
Originally posted by Zhnujm
For software playback it seems that the whole subtitle frame size 720x576/480 is scaled down to the movie resolution and then displayed, but i dont know exactly.

Somehow this seems to be what my Stand alone DVD player (Mystral 364) is doing. When I used a movie with smaller resolution, the subs where placed out of sight, and I had to use a bottom margin of 120.

Anyway, other than that, everything is working fine now, so I would once again like to thank the both of you (Zhnujm & vrs) for your nice work!!!

vsr
21st March 2005, 20:05
Revised version released (ftp://200.136.190.108/srttobmp-1.0.4.18.rar) I made some changes on preview to allow more precise positioning of subtitle.

4:3 Preview mode (partially tested)
NTSC mode (default) - tested - works fine (tested on Philips DVP642/78).
PAL mode not tested

16:9 Preview mode (not tested)

2005-05-05 added suport to non-alphabet charset.
korean Hangeul - tested and working.

@tvdpoll
if you can test the PAL mode, let me know the results thx.

vsr

tvdpoll
24th March 2005, 21:50
@vrs

sorry, have been away this week, just came back home tonigh. Will test it tomorrow or during the weekend and will let you know the results.

tvdpoll
26th March 2005, 10:23
@vrs

Pal mode works fine, thx. However, I still have some problems positioning the subtitles, it does seem to be related to the movie resolution on my dvd player.

dragonlyXXL
30th March 2005, 03:20
First, Thank you Zhnujm & vsr for making these tools. They we're the only tools I found for muxing subtitles into my DivX movies to be able to watch them on my I-O Data AvelPlayer.

The only thing I have a problem with right now is the latest version of srt2bmp: for some reason I can't see anything in the preview area, with any settings I've tried, and of course, when I try to generate the bmps, they're all blank. In the last 2 previous versions everything was fine. Am I doing something wrong?

(...and btw, vsr: is there any chance you can post a link to any of the older versions of your tool? I've mistakingly overwritten it with the last one, which doesn't work for me:( THX!)

Cheers, and thank you for a great job.

vsr
30th March 2005, 14:27
Originally posted by dragonlyXXL
for some reason I can't see anything in the preview area, with any settings I've tried, and of course, when I try to generate the bmps, they're all blank. In the last 2 previous versions everything was fine. Am I doing something wrong?

No, I don't know what happens but happens. File corruption I think. I detect the problem and update the file on server after five minutes. You must be the lucky one that's get the corrupted file.
Try the new version (ftp://200.136.190.108/srttobmp-1.0.4.18.rar) with some fixes and minor changes in code. I added a new option "Force multiple of 16" to fix a small diference in position of subs in "preview" and TV screen (seems to work, at least in my player).


(...and btw, vsr: is there any chance you can post a link to any of the older versions of your tool? I've mistakingly overwritten it with the last one, which doesn't work for me:( THX!)
Unfortunately no. I don't keep old versions.

I almost forget, from now the build version is part of packed file name.

vsr

dragonlyXXL
30th March 2005, 17:28
the new version works like a charm! thank you.

miras19
6th April 2005, 11:55
Hallo! Finally I can post now!
I have still problems with creating this subtitle!
I figure out that I must in mux DMF connect .xsub file with movie is this right? But when I do "Double click to select"
the subtitle is not there! But I maked it by clicking on Make Xsub button, and it created me an .sub file!? What is wrong??? And when I only mark and add to job list the movie and pres start job it shows me an error. Please help:confused:

vsr
6th April 2005, 13:32
Hi miras19,

I found this small guide as a original post of "dragonfly" in this forum (http://www.iodata.com/usa/forum/archive/index.php/t-143.html),
following the modified version by me.

To add XSub subtitles to your video:
===========================
1. put the fuse.exe, divxcheck.dll, aviMux.dll (from the fuse package)
in the same folder as SRT2bmp.exe and bmptoxsub.exe (from the Doom9 forum);

2. start SRT2bmp;

3. load your SRT file. (make sure you don't have any spaces in the srt
filename);

4. setup your styling preferences (font, color, location etc...). Make
sure the subs fit inside the reference lines you have in the preview
pane, otherwise you'll have problems in the following steps. when you
load the srt file, the app will point you to the longest subtitle
line;

5. After above step, define your output directory for the BMPs;

6. Generate BMPs from your srt, use the "Render BMPs" button;

7. if you got no warnings or error messages, you'll have a sub file
and a series of bmp files on directory defined on step 5;

8. generate the XSub file using the "Make Xsub..." button, point the
app to the directory where you have the bmps and sub. Use the same
directory to save the xsub file, and check the "delete bmp after
creating xsub" checkbox.

9. if you get the xsub file you're ready to mux so continue to the
next step, otherwise you had some bmps extending beyond the size
allowed by the fuse tool (NTSC: 720x480, PAL: 720x586), so you'll need
to tweak the line breaks and/or size of your subtitles and generate
the bmps again untill you're good.

10. once you got the xsub file just "Mux DMF..." and point the app to
your avi and xsub, and mux.

thx dragonfly for this small guide in english, I have no time to write
one until now.

vsr

miras19
6th April 2005, 14:41
Thanks Very Much you vsr and dragonflyXXL for this guide :)
Edit:
Have still problems with muxing;)I have maked a .xsub file but When I prees the start job button it shows me a Dos Screen wich says error opening AVI file >C:\"Here is the movie path"< for reading
Processing beginning chunks. And a standard winXp window "It is a problem with fuse.exe blablabla send or don't send raport! Have try your guide in any ways but nothing :angry: But thanks anyway for your help, and sorry for taking your valuable time! Bay

mgh
14th April 2005, 12:20
fuse converts subtitles to xsub format before muxing-or am i missing something?

vsr
14th April 2005, 13:30
@miras19
And a standard winXp window "It is a problem with fuse.exe blablabla send or don't send raport!

I have same problem twice, the first one I solve by loading the file in virtualdubmod and saving again with "direct strem copy" option. The second I have to reencode the movie to solve the problem.

@mgh
fuse converts subtitles to xsub format before muxing-or am i missing something?
Yes and no. Yes when you passes the ".srt" file as a parameter to fuse. No when you use srt2bmp to generate the .xsub file in that case srt2bmp converts .srt file to .sub file (and bitmaps) then bmptoxsub converts the .sub file, generated by srt2bmp, to xsub.

vsr

miras19
18th April 2005, 13:42
Ohh:D Thanks for your help, but still have a problem... what is this " loading the file in virtualdubmod and saving again with "directstrem copy" option"?!? How do I maked this? Do I need I program for??? :confused: :D

vsr
18th April 2005, 14:14
Originally posted by miras19
Do I need I program for??? :confused: :D
No, VirtualDubMod (VDubMod) is a modified version of popular VirtualDub program, for linear video editing. I don't know what but when I load (open) the movie file (the problematic one) in VDubMod and save it again with no reencode (Menu: Video | Direct Stream Copy) then fuse process the new "saved" file without problem.

vsr

dragonlyXXL
22nd April 2005, 02:33
@vsr:
Glad you found my guide on the LinkPlayer forum. I was thinking of posting a more generic guide here (the one on the forum was somewhat specific for LinkPlayer users), but you beat me to it.
Cheers.

neo_anderson
24th April 2005, 09:39
can i convert a .sub (dvd subtitle) or .idx file directly to xsub, without using subrip to form srt fles in between?

neo_anderson
24th April 2005, 09:43
srttobmp download is not working

vsr
25th April 2005, 14:04
Originally posted by neo_anderson
srttobmp download is not working

If this link (ftp://200.136.190.108/srttobmp-1.0.4.18.rar) not work, try here (http://polo.faenquil.br/~valerio/srt2bmp/srttobmp-1.0.4.18.rar) .


vsr

neo_anderson
25th April 2005, 20:41
Originally posted by vsr
If this link (ftp://200.136.190.108/srttobmp-1.0.4.14.rar) not work, try here (http://polo.faenquil.br/~valerio/homepage/download.php?lng=en) .


vsr

Thanks

westgroveg
1st June 2005, 14:51
First thanks Zhnujm for making this program. Second where can I get fuse.exe?

Thanks,
Martin

westgroveg
1st June 2005, 14:58
First thanks Zhnujm for making this program. Second where can I get fuse.exe?

Thanks,
Martin
Fuse SDK.

Third do I need to create a .DIVX output?

ricardo.santos
16th June 2005, 22:37
Hi vsr.

ive been using your tool since version .13 but a week ago this error started to appear even with the last versions .

can you shed some light?

thanks

thefluffy
16th June 2005, 22:47
The DivX Media specification for subtitle support was modified slightly after receiving feedback from CE partners. The str2bmp tool is running on the outdated specification and tools (fuse). Shortly we will release updated tools and documentation for the DivX Media format.

ricardo.santos
16th June 2005, 23:00
The DivX Media specification for subtitle support was modified slightly after receiving feedback from CE partners. The str2bmp tool is running on the outdated specification and tools (fuse). Shortly we will release updated tools and documentation for the DivX Media format.


Im using the outdated fuse tool. i didnt put the new fuse on the srt2bmp folder.

dont know whyit stooped working.

thanks the fluffy

vsr
17th June 2005, 13:49
Hi vsr.

ive been using your tool since version .13 but a week ago this error started to appear even with the last versions .

can you shed some light?

thanks

I can't see the screenshot :(, but I must to agree with thefluffy if you are using the tool with files encoded with new divx.

vsr

vsr
17th June 2005, 16:03
Hi vsr.
can you shed some light?
thanks

Hi ricardo,

when the error occurs? while rendering process?
I can't reproduce the error here.

vsr

ricardo.santos
17th June 2005, 18:56
Hi vsr!

no im not using the divx6.
this started before divx6 was launched, couldnt post anything earlier because of some nasty virus(sasser) that plagued me for more than a week.

it happens when i try to open the srt file.

it used to work fine.

you can see the image i posted now

vsr
17th June 2005, 19:20
it happens when i try to open the srt file.
All srt file or only a few ones?
My routines to parse srt files are too basic and not able to handle some kind of... (how to say?) "mistake" in file structure.
Empty lines may generate the error.
I suggest you to use another app like subtitle workshop to analyse and probably fix the srt file.

you can see the image i posted now
Yes.

ricardo.santos
18th June 2005, 00:28
it happens with all srt's even with the ones i already used before with srt2bmp(remember my first post here when you answered me some questions?)

im using fuse because i tried using divx converter but the subtitles generated by it are not so good.

Eliéser
21st June 2005, 19:49
Since divx 6 is out, there are some update in the fuse.exe?

szion
30th June 2005, 07:56
Is there anyone that has that bmptoxsub.zip?the link doesn't work. I really need it.I would be greatfull if someone could send it to me, or upload it somewhere (on rapidshare for example, because I guess I'm not the only one looking for this).

ricardo.santos
30th June 2005, 20:25
send me a pm with your email and i will send it to you

Welpy
4th July 2005, 14:20
it happens with all srt's even with the ones i already used before with srt2bmp(remember my first post here when you answered me some questions?)

I've got the same access violation. In my case it's been srt-files with unix line endings (lf), after converting to dos (cr+lf) it worked perfectly!

JuanCC
4th July 2005, 22:41
Is there any tool to transform directly DVD Subtitles (from an .ifo file , for example) to .xsub?

milo8080
27th July 2005, 19:56
link for bmptoxsub is not working...

can someone fix it pls ?? :)

vsr
27th July 2005, 20:14
link for bmptoxsub is not working...

can someone fix it pls ?? :)

See post #95 (http://forum.doom9.org/showpost.php?p=645438&postcount=95) , please.

vsr

milo8080
27th July 2005, 20:57
k tnx! :D

well i have a problem with charset...

when i load the .srt

some char like:

è
à
ò

are bad imported... :(

how can fix this ?

see the attach

or check here http://xoomer.virgilio.it/bazzuka02/charset.png

vsr
28th July 2005, 15:48
Are you changed the charset?
If yes, can you contact me in PM and send the subtitle file?

vsr

neo_anderson
31st July 2005, 21:49
does the fuse and srt to bmp and bmp to xsub work with divx 6 helium encoded avi?

Sagittaire
1st August 2005, 00:47
does the fuse and srt to bmp and bmp to xsub work with divx 6 helium encoded avi?

fuse work with all mpeg4 asp compliant stream (xvid, lavc, 3ivx or divx6 helium)

qknet
16th August 2005, 04:26
Can anybody fix the srt2bmp link? I could not download from any posted ones.
:thanks:

vsr
16th August 2005, 18:43
Can anybody fix the srt2bmp link? I could not download from any posted ones.
:thanks:

Try here (http://polo.faenquil.br/~valerio/srt2bmp/srttobmp.rar) for release 1.0.4.19.

vsr

qknet
22nd August 2005, 12:33
srt2bmp encode vietnamese texts wrong though the charset has been set and they displayed right in edit and lines panels (see the different between the big (captures.jpg) and the two smaller (capture3.jpg and capture4.jpg)).

will it be better in the future?

sutter
29th August 2005, 08:51
Hello,
I have a big problem with srt2bmp.

The rendering in BMP works fine, but when I start "Make XSub", I have this message (see Capture_078.jpg) :
Create Process Error #2: The system cannot find the file specified

The srt2bmp folder containt this files :

aviMux.dll
divxcheck.dll
Fuse.exe
how-to.txt
readme.txt
SRT2bmp.exe
SRT2BMP.ini

In my works folder, I have the .srt, .sub and .bmp files

What's wrong?:helpful:

vsr
29th August 2005, 14:08
What's wrong?:helpful:

bmptoxsub.exe is missing.

vsr

sutter
30th August 2005, 10:14
:thanks: That's work :)
Only audio mux doesn't work, but I use VirtualDubMod for it.

Mtz
28th October 2005, 13:37
The subtitles which contain dialogues are not centered.
The subtiltes are looking like this:
- First line of subtitle.
- This is the second line of subtitle.

Can be this bug fixed?

enjoy,
Mtz

vsr
29th October 2005, 18:58
Can be this bug fixed?
That is not a bug, dialog lines are centered by the longest line and aligned to left. I can put an option in program to center both lines when I back to my home next week.

vsr

TwoToad
30th October 2005, 10:40
I tried the methods in this thread, and then I found a different and much simpler method of muxing subtitles into a .divx. Just rip your subtitles into SRT format and then use fuse:

fuse -v video.avi -a audio.mp3 -s subtitle.srt -o file.divx

Not sure how this differs from going the long way around to create xsub files...

Mtz
1st November 2005, 03:13
I can put an option in program to center both lines when I back to my home next week.

vsr
Thanks. I'm waiting for this new version.

enjoy,
Mtz

vsr
1st November 2005, 18:22
@Mtz

You can download a new version here (http://polo.faenquil.br/~valerio/srt2bmp/srttobmp.rar). This version (1.0.4.20) have a new check box option "Center dialogues" in "Subtitle box". When checked both lines in dialogue must be centered.

vsr

Mtz
1st November 2005, 22:49
Thank you!

enjoy,
Mtz

PS: You renamed me in the changelog as Mtx. I am Mtz. But not a big deal. Users to pe happy. ;)

vsr
3rd November 2005, 11:30
You renamed me in the changelog as Mtx.

Oops, my fault, sorry. It was fixed now. "x" and "z" are too close, in keyboard :D

vsr

GDion
11th November 2005, 15:35
Nice knowing you're still working on this great frontend.

Thank you.

ricardo.santos
14th November 2005, 16:25
While opening one of the DMF created by Srt2bmp with Divxplayer(software) it reported the file as being an High definition file, i took a closer look at the command line srt2bmp produces and in one of the lines it says "option --profile = >HD<", does this mean srt2bmp "tags" the files as high definition files? just curious about this as srt2bmp works perfectly when playing the DMF's on my samsung divxplayer

would it be possible to add a function to srt2bmp to allow the user to see to wich language does the xsub belongs to when switching subs like in a normal dvd? what we see now is the total of xsubs and the number of wich is selected.

Valeu Valério!!

Thanks

Ricardo

vsr
16th November 2005, 12:40
While opening one of the DMF created by Srt2bmp with Divxplayer(software) it reported the file as being an High definition file, i took a closer look at the command line srt2bmp produces and in one of the lines it says "option --profile = >HD<", does this mean srt2bmp "tags" the files as high definition files? just curious about this as srt2bmp works perfectly when playing the DMF's on my samsung divxplayer

A bug in fuse, I guess.

would it be possible to add a function to srt2bmp to allow the user to see to wich language does the xsub belongs to when switching subs like in a normal dvd? what we see now is the total of xsubs and the number of wich is selected.

I know that's possible with a xml project file but I don't know how to build that xml file. I read something about in other threads (Sagittaire posts) and in sample files from divx labs but I'm confused and waiting for more divx specifications.


vsr

filo74
16th November 2005, 16:53
Something is not working.

I am ripping (backing up) the movie DAS_BOOT from DVD9. It has 3 6ch audiotracks - German (original), English and Russian, 1 Lithuaninan 2ch audiotrack and English, German, and Estonian subtitles. Total of 1.87GB.

I wish to fit it on DVD5 and to preserve all streams, but DVD rebuilder with CCE and 5 passes produces too poor quality. There is 700Mb menu too which rebuilder refuses to compress no matter what extra reduction I choose. (Of course I could manually modify .ecl files, but I decided to skip on that.) Finally it tries to put 200 minute movie into 2 gigs and of course there is nothing good out of it.

So I started to look for DivX solution. The 2.4Gb DivX version looks brilliant. There are no compression artifacts visible even on 400% zoom. I have successfully used DivX with several audio tracks - VirtualDubMod allows to add several audio streams. They switch well with remote even on my cheap standalone DivX player (Elenberg).

Also I have successfully created DVDs with several subtitles and languages in IFOEdit. I have even mastered Sonic Scenarist to create DVD with menus and multiple subtitle and audio streams. It takes about a week to get into it, but when it's done it is easy to author a DVD with any combination of subtitles, languages, buttons and menus created in Photoshop with Scenarist pretty fast.

I thought maybe if there is a tool to mux avi with sup files extracted from DVD maybe they play and switch on DivX standalone too.

I found the first Zhnujm tutorial. Of course it did not work. Then I read through pages of this forum and found the new Zhnujm tutorial. But I still got the same result.

I started from Estonian subs. Here is a contents of my batch file:

--------
bmptoxsub Estonian.sub Estonian.xsub
pause
--------

The folder also containts aviMux.dll, bmptoxsub.exe, divxcheck.dll, SRT2bmp.exe, Fuse.exe

And here is a result:

_________________
C:\DAS_BOOT\Estonian>bmptoxsub Estonian.sub Estonian.xsub
Timecode file: Estonian.sub
Subtitle file: Estonian.xsub
Bitmap file path:
PAL Mode: 2
SRT2SUP Mode: 0
REPOS Mode: 0
Cannot parse, <PAL/NTSC>

C:\DAS_BOOT\Estonian>pause
Press any key to continue...
_________________

I though maybe there is something wrong with my bitmaps. Interesting that latest version of SubRip crops the bitmaps no matter if you check crop bitmaps option or not. I set minimum size of cropped image to 720x576 and got full screen bitmaps. I checked 100 times if the bitmaps are 4 bit, and background is black. Checked and unchecked the compress bitmaps option. Nothing works. Interesting that aprx first 10 bitmaps were 574x720 no matter if I checked the crop checkbox or not and how small minimum size you set.

Then I tryed several links of vsr while reading through pages of numerous problems of different users and found the real link. I loaded an English subtitles (srt file) into SRT2bmp. I didn't use Estonian .srt because SubRip optically recognized Estonian Os and Us with umlauts (..) like they were tildes (~). Successfully created bitmaps - they turned out all cropped and 4 bits (Windows properties do not show if they were compressed). I showed the paths. Pressed the Mux button. There was a short flash of command prompt window, but nothing happened furthermore.

From reading through pages of this forum it seems to me that there is misalignment of file versions between fuse, srt2bmp and bmptoxsub.

I wonder if somebody could post an archive with all corresponding tools together.

And another question: do other subtitle streams have to be muxed one after another or there is a way to mux them altogether?

The same question applies to audio streams: fuse commandline help shows only one argument for audiostream. I can mux all audiostreams altogether in VirtualDubMod. Does it have to be done before muxing with subtitles or it will be possible afterwards?

My standalone player do not load .srt subtitles if they are saved as .srt text files on same disk with same name. Is it worth trying to mux .srt text files using fuse command line? Is there a chance they will display if they do not load from separate .srt text file? If they do what is all this buzz with the bitmaps?

filo74
17th November 2005, 10:25
When I try to mux one video, one audio and one .srt subtitle stream with fuse, it tells me:

C:\DAS_BOOT>Fuse --vidfile Das_Boot.avi --audfile "Boot AC3 T02 3_2ch 384Kbps DE
LAY 0ms.ac3" --subfile "Das_Boot_English.srt" --outfile D:\Das_Boot.avi
option --vidfile[0] = >Das_Boot.avi<
option --audfile[0] = >Boot AC3 T02 3_2ch 384Kbps DELAY 0ms.ac3<
option --subfile[0] = >Das_Boot_English.srt<
option --outfile = >D:\Das_Boot.avi<
option --infile = >Das_Boot.avi<
option --profile = >HD<
Processing beginning chunks.
Processing all chunks.

VBV TEST PASSED
0 Chunk size mismatch between movie list and idx1
1 Incorrect dwTotalFrames for Video (is 250503, should be 299525)

Result: FAIL

aborting

C:\DAS_BOOT>pause
Press any key to continue . . .

filo74
17th November 2005, 10:30
Look, the difference 250503 and 299525 is like 25 and 29.7 or like PAL and NTSC. And bmp2xsub also complains about: Cannot parse, <PAL/NTSC>. Maybe there is connection here. I will look if my sub files are not saved as NTSC or something. Because movie is PAL.

filo74
17th November 2005, 10:39
Strange but GSpot tells about my DivX6 encoded movie like this:
Multipart OpenDML AVI
(250503 frames in first part, 49022 frames follow)
DivX Style "packed bitstream" AVI
Garbage at end

filo74
20th November 2005, 14:05
I burned DivX with 4 ac3 language streams and 3 srt streams muxed with VirtualDubMod (it allows to mux srt streams too). But my player does see no soundtracks except the first, probably it has limit of 2 tracks and no subtitles.

Not without your help I decided to stick to mpeg2 format. I left Russian and German audiotracks and all subtitles. This gave me space for bitrate over 2000 kb. Conclusion: DVD format is the best!

Petruchio
26th November 2005, 00:52
Hi guys !!

I have the same problems as mentionned by filo74 on 16th November 2005 16:53

When i have created the bitmaps, i mux and nothing...all files are deleted and no xsub file is created.

Somebody have an idea ?

Thanks

marcellus
26th November 2005, 11:02
Make sure your source files you begin with (.srt and .avi) don't contain spaces in their names. See if that way works, it did for me.

Petruchio
26th November 2005, 12:26
Ok i will try this solution during the we

Petruchio
26th November 2005, 15:24
Here is the thing. The problem is still there.

See the capture below......

http://images5.theimagehosting.com/Fuse.jpg (http://www.theimagehosting.com)


SO ?

Petruchio
27th November 2005, 01:45
Oups i did a mistake but the result is the same with an output file .divx

marcellus
27th November 2005, 20:09
I don't know what's happening.

Check this:
here (http://forums.divx.com/groupee/forums/a/tpc/f/531101651/m/861105642/r/907104052#907104052)

and try this guide (http://projects.gdion.biz/guides/dmfwithxsub.html)

Petruchio
28th November 2005, 00:36
As said in the first link i try with virtualdubmod but sound is not well muxed.

For the second link, i used this one first but the problem is that the bitmap are deleted and xsub not created.

I have the same problem with my second pc.

SO :confused: ?????????

marcellus
28th November 2005, 09:58
For the second link, i used this one first but the problem is that the bitmap are deleted and xsub not created.
I had the very same problem untill I removed all the spaces in the .srt name that I begin with. That 'cured' the problem for me. But if that doesn't work, I have no idea :(

Sibi
28th November 2005, 17:38
Hi marcellus,

Very good Guide...Thanks a lot.

Petruchio
30th November 2005, 21:41
Still not working.

Any other idea ??

Gej
2nd December 2005, 20:30
Hey guys we finally release the official SDK for the DivX Media format !
It’s available at on DivX Labs here: http://labs.divx.com/archives/000066.html

It include tool for multiple audio and subtitle creation and muxing, as well as advanced menu creation, and some documentation and examples

Enjoy this tools and sorry for the delay...

denise
3rd December 2005, 07:47
@Gej and DivXlab
Excellent tool.
Thanks

DigitAl56K
3rd December 2005, 22:31
BTW, the DivXMux tool can now input VobSub (.idx + .sub) and SubRip (.srt) :)

borntobealive
6th December 2005, 21:21
Ummm...Excuse me..
Any link to download bmptoxsub ,cause I only have srttobmp?
:thanks:

marcellus
6th December 2005, 23:30
Ummm...Excuse me..
Any link to download bmptoxsub ,cause I only have srttobmp?
:thanks:
How about the first post in this thread?

borntobealive
7th December 2005, 13:44
The link doesn't work :(

marcellus
7th December 2005, 15:20
You mean this link: ftp://zhnujm.dyndns.org/bmptoxsub.zip ?
It works perfectly for me.

borntobealive
7th December 2005, 17:49
It doesn't work neither on I.E nor on Mozilla..
Any alternative? :(

thefluffy
7th December 2005, 18:16
Has anyone tried DivXMux's subtitle muxing abilities ?

It appears it depreciates most of the functionality of srttobmp since it accepts .srt files and .idx/.sub files as input.

marcellus
7th December 2005, 20:31
@borntobealive
Try this (http://www.freedownloadmanager.org/)

@thefluffy
With srttobmp one can control the apearance of the subtitle (size, font, position) very easy and with visual feedback. I don't see such thing yet with DivXMux. I tried to mux a srt file with DivxMux and I got an error. With srttobmp it worked flawlessly.

BTW, Fuse can mux srt's too but the result is ugly, I tried once and forgot about it.

For now I make xsub with srttobmp+bmp2xsub and mux it with DivXMux manually, I hope a new version of srttobmp that support DivxMux instead of fuse will be released. I tried to rename DivxMux to fuse but it didn't work.

thefluffy
7th December 2005, 20:35
@borntobealive
Try this (http://www.freedownloadmanager.org/)

@thefluffy
With srttobmp one can control the apearance of the subtitle (size, font, position) very easy and with visual feedback. I don't see such thing yet with DivXMux. I tried to mux a srt file with DivxMux and I got an error. With srttobmp it worked flawlessly.

BTW, Fuse can mux srt's too but the result is ugly, I tried once and forgot about it.

For now I make xsub with srttobmp+bmp2xsub and mux it with DivXMux manually, I hope a new version of srttobmp that support DivxMux instead of fuse will be released. I tried to rename DivxMux to fuse but it didn't work.

Try saving the .srt as UTF8 before passing it in.

The DivXMux actually does a LOT to ensure a great experience with subtitles. It positions them in the safe-viewing area, which ensures they will not "fall off the screen". It also makes sure they are not too high and cover important action going on in the video.

And the DivXMux in general will ensure every file it puts out meets the DivX specifications and will play on DivX Certified and DivX Ultra Certified devices.

marcellus
7th December 2005, 20:44
Try saving the .srt as UTF8 before passing it in.
Thanks, didn't know that, I will try.
The DivXMux actually does a LOT to ensure a great experience with subtitles. It positions them in the safe-viewing area, which ensures they will not "fall off the screen". It also makes sure they are not too high and cover important action going on in the video.
Sounds great, let's see that. But I doubt that will get srttobmp "out of business" as it has so little control (font, size,etc).

borntobealive
8th December 2005, 00:00
All I get is "server does not respond" no matter what I use to download the file...
:confused: :confused:
I don't get it!

vsr
8th December 2005, 13:11
Has anyone tried DivXMux's subtitle muxing abilities ?
Yes, a lot better of fuse but, you always have point to audio source or you get a mute movie ;). The "strn data" seems not work but maybe I don't understand well the docs after all, English is not my natural language. I tryed the "Subtitle Linker Text File" also (after some changes in srttobmp to save in format) and works well. One question, the subtitle resolution must be 640x480? even I generate bmps in movie resolution (640x272) the DivXMux report the size of subs as 640 x480.

It appears it depreciates most of the functionality of srttobmp since it accepts .srt files and .idx/.sub files as input.
"depreciates?" at least in Portuguese I don't use similar word (keep in mind that English is not my natural language and I may misunderstand) after all srttobmp is only a "simple GUI", to "Fuse" and "bmptoxsub", that allow you to choose position and font of subs (some people need it, like me) you may say there are a lot of tools that do it but none fit in my needs. .idx/.sub files in some situations like mine don't exist, I put subs with short descriptions in my personal videos (I don't like hardsubbed video).

DivXMux seems to be faster than fuse. I'm thinking to "permit" srttobmp to "evolve" and make use of all new functionalities of DivXMux.

Thanks DivXTeam, nice tool

vsr

PS @borntobealive
Try download bmptoxsub here (http://polo.faenquil.br/~valerio/srt2bmp/bmptoxsub.zip) if don't work is possible that you have a firewall issue.

borntobealive
8th December 2005, 15:10
This link works fine :p
Thanks! :thanks:

borntobealive
9th December 2005, 20:17
Ok..I have the same problem miras19 has in #87 (http://forum.doom9.org/showthread.php?p=635339#post635339)
I used VirtualdubMod as vsr suggests in #89

When I load the movie I get a "VBR audio stream detected"message

Then I open video->direct stream copy and then file->save as AVi and I use the new AVI movie to mux,but I still get the "error opening AVI file >C:\"movie path"< for reading" etc etc message..

Any suggestions?

kitsaros2000
13th December 2005, 14:54
what does this error mean ?
429
PAL 576

critical......end
00:00:28:320 00:00:30:440
196 502 328 44
502
Converted00001.bmp
Converted00001.bmp
00:00:28.320 00:00:30.440
196 502 523 545
---------
critical......end
00:00:32:670 00:00:35:790
172 472 378 74
472
Converted00002.bmp
Converted00002.bmp
00:00:32.670 00:00:35.790
172 472 549 545
---------
critical......end
00:00:35:860 00:00:37:220
212 502 296 44
502
Converted00003.bmp
Converted00003.bmp
00:00:35.860 00:00:37.220
212 502 507 545


Ok i fixed that . I made an small aplication that muxes the avi+srt and generates an *.divx with subtitles . Take a look here :
http://www.trustfm.net/divx/SoftwareAviSub.html
Pls tell me if works well ! Thx !

TjokkePrii
16th December 2005, 14:33
Hi,

I tried to add subtitles to a Divx movie to play it on my hardware divx player but my audio got out of sync.
I used srttobmp to create the xsub file and then I used fuse. It gave me some error about QPEL or something, maybe it has to do with that ? Anyway, the subtitles play fine but the audio is seconds out of sync ?

kitsaros2000
16th December 2005, 15:13
hmmm try the new version of mine tool [the 1.2 ] uses the newer 'fuse' called divxmux which looks a lot stabler ...
The avisub 1.2 supports son an vobsub inputs ...
Tell me what happened now .
If the problem insists try another avi ... ;)

RogerioMK
17th December 2005, 21:34
hmm... first i wanna say thnx cuz this tool is amazing...
my problem is when i try to mux more than one title to the video... with just one, it works fine 4 me and i can clearly see the titles on playback. But no matter how many times i try, when i try to playback the video when i muxed more than 1, i can see only the first. I mean, if i use the titles button on remote control i can see 2/3 or 3/3 on screen, but i can see nothin on video. Dunno if i made myself clear. Can some1 tell me what could be goin on ?

borntobealive
18th December 2005, 04:05
All problems solved. :rolleyes:
Congratulations to everyone for this amazing tool :thanks:

marcellus
18th December 2005, 17:16
Hi kitsaros2000, thanks for your program.
I tried Avisub 1.4 and there is a problem. I noticed it is taking very long for a muxing to take place and I discovered that during the time divxmux it is doing its job avisub.exe is hogging the CPU. I killed avisub.exe from task manager and the mux continued with normal speed.
Other complaints ;) :
*The generated subs have some strange blue shadow when rendered in player (I checked for now only with software divx player - that BTW does a very poor job in rendering subs comparing to my standalone divx player - but anyway, I don't have this problem with srt2bmp).
*When there are 2 or more lines they are not centered, the longest is centered and the rest are aligned to its left.
*The <i> comments are rendered on screen and not used to make the sub italic.
One more thing: I think the program should be able to load .divx files too, not only .avi files.
Anyway, thanks for your work !

kitsaros2000
19th December 2005, 01:44
marcellus
1) seems like that but you do not gain on speed. In fact the divxmux process occupies alwas 20-30% of the cpu even when avisub is no loaded. Seems that avimux has 70% but has low priority, has simply an while cycle to check out the output . To mine pc avisub open or closed the mux takes always 3 minutes . How many time you spent ?
2)the quality and the blue border is correct but i cannot do something seems that its an divx6.1 bug maybe im wrong . Avisub has blue as default background color thats why you si little blue even if it is setted on transparent ! BOH :(
3) i will try to enable the tags ... right now are not supported ...

;)

marcellus
19th December 2005, 09:57
1) To mine pc avisub open or closed the mux takes always 3 minutes . How many time you spent ? I don't really know, after 10-11 minutes (when it muxed about 200 megs out of 700) I was already impatient (because I know the mux suppose to take about a couple of minutes) so I killed avisub to see what happens and then divxmux finished in 1-2 minutes after. So on my computer (Athlon XP 2600+) avisub takes CPU from divxmux and doesn't let it do its job. It might also interfere with the nforce2 IDE drivers that I know they have too much CPU demand (and muxing is a HDD intensive operation).
2)the quality and the blue border is correct but i cannot do something seems that its an divx6.1 bug maybe im wrong . I suspected that. Try to make the background colour RGB 32 32 32 (#202020) instead of blue, I think I had this issue at some point with srt2bmp when I changed its default colors. The bug is quite nasty because the blue shadow (and a double vision kind effect) shows on my standalone too, so a new release of Divx Player would do nothing for me - and a new firmware for my standalone is beyond my expectations. With font colour set to default in srt2sub I have no problem on the standalone, the subs are rendered corectly.
3)i will try to enable the tags ... right now are not supported ... Thanks, thanks, thanks !

kitsaros2000
20th December 2005, 01:16
ok in the 1.5 version i fixed the bug with the cpu utilization !
Pls tell me if at least this bug is solced [it is the bigger one...]
:thanks:

I also made an small guide on how and when to use txt2vobsub,avisub and when leave the srt on an divx file
Guide here (http://www.trustfm.net/divx/GuideAddDivxSubs.html)
:thanks:

Slitheen
20th December 2005, 13:12
As a newbie, can somebody direct me to the right links for what I need to download to use this app. Thanks!

marcellus
21st December 2005, 11:09
ok in the 1.5 version i fixed the bug with the cpu utilization !
Pls tell me if at least this bug is solced [it is the bigger one...]

The CPU utilization issue is gone now. Many thanks!

ricardo.santos
24th December 2005, 14:48
As a newbie, can somebody direct me to the right links for what I need to download to use this app. Thanks!


to have a go with srt2bmp (my favourite)

download srt2bmp from here

srt2bmp (http://polo.faenquil.br/~valerio/srt2bmp/srttobmp.rar)


download the fuse tool from here:
Fuse (http://download.divx.com/labs/Fuse02182005.zip)


read the guide here:

guide (http://projects.gdion.biz/guides/dmfwithxsub.html)

TjokkePrii
27th December 2005, 09:41
Hey, I also used your tool and my subtitles played fine. But I have another problem now. I have the movie that cannot be muxed for some reason. When I use your program it says immediately that it's done but there's no divx file created. When I use divxmux manually it gives an error that it cannot open the file. When I use fuse it also crashes. Anyone know what the problem is ? I really need the subs on my hardware player because the audio is portuguese and I'm not ;)

kitsaros2000
27th December 2005, 18:10
divxmux does not support all kinds of avis {the program used to mux the avi with the subs done by divx networks} so you cannot process all kinds of avis ... :(

TjokkePrii
27th December 2005, 20:30
That sucks.. any other ideas how to get the subs into the avi ?

kitsaros2000
28th December 2005, 00:35
your player supports vobsub ?
you cannot see srt files ?

TjokkePrii
28th December 2005, 17:01
No it only displays the subtitles when I use avisub. :(

Pink Panther
4th January 2006, 02:54
I did everything like you said with SRT TO BMP, but every time I got few error messages with FUSE:

VBV TEST FAILED
max underflow was ..... bits
0 VBV TEST failed
1 MPEG quantization not supported
2 UN COMPRESSED CHUNK TYPE Present

Result: FAIL

or, somethin' else!!!

Then, when it's done, I burn that .divx file on my cd, and try it on my SHARP's DVD player - audio is ok, picture is good, but there is no subtitles.
I press the SUBTITLES button, but it says SUBTITLE OFF.

Please help me -what's the problem???
I have so many .avi movies I want to watch on my DVD player, but I can't!!!
HEEEELP!!!
I don't want to use Virtual Dub or somethin like, because it takes so looong.

westgroveg
5th January 2006, 01:02
Pink Panther,

The video you encoded is invalid, are your sure it's a DivX5+ file & not something else like XviD?

BTW I tried to make a frontend for this program but with only basic programming skills I couldn't find out how to call external applications.

Is anyone going to make a frontend for this program?

Pink Panther
5th January 2006, 01:57
Pink Panther,

The video you encoded is invalid, are your sure it's a DivX5+ file & not something else like XviD?

BTW I tried to make a frontend for this program but with only basic programming skills I couldn't find out how to call external applications.

Is anyone going to make a frontend for this program?


I don't know, it's .avi movie.
But, yesterday I tried another movie, and it passed the test, but when I tried it on my DVD player, I didn't have the subtitles, again.
SUBTITLES OFF, he shows on TV screen.

kitsaros2000
10th January 2006, 03:53
if avisub produces no output files, seems just divxmux does not support this kind of avi. I can not do something about that.
An smart option is someone to buy an really cheap player that supports vobsubs like the H&B DX-3255 . You can find it at 45$ !!!
In order to convert an srt file to vobsub i use txt2vobsub but there are several other ways like son2vobsub ...

Gej
24th March 2006, 23:43
Yesterday we release a new version of the DivX Media Tools, with a GUI for DivX Mux and a easy way to create menus !

http://labs.divx.com/node/169
http://labs.divx.com/DivXMediaTool

Star-Blazer
28th April 2006, 15:10
Hello,
I'm trying to mux a movie using the SRT2BMP program, how ever I get a failure massage (See attachment). Please, can any one help with this problem?
I also attached the video file details from GSPOT.
TNX

ricardo.santos
28th April 2006, 18:28
try changing the fourcc code to divx(mpeg4 modifier)
if your file has gmc/Qpel it wont mux the subs

you mightwanna try avisub it uses the DivxMux.exe(newer), srt2bmp uses the old Fuse.exe.

Nikos
29th April 2006, 04:24
Try a remux with AvimuxGui or Avidemux2 and try again.
From my experience changing the fourCC from xvid to divx
don't help.
Download the latest gspot 2.52 for more accurate info.

Star-Blazer
29th April 2006, 21:26
1. The file is not gmc/Qpel
2. I would have tried the Avisub but it causes the second line not to be centered according to the first.
3. I tried Avimuxgui...... doesnt help
Tnx a lot for the response.

nickolasemp
30th April 2006, 11:22
Hello everybody!

I'm using quite a long time now srt2bmp and i'm quite happy with the results. By the way, could someone tell me what to write in fuse's command line in order to name my subs? When i insert my movie in the divx standalone player, all I can see (when i choose a sub) is just "1: ", "2: " and nothing else but blank after each number. I would like it to show 1:en, 2:fr, 3:it, 4:el and so on... Any ideas?

Mtz
2nd May 2006, 19:39
You can create the Xsub with srt2bmp and mux the files with DivXMuxGui and adding country code for the subs.

I was trying to make a DMF, but I found some strange things after testing in 3 players. Regarding Xsub subtitles:
a.) - if I play the Revelations divx, the subtitles are displayed at the bottom at the same (approx) position.
b.) - if I make custom DMF with srt2bmp, srt2divx, DivXMuxGui ori AviSub in 2 players (one certified and one not) the subtitles are in the center (aprox.) of the movie and in another player (the third) is at the bottom as desired by me in the srt2bmp, srt2divx or avisub settings.
c.) - if I make my custom DMF (not the bat file for creating Revelations.divx) with DivXMuxGui using the file "Feature_s.avi" from revelations package as subtitle file, the resulted subititles from my cusom DMF are displayed like at b.)
DivXMuxGui was tested with 2 versions of divxmux.exe.

Movie resolution: 672x288.

But if I use the same programs with feature.avi (640x352) with those programs, the subtitles are dispalyed correctly at the bottom of TV Screen in all standalone players.

If some of you are made some tests with DMF, try to make another test with a movie with 672x288 resolution and look if the subtitles are displayed like in your previous test with another movies.

enjoy,
Mtz

vsr
4th May 2006, 18:29
After few months I'm back with a "new" version of srt2bmp tool. Now mux with new divxmux tool. Subtitles are rendered now in The "DivX Subtitle Linker Text" format. If you wish to try this "new" tool click here (http://www.polo.faenquil.br/~valerio/srt2bmp/srttobmp-1.0.4.21.rar).

vsr

ricardo.santos
5th May 2006, 12:34
Hi vsr!

Thanks for the new version

heres some feedback:
-Subtitles are not centered, too much to the right onscreen
-cannot set 16:9 aspect ratio
-cannot use make "xsub" button after i render srt subs
-whem muxing subs, it says"jobs ended" but nothing is created

Ricardo

vsr
5th May 2006, 15:00
Thanks for feedback ricardo.


-Subtitles are not centered, too much to the right onscreen

Weird, in my tests, when I play the .divx in software player (divx player 6.2) subtitles are correctly centered. In my hardware player (Philips dvp642) are showed to left and small. Some players are not fully compatible with last divx specifications, I think, at least the older ones.

After some simple tests last night I found that my hardware player requires subtitles position in a 720x480 resolution "window" for NTSC (and 720x576 for PAL). In documentation of DivXMux tool says that subtitles must be in a "Safe Viewing area" in a 640x480 pixels (as described in page 11 of DivXMux Command Line Reference Guide) and srt2bmp render subs folowing divx specifications. But some players spects (like mine) a viewing area in 720x480(576) pixels (older specs? who knows?).


-cannot set 16:9 aspect ratio

Disabled in this version.


-cannot use make "xsub" button after i render srt subs

Try to uncheck the "Save DivX Subtitle Linker file" option.


-whem muxing subs, it says"jobs ended" but nothing is created

hummm, here works fine. I'll test in other computer.

vsr

Mtz
5th May 2006, 20:00
In some standalones the subtitle is displayed a little lower or moved a little to the right or left. The problem is in the firmware (ARM Code).
I think is OK to use 720x576 or 720x480.

Now regarding the latest version:
1.
Still the height of bmp is not correspondent with the number of lines:
Exampe: font size 26 > 2 lines height: 88, one line height 46. I don't know why is this but, seems to be OK, because is better to have small height when we have more than 1 line. No needed to change this.
2. Jumping subtitles: subtitles with "abc" are displayed in a lower position than with "pqy". I think the best reference is to align the subtiles from the bottom and correspond with the subtiles with "pqy". In the program preview and in rendered bmp, everything is OK.
3. The bmps are not deleted.
4. Strn. In the DivX Muxer option, when selecting Language Tag, pop up a window with this message: "Invalid pointer operation". But after pressing OK, everything is fine.
Regarding strn, can you make some default settings?
Video: English, USA, Movie
Audio: English, USA, Primary Feature
Subtitles: To remember the latest option used.

Also I cannot use anymore the option "Srt2DivX" from DivXMediaBuilder: the xsub cannot be created. In the older Srt2Bmp I still can create Xsub.

enjoy,
Mtz

vsr
8th May 2006, 19:47
@Mtz
In some standalones the subtitle is displayed a little lower or moved a little to the right or left. The problem is in the firmware (ARM Code).
I think is OK to use 720x576 or 720x480.
After some tests I figure out that when you use the "DIVX Linker Text File", DivXMux always overrides your
subtitles resolution and positions (too bad for my old standalone).

2. Jumping subtitles: subtitles with "abc" are isplayed in a lower position than with "pqy". I think the best reference is to align the subtiles from the bottom
The subtitle is now positioned by a "fixed" top position.

3. The bmps are not deleted.
4. Strn. In the DivX Muxer option, when selecting Language Tag, pop up a window with this message: "Invalid pointer operation". But after pressing OK, everything is fine. Regarding strn, can you make some default settings? Video:
English, USA, Movie Audio: English, USA, Primary Feature Subtitles: To remember
the latest option used.
I'm working on It.

Also I cannot use anymore the option "Srt2DivX" from DivXMediaBuilder: the xsub cannot be created. In the older Srt2Bmp I still can create Xsub.
Seems like a mistake here, srt2bmp does not have an "Srt2DivX" option and I don't know the DivXMediaBuilder app. But, by the way, I'm restore the creation of xsub files in srt2bmp you can download a "test version" here (http://polo.faenquil.br/~valerio/srt2bmp/SRT2bmp_test_version.rar).
In this "test version" some minor bugs are fixed.
The app can now mux xsub and vobsub (.idx) files using DivXMux.

Feedback are welcome.

vsr

Mtz
8th May 2006, 21:06
Tested with "DIVX Linker Text File", and still are problems with "abc" and "pqy" jumping. Try to ask jeanl how he solved the problem with jumping subtitles in DVDSubEdit.
Also some time ago DVDLab Pro had these problems.

Make some test with this subtitle:

1
00:00:04,000 --> 00:00:08,000
aeuaeuaeu

2
00:00:08,081 --> 00:00:12,081
abcabcabc

3
00:00:12,582 --> 00:00:16,582
pqypqypqy

4
00:00:16,683 --> 00:00:20,683
aeuaeuaeu
aeuaeuaeu

5
00:00:20,784 --> 00:00:24,784
aeuaeuaeu
abcabcabc

6
00:00:24,880 --> 00:00:28,880
pqypqypqy

7
00:00:29,000 --> 00:00:33,000
aeuaeuaeu

8
00:00:33,080 --> 00:00:37,080
aeuaeuaeu
aeuaeuaeu

9
00:00:37,160 --> 00:00:41,160
pqypqypqy
pqypqypqy

10
00:00:41,240 --> 00:00:45,240
abcabcabc

11
00:00:45,320 --> 00:00:49,320
aeuaeuaeu

12
00:00:49,400 --> 00:00:53,400
ĂĂĂĂĂĂĂĂ

13
00:00:53,480 --> 00:00:57,480
aeuaeuaeu
aeuaeuaeu

14
00:00:57,581 --> 00:01:01,581
ĂĂĂĂĂĂĂĂ
ĂĂĂĂĂĂĂĂ

15
00:01:01,682 --> 00:01:05,682
ĂĂĂĂĂĂĂĂ
pqypqypqy

16
00:01:05,783 --> 00:01:09,783
abcabcabc

17
00:01:09,884 --> 00:01:13,884
ĂĂĂĂĂĂĂĂ pqypqypqy

18
00:01:13,985 --> 00:01:17,985
aeuaeuaeu

19
00:01:18,086 --> 00:01:22,086
pqypqypqy

Alcacia
10th May 2006, 07:34
I think I may have found a bug in bmptoxsub. Basically, I am having problems converting vobsub to xsub, where the vobsub uses color#2 for background (instead of the standard color#1).

My process is to convert vobsub to Philips SVCD Designer file using SubRip, and then use bmptoxsub to convert the sub+bmp to xsub.

As you know, most subs use color#1 as the background (i.e., transparent), color#2 as the text, color#3 as the anti-alias, and color#4 as the border. My process works fine for those.

The problem in my current case is that color#1 is being used for the text, and color#2 is being used for the background pixels. No matter what parameters I use in SubRip and bmptoxsub, I always get a result that has transparent text and opaque background!!

The relevant lines at the top of my Philips sub file are as follows:

CONTRAST (15 0 15 15)
COLOR (0 1 2 3)

[PALETTE]
0 (255, 255, 255)
1 (0, 0, 255)
2 (192, 192, 192)
3 (0, 0, 0)

As you can see, contrast for color#2 (index 1) is set to 0, so it SHOULD be transparent in the resulting xsub, but that is not what is happening. In fact, it seems that bmptoxsub totally ignores the contrast values, and always sets color#1 (index 0) to transparent.

Can anyone confirm this problem and/or suggest a workaround?

vsr
10th May 2006, 13:50
Hi Alcacia,

xsub follows divx specifications then use 4 color to subtitles, first color sets transparent color and the other three are opaques.

in your example:

CONTRAST (15 0 15 15) ****ignored
COLOR (0 1 2 3)

[PALETTE]
0 (255, 255, 255) ***transparent color
1 (0, 0, 255) *** opaque color (srt2bmp use it for border color)
2 (192, 192, 192) *** opaque color (srt2bmp use it for subtitle face color)
3 (0, 0, 0) *** opaque color (not used until now:) )

@Mtz
I'm unable to reproduce the "jumping subs" even I use your example (except for a little horizontal displacement when subs changes from line 4 to 5 in second sub line - small difference in char sizes) at least in my standalone. Can you send me the "DIVX Linker Text File" that causes the "jumping"?

Cheers,
vsr

Alcacia
10th May 2006, 15:03
Thanks for confirming that contrast is ignored.

It also appears that the "[PALETTE]" section is strictly informational, and is not used in the creation of the xsub....in other words, bmptoxsub uses whatever colors are in the bmp's. I tested this by changing the color values in the [PALETTE] section (so they no longer coincided with the actual bmp colors)...and generating output...no effect.

I'm also guessing that the line "COLOR (0 1 2 3)" is also just informational, because I tried changing to "COLOR (1 0 2 3)" and "COLOR (4 5 6 7)", and neither of these changes had any effect on the output.

The bottom line is that it appears to me that all of this info is ignored...bmptoxsub simply uses whatever 4 colors it finds in the indexed-color bmp's, and it sets the first color to transparent, and the others to opaque. What is interesting is that by using the switches SRT2BMP1, SRT2BMP2, etc., you can force one of the colors to black. I have no idea why that functionality was included. However, I would love to be able to control the transparent color using a switch.

Finally, I still have to ask the question of how to solve my problem. My sub+idx (and thus generated bmp's) uses a non-standard ordering of colors, and so the first color in the indexed bitmaps is actually the face color, and not the background color. I could rip to SRT and then use SRT2BMP to get my xsub, but needlessly converting to and from a textual format isn't ideal.

The best solution I could think of would be to somehow swap the indexes of the first two colors in the bmps. In other words, change all color#1 pixels to be color#2, and vice-versa. Anyone know of a program that would do this in batch, or any other solution?

Tentakulokans
30th May 2006, 21:04
I found srt2bmp a really useful and easy to use tool. :thanks:

However, I have noticed a little problem in the generated BMP files when the option "Force bold style" is disabled.

If so, the lines of the SRT file including italics ou bold tags are not correctly clipped.

Here are two examples (oh yes, by the way... I'm a French :rolleyes: ) :

http://img166.imageshack.us/img166/709/srt2bmpboldtag8aq.jpg (http://imageshack.us)

http://img267.imageshack.us/img267/2474/srt2bmpitalicstag2bj.jpg (http://imageshack.us)

You see that the right part of the text is cropped and it will not appeared on the screen when playing the divx file (even if I disable the "Clip BMPs" option).


I have also noticed the problem with the last test version of srt2bmp (however, I prefer the old one because I think that the alignment of subtitles relative to the bottom margin is a better choice).

vsr
31st May 2006, 18:15
Hi Tentakulokans,

I found that bug and I'm working to fix it. In a few days I'll release an "new" version (I'm a little busy now).

vsr

bratao
4th June 2006, 22:53
vsr,
I´m waiting for the new version !

Private to Vsr:
Velho, seu programa é muito massa !, muito bom mesmo !
Quem sabe voce poderia colocar ele como Open-source !, tenha certeza que mesmo não gostando de delphi, ajudaria na programação !

Tentakulokans
2nd July 2006, 08:51
That is correct.
For NTSC the resolution limit is 720x480.
For PAL the resolution limit is 720x576.
I have made some tests with PAL and NTSC videos on my standalone DivX Player, and I'm still a bit confused about the choice between the two available resolutions for the subtitles.
At first, I must say that my player is NOT DivX certified, and I don't know if an other player would give the same results. So, before I burn my videos on CD-R or DVD-R, I'd like to be sure of what I'm doing.:scared:

With my player, I observed the following results (regardless of the PAL or NTSC standard of the video) :

Video with H<=480 and Subs 720x480 -> OK
Video with H<=480 and Subs 720x576 -> subtitles too low (off screen)
Video with H>480 and Subs 720x480 -> subtiles too high in the picture
Video with H>480 and Subs 720x576 -> OK

I'd like to know if this behaviour is consistant and compliant with the DivX Media specifications, to ensure that my subtitles will be correctly shown on an other (certified) player.

Thanks for your help. ;)

effat63
16th October 2006, 13:46
Hello All
I hope I'm not too late, but I need real help.
I'm new in divx-xvid, I get a new Hardware player (DVD player with divx 6 support- JVC N342S), because of the language problem, I failed to use .str subtitle so i turned to .xsud
Ok, I read those 11 pages several times, but I failed to solve my problem.
And the problem is:
After using several programs ( AVISUB, STR2BMP, SUB2DIVX, BMP2XSUB, DIVXMUX, DIVXMUX-GUI, FUSE,...... ), on the pc no thing wrong, but on JVC N342S:
The sub title is displayed OK
The Audio track is played OK
but the video is shifted to the upper left corner and it is about 50 pixle out of the screen!!!
I discovered that the .avi file I'm using is XVID 528x256 PAL 25 fps.
Is it some thing that could be solved or it just my JVC???

vsr
16th October 2006, 14:06
but the video is shifted to the upper left corner and it is about 50 pixle out of the screen!!!
I discovered that the .avi file I'm using is XVID 528x256 PAL 25 fps.
Is it some thing that could be solved or it just my JVC???

Hi effat63,

I think that is a firmware issue, my old dvp642 has the same problem (the first versions of divx player too). On dvp642 the issue is solved when you press system menu twice or fast review and play again. The problem occurs only when you mux a XVid video (the movie resolution is irrelevant, at least in my player).

cheers,
vsr
(PS. Sorry about my English)

effat63
17th October 2006, 10:09
A lot of Thanx vsr, I'll give it another try. If there will be any success, you will know. Also, if you got any other idea to help, just let me know.
Ciao
Effat

effat63
20th October 2006, 15:51
vsr, Hi
It took me some time to try. Since JVC tech.support did not reply with any thing usefull for my N342S firmware:angry: , I tried what you did. AND IT WORKED !!!. :D
I pressed fast review and then play, and the video played correrct in the middle of the screen.
Thanks a lot vsr for your valuable reply.
Effat M

numaios
8th May 2008, 19:26
Hi!

Please, can anybody help me at this issue?
http://forum.doom9.org/showthread.php?t=137220

Thanks!