PDA

View Full Version : AVIAddXSubs: Incorporate subtitles (.srt) to avi files quick and easily


Pages : [1] 2

dhmk
30th April 2007, 19:20
AVIAddXSubs incorporates subtitles (XSUB) to avi files to play in your hardware DivX player. From v9.0 is able generate idx/sub from srt, too.

Just place the avi and its associated (same name) srt in the same directory, drag&drop one of them in the icon or shortcut of the program, press a button and get, in 2-3 minutes, a divx file ready to play in your DivX player.

NOTE: This program do not use DivXMux.exe utility.

For more information and download visit http://aviaddxsubs.blogspot.com.

Version 9.10.


Comments, problems, questions in this thread.

dhmk
22nd January 2008, 06:39
Now version 6.0, with "unpack packed bitstream" option.

kim1406
29th February 2008, 17:53
a new version dated February 28, 2008 is available now.

picrade
9th April 2008, 10:02
I have encountered problems when using this program with some idx/sub subtitles extracted from DVDs.
The problem is that in some cases the subtitles are displayed in wrong colors.
I have to turn on custom colors to get them to display correctly.
And in some cases they don't display at all, even with custom colors.

In all these cases the subtitles are displayed correctly when using DirectVobSub or when using DivXMux,
without having to resort to custom colors.

I will give a couple of examples.

Example 1) DVD palette is as follows (colors 0 to 15):

000000, dacc26, 000000, 000000, 000000, dacc26, 000000, 000000, 000000, dacc26, 000000, 000000, 000000, dacc26, 000000, 000000

The b,p,e1,e2 colors as reported by DVDSubEdit are:

b color=15, contrast=0
p color=14, contrast=15
e1 color=13, contrast=15
e2 color=12, contrast=15

The subtitles on DVD are yellow text (e1) with black outline (p).

When using this with AVIAddXSubs, the subtitles are displayed with black text and yellow outlines.
In other words p and e1 are reversed.
When I turn on custom colors in VobSub Configure then this program produces subtitles with correct colors.

custom colors: ON, tridx: 1000, colors: 000000, 000000, dacc26, 000000

Example 2) DVD palette is as follows (colors 0 to 15):

ba6a23, 000000, 000000, fdfdfd, 781b19, ea12eb, faff1a, 095d76, 7c7c7c, e0e0e0, 701f03, 077307, 11eb10, fdfdfd, cce251, c15d42

The b,p,e1,e2 colors as reported by DVDSubEdit are:

b color=3, contrast=0
p color=3, contrast=15
e1 color=3, contrast=15
e2 color=2, contrast=15

The subtitles on DVD are white text (p) with black outline (e2).

In this case the AVI muxed with AVIAddXSubs does not display subtitles at all, even after turning on custom colors.
I have tried a dozen permutations of custom colors to no avail.
The subtitles just won't display.

It seems to me that the program expects the colors to always be in certain order, i.e., b is background color, p is text, e1 is
outline and e2 is anti-aliasing. This is not always the case for every DVD because of different color mappings used.

In the first example above the p and e1 are reversed.
In the second example I suspect that because p and e1 are the same color as the transparent background (b)
then the subtitles are totally transparent and invisible.
I don't think any custom colors will help in case 2.

As I stated earlier DirectVobSub and DivXMux have no problem mapping correct colors.

Anyway these are my observations after some experiments with this program.
But I am not an expert in this area.

If you have any suggestion to get the subtitles in example 2 to display, please let me know.

dhmk
9th April 2008, 12:26
I think custom colors always can work.

AVIAddXSubs logic expects that always only the first 4 colors are used in the palette.

Custom colors are always 4, compatible with XSUB subtitles specifications. So they have to work. In readme.htm is a section describing what to do with idx/sub subtitles.

Let me know if you can get a better result this way.

You can go to AVIAddXSubs site and send me a message so I provide you an email to send me this idx/sub to have a look. Or you can download it somewhere so i get it from there. (rapidshare etc)

Glorioso
9th April 2008, 14:37
Is there a way to work around the 4gb limit?

dhmk
10th April 2008, 06:29
At the moment the only solution is to break the file in smaller parts. This can be done without reencoding and so it is fast.

It is in my plans for AVIAddXSubs to generate AVI 2.0 files to overcome the 4GB limit.

Ryu77
10th April 2008, 08:05
At the moment the only solution is to break the file in smaller parts. This can be done without reencoding and so it is fast.

It is in my plans for AVIAddXSubs to generate AVI 2.0 files to overcome the 4GB limit.

How can this be done when the DivX media format is built upon AVI v1.0 specifications. If you do this you will inherently be creating files that are non compliant with DivX ultra certified devices. Unless the devices will still accept this non compliant format?

Glorioso
10th April 2008, 14:53
At the moment the only solution is to break the file in smaller parts. This can be done without reencoding and so it is fast.

It is in my plans for AVIAddXSubs to generate AVI 2.0 files to overcome the 4GB limit.

How can i split then ad the subs?

I'm working to make PS3 compatible files but must of the files i have are 4gb+, the other problem is that your program dont have HD (720/1080) options, can you add it?

dhmk
30th April 2008, 08:04
Ryu77, (a bit late answer) AVI is a container format. I don't think so that DivX specification have much to do with it or put a limitation on this. There is no need for that. My player is able to play AVI 2.0 files but starts faster when the AVI is 1.0. The two files will result from the split, can be in AVI 1.0 because they will be smaller than 4GB. When AVIAddXSubs supports AVI 2.0 this will be applied to files bigger than 4GB only.

Note that AVIAddxSubs reads AVI2.0 files, if less than 4GB, and converts them to AVI1.0.

Glorioso, You have to use some software to do that. Is not very difficult. You can use Subtitle Workshop which is freeware too and a very good program.

The resolution you are referring has to do with subtitle bitmaps, not the resolution of the video content. There is a parallel picture which is merged by player's firmware before the image is send to TV. Is not like the way those things work on PC.

But, in any case, there is the "Custom" option. Isn't there?

awx
1st May 2008, 00:40
I tested this app but was frustrated by the UI. The lack of support for Unicode Srt subtitle files was also frustrating.

Finally, the program produced files that the PS3 would show as corrupted data on the XMB but the PS3 would actually play these files. All of the files that I tested were over 2 gb if that makes a difference.

dhmk
1st May 2008, 07:38
awx,

What is this XMB? Unicode files can be easily converted to ANSI with Windows Notepad.

I am sorry that you were frustrated with the UI, but why? You are the first to tell me that. You expect a UI like Micorosost Office, something that try to sell you 1000 things to use only 2-3 of them, with bell and whistles? Is not my philosophy. This program has only one thing to do and has to do it the easiest way possible, the one I found as the best, as a user of it, first of all. One drag&drop and press Create.

Try to see things in the light of simplicity and not in the logic of the usual bloat-ware out there.

That the files were over 2GB indicates that maybe were multi-part AVI 2.0. Those files are converted by AVIAddXSubs to avi 1.0. The programs I use to analyse avi (for example the GSpot) never showed any indication of a problem in this conversion. AVI smaller than 1GB, for example the usual TV size of 350MB, when processed by the program, look to this XMB the same?

Possibly is a problem of this XMB that doesn't recognize XSUB subtitles stream as something legal. PS3 XSUB support in only one month old, you know.

awx
1st May 2008, 08:45
What is this XMB?
The PS3 GUI.

Unicode files can be easily converted to ANSI with Windows Notepad.
Yes, but you lose all the special characters.

I am sorry that you were frustrated with the UI, but why? Is the first to tell me that.
Try to see things in the light of simplicity and not in the logic of the usual bloat-ware out there.
I would prefer it to be more simple than it is. Maybe taking some inspiration from YAMB would be a start.

It would also be nice if it automatically recognized subtitles named like Movie.English.srt.

Possibly is a problem of this XMB that doesn't recognize XSUB subtitles stream as something legal. PS3 XSUB support in only one month old, you know.
I don't think that's it. It hasn't been a problem with DivX+XSUB files from other apps.

I think your app has promise so I hope you keep working on it.

dhmk
1st May 2008, 09:30
Yes, but you lose all the special characters.

What special characters? If the default language in your Windows is the same as of the srt, then will be no problem. Special characters always existed, before Windows support of Unicode.

And you know, if there is a problem is also in the reverse direction which is the rule now (and all we have to follow). From ANSI srt to Unicode, as 99.9% of them are in ANSI text format. In my country, I am sure, but also in all others, judging from the feedback I have so far.

It would also be nice if it automatically recognized subtitles named like Movie.English.srt.

Try to think the way this program works and expects things. Maybe you find it very convenient finally.

krisq
1st May 2008, 22:53
Just for the record. Everything works fine here on ps3 (files with mulitiple subtitle streams). Love this tool. Thank you!

kingfire
8th May 2008, 19:55
Can the X360 plays XSUB or separated idx/sub ?

the only extra feature I need is a preview of what the generated file is EXPECTED to look like with the new subtitles, a feature that AviSub and Sub2DivX has.
thanks for the great tool.

numaios
8th May 2008, 20:14
Hi!

I've been trying to mux VobSub files into an AVI file using AVIAddXsubs.

The point is that these VobSub subtitles have some subs at the top of the frame and others at the bottom, but after finishing multiplexing process, all the subs show at the bottom of the screen.

Any idea of why and how could it be handled?

Thanks a lot.

PS: I tried enabling/disabling "Full screen" option in Configuration page, but it doesn't change anything.

dhmk
9th May 2008, 05:33
kingfire, As I have read XBOX has no support for XSUB subtitles at the moment. AVIAddXSubs adds an XSUB stream to an avi file, using subtitles from a srt or idx/sub.

kingfire, the only useful information from a preview, like in the the other mentioned programs, is how the font used it looks like, which you already know. As I mention in the site, whatever you do in your PC will not be the same in your external player because XSUB subtitles are handled differently from every player, especially at where will be placed in the screen. So the only useful preview you can get is from your player directly, experimenting.

numaios, if you can upload those subtitles (idx/sub I suppose) in www.rapidshare.com or give me a link to download them, so I look at them.

numaios
9th May 2008, 05:51
dhmk, I have uploaded these subs (in idx/sub format, extracted from the VOB files ripped to my HDD) and sent the link to you via PM.

Thanks!

nass06
9th May 2008, 10:48
Hello, when i open AVIAddXSubs.exe i have this :

= (RT) [Form] : Property/function not supported or improper value (BORDER) - Line 287

Why?

dhmk
9th May 2008, 12:33
New version 7.1.

Support for AVI 2.0 file generation. Now files over 4GB can be processed. PS3 owners please inform me if PS3 works ok and shows XSUB subtitles with files bigger than 4GB.

numaios, I downloaded those files and I will look at them ASAP.

EDIT: idx/sub subtitles have positioning information in every one of them witch of course is expected. But this information is ignored by AVIAddXSubs because it has its own "positioning system" (VP/CP options). This is for good reason because every player out there appears to have its own opinion on how to decode positioning information. XSUB specifications come from one company and they are not a universal standard as DVD is. Also is not very strict in such matters unfortunately. So the user must tune the positioning by himself/herself.

nass06, another user told me about the same exactly problem that puzzles me. I don't know what possibly can be. The only I can do is to ask you if you ever had installed in your PC CalcIt, the development tool of AVIAddxSubs. Also, if you can, run the program in another PC to see the result.

Ryu77
9th May 2008, 13:38
Download link isn't working... ?

dhmk
9th May 2008, 15:06
I test it and it works. Try again.

Glorioso
10th May 2008, 13:47
Can it input avi with h264 video?

dhmk
10th May 2008, 16:40
Can it input avi with h264 video?

I have added in the list of supported formats h264 but I don't know if it works.

The program is intended for XVid/DivX video streams adding a stream of XSUB subitles, a technology of DivX company.

Try it.

numaios
11th May 2008, 05:18
XSUB specifications come from one company and they are not a universal standard as DVD is.
Thank you very much for giving a look to that idx/sub files!

I recently ran a test with DivX Author and it seems to be the only program I've found til now which is able to tune one position different from the rest. So I guess this company (DivX Networks) is keeping for its own software some tool different from the ones available in DivX Media Format SDK. The company didn't even reveal all the specifications of XSUB format.

But I'm not going to use DivX Author because:

-You always have to reencode the video.
-The resolution of the subtitles is only 640x.

By the way, I tried remuxing that successful XSUB stream using DivXMuxGUI into another video file, and the final product shows the correct positions, so divxmux.exe doesn't alter the subs position. So the difficulty must be in another step.

How must DivX Author deal with it...? :confused:

So the user must tune the positioning by himself/herself.
Is it possible with AVIAddXSubs? (I mean setting a different positioning for one line and leaving the rest as default?)

Apparently Sub2DivX allows that (using *.srt as input), and you can see different positions in the preview windows. But actually, in the finished *.divx file, all subs are shown at the same position.

I'm totally hopeless with this...

dhmk
11th May 2008, 07:51
numaios, XSUB, as idx/sub, have also positioning information for every one subtitle. So there is not any technical difficulty to achieve what you ask. If we are able to decode this information from idx/sub we can pass it to XSUB. Of course I am not sure for the result in various player out there because, as I said, different code handles XSUB in players (not a standard) and different the DVD subtitles (a standard). Are two completely different things even this it not so obvious because from the user perspective the same player does the job for both cases.

Actually myself never thought that it is useful to show subtitles in various positions in the same video. I thought that the rule and what we need is to show them at a comfortable position at the bottom. So with this in mind I implemented idx/sub subs positioning in AVIAddXSubs.

srt files have no positioning information, so the user has to add this information, any way.

You can think what you seek as a future feature for AVIAddXSubs, if users really want it. But how many videos have you that exploit this feature?

numaios
11th May 2008, 08:31
XSUB, as idx/sub, have also positioning information for every one subtitle. So there is not any technical difficulty to achieve what you ask.
dhmk, thanks again for your explanation and your positive attitude towards people :). I agree with you: the most comfortable position for a subtitle is at the bottom (at least in 99,9% of times).

Of course I am not sure for the result in various player out there because, as I said, different code handles XSUB in players (not a standard) and different the DVD subtitles (a standard).
That's why I think the big deal is knowing how DivX Author does it, since it is an official application, and files generated with it must be playable in DivX Ultra certified devices (does it make sense? please correct me if it doesn't)

You can think what you seek as a future feature for AVIAddXSubs, if users really want it. But how many videos have you that exploit this feature?
Every episode of The Simpsons shows subtitles while the credits are still appearing, at the beginning of the episode. I don't remember if I finally gave you a link with captures showing this, in the PM I sent you about the idx/sub files:

http://forum.doom9.org/showthread.php?p=1135641#post1135641

I think other shows use this feature too. For example, when a sign is shown in a movie, it usually appears at the bottom, so a subtitle would cover the original sign, so if the viewer wants to read it in the original language, it's kinda difficult. Maybe even the subtitle can't be properly read.

srt files have no positioning information, so the user has to add this information, any way.Yes, of course! But it would be very useful anyway. Actually, that's the situation that made me look at the whole thing:

-I wanted to add a line in a srt to translate to Spanish the title of a CD cover appearing at the bottom of the frame in a movie.
-That line didn't appear in the original Spanish stream, in the idx/sub file.
-So my intention was: idx/sub-->srt-->add the line-->xsub (manually specifying the position of only that subtitle).
-I found a program which I thought was supposed to (http://66.102.9.104/search?q=cache:6hlUgq3LbcAJ:userxp.tripod.com/sub2divx.htm+Global+settings+single+settings+only+for+selected&hl=en&ct=clnk&cd=5&gl=es&client=firefox-a) do that (Sub2DivX), but it actually didn't.
-Some people (http://forum.doom9.org/showthread.php?p=1129790#post1129790) told me to change the position in the vob files with DVDSubEdit and then mux directly idx/sub files instead of srt, since idx/sub files preserve position and srt doesn't. They just couldn't understand that line didn't appear in the original idx/sub file (I said so at least three times: 1 (http://forum.doom9.org/showthread.php?p=1129467#post1129467), 2 (http://forum.doom9.org/showthread.php?p=1135072#post1135072), 3 (http://forum.doom9.org/showthread.php?p=1135641#post1135641))
-So I tried (even not appliable in my need) to mux a idx/sub pair which really had top subs.
-I chose The Simpsons to post some captures and prove their method wouldn't work (I knew it before trying, because it happened when trying to convert a DVD to DivX with Dr.DivX 2 OSS).
-The silence reigned in that thread.
-I found your AVIAddXSubs, and read that it doesn't use divxmux.exe, so I checked it out.
-I saw this support thread and decided to post my doubt.

Maybe I'll have to wait :)

(of course I still think AVIAddXSubs and Sub2DivX are grrreat and indispensable tools, even if they never support this feature!)

dhmk
11th May 2008, 14:47
That's why I think the big deal is knowing how DivX Author does it, since it is an official application, and files generated with it must be playable in DivX Ultra certified devices (does it make sense? please correct me if it doesn't)

I am not sure what this app does but what players firmware do, is a separate, completely independent thing. This is what my experience and user feedback shows. This app is not able, any way, to know how some players handle XSUB subtitles so to decode positioning information accordingly.

Probably what it does is to pass the numbers blindly from idx/sub to XSUB. This may give an acceptable result in some players or a less acceptable result in others. For example the bottom subtitle may appear in one player too high and in another too low, as to fall outside the viewable screen and never appear.

I will look a bit about that, if I can find how to decode idx/sub positioning information, and add a switch if the user want this positioning or the one provided through VP/CP options in AVIAddXSubs.

numaios
12th May 2008, 08:58
:thanks:

That's very interesting...

Probably what it does is to pass the numbers blindly from idx/sub to XSUB.
What I tried in DivX Author was using a SRT file and setting some individual positions. I haven't tried converting a DVD with idx/subs yet, but I will.

I will look a bit about that, if I can find how to decode idx/sub positioning information, and add a switch if the user want this positioning or the one provided through VP/CP options in AVIAddXSubs.
Thank you! That would be great! And also it would be awesome to add the possibility of individual settings when using SRT as input.

DCFreak
14th May 2008, 02:04
Hi

Your program works great on the ps3 with 1080p content that is over 4GB in size (AVI-2.0). The only problem is that the subtitles look a bit lowres compared to the movie itself, i wonder if the divx specification provides for a higher resolution subtitle bitmap?

dhmk
14th May 2008, 07:01
Hi

Your program works great on the ps3 with 1080p content that is over 4GB in size (AVI-2.0). The only problem is that the subtitles look a bit lowres compared to the movie itself, i wonder if the divx specification provides for a higher resolution subtitle bitmap?

That's good news to hear!

The problem is not the resolution of the bitmap. You can always use a bigger font and get a bigger bitmap. The problem is how the player handles those bitmaps and how well scales them. From XSUB specifications "perspective" there is only one limitation: It supports only 3 colors for bitmaps, that is there is no way to apply clear type (or antialiasing) on them. So, in big part, the low-res appearance you observed comes from that limitation.

The video content of the avi was DivX/XVid stream or H.264 (AVC)?

DCFreak
14th May 2008, 10:26
That's good news to hear!

The problem is not the resolution of the bitmap. You can always use a bigger font and get a bigger bitmap. The problem is how the player handles those bitmaps and how well scales them. From XSUB specifications "perspective" there is only one limitation: It supports only 3 colors for bitmaps, that is there is no way to apply clear type (or antialiasing) on them. So, in big part, the low-res appearance you observed comes from that limitation.

The video content of the avi was DivX/XVid stream or H.264 (AVC)?

I was hoping for a SD, 720p and 1080p mode in the xsub specifications, so it would "force" the player to display the subtitles at that resolution. When i'm thinking about it, you are probably right that it does display at hi-res but looks low-res because of the absence of AA.

I have one more question; at the "subtitle bitmap" option i can provide a horizontal and vertical bitmap resolution in custom mode. In the manual it says (at the "full screen" checkmark part) that the created bitmap, when not checked, is as big as the text it contains. What has priority of these two, custom size or text size bitmap?

The codec used was XviD with ac3 for the sound, created with mkv2vob. I can test it with h264 stream, but the ps3 is extremely picky so i don't think it will work.

dhmk
14th May 2008, 11:06
There is a parallel subtitle bitmap with the one generated by the decoding of video which the player merges and sends finally to TV. Those two bitmaps (or frames if you prefer) don't need to have the same resolution. Subtitles bitmap resolution is defined by players XSUB firmware conventions and can be different from player to player. This is what empirically I have found. From this point you can mark the subtitle stream (which appears as another video stream in avi file) with some resolution but provide bitmaps (subtitle frames) as big as the text they contain. When "Full Screen" is unchecked this is what happens. When "Full Screen" is checked then a bitmap of the defined resolution is generated which in the bottom contains the subtitle text. Some players work better with this option checked and other when it is unchecked.

DCFreak
14th May 2008, 21:33
There is a parallel subtitle bitmap with the one generated by the decoding of video which the player merges and sends finally to TV. Those two bitmaps (or frames if you prefer) don't need to have the same resolution. Subtitles bitmap resolution is defined by players XSUB firmware conventions and can be different from player to player. This is what empirically I have found. From this point you can mark the subtitle stream (which appears as another video stream in avi file) with some resolution but provide bitmaps (subtitle frames) as big as the text they contain. When "Full Screen" is unchecked this is what happens. When "Full Screen" is checked then a bitmap of the defined resolution is generated which in the bottom contains the subtitle text. Some players work better with this option checked and other when it is unchecked.

Thank you for the explanation. It seems the ps3 does work with the full bitmap enabled, but the horizontal positioning works a little weird that way so i keep it better unchecked.

Other than that, the ps3 can't play AVI's (1.0 or 2.0) with h264 stream embedded so re-encoding to xvid has to be done, but i am already happy that soft subs work with 1080p content larger dan 4GB :)

I did some thinking about the missing AA, isn't it possible to use the two remaining colors (in gray values) to make some kind of limited anti aliasing effect? I guess you use some kind of library function to construct the xsub bitmap, maybe you can take a look if there is support for that?

dhmk
15th May 2008, 05:49
Unfortunaltelly only one color is left unused. The other two used is letter color and outline.

dhmk
16th May 2008, 06:28
DCFreak, a user send me a mail with the following content:

Well I cannot say if the program will work with files over 4 Gigabyte
becourse PS3 can only read from FAT32 discs!

And they have a file limit for 4 G.
How the other user that reported for PS3 can use bigger files I
should like to know.

Can you answer that?

Glorioso
16th May 2008, 18:49
DCFreak, a user send me a mail with the following content:



Can you answer that?

Easy, streaming or burning a UDF DVD.

DCFreak
17th May 2008, 10:39
DCFreak, a user send me a mail with the following content:



Can you answer that?

Yes, streaming or playing it from the internal HDD. The FAT32 limitation only applies to external USB harddrives.

EDIT:
Seems files bigger than 4GB can be copied to internal hdd, but play only the content of the first 4GB. So that leaves streaming and burning to dvd/Blu-ray.

labidas
28th May 2008, 20:15
Hi, there. I'm really excited that I found this app, I've been looking for something like this for a long time. Now, I've been playing with horizontal positioning the whole evening and I can't get it right for PS3. As I've come to understand 0 is the top, the number gets bigger going down. The movie is 576x238 (for testing, I guess I'll wait for .mkv support, untill I'll try do HD movies). PS output is 1920x1080, keeping the aspect ratio, the movie zoomed across the screen should display 576x324 so I set that as the bitmap width/height and tried many values for vertical positioning. Ended up using 324 (can't go bigger, "Subtitle (1) found out of the bottom
of the defined screen resolution. Please fix Vertical Position (smaller) or screen resolution height (bigger)."), still the subtitles are pretty much in the middle of the screen. I'd say on 3/5 from the top. Looks like a dead end.

Had another idea, set the bitmap higher, at 1280x720 and VP at 600, now i can't see the subs at all. On PC I got high-res subs with this, but nothing on PS3. I understand, positioning varies through software/hardware. But are the subs "out of bounds" or something like that?

Has anyone successfully positioned subs for PS3? Someone must have been fiddling around with this. If so, could you please tell the parameters or guide me towards the right direction? Thanks.

dhmk
28th May 2008, 22:32
PS3 owners may assist you better but try not to play with subtitle bitmap resolution. This has nothing to do with video resolution. Start with the default resolution and experiment with CP/VP.

jugaor
30th May 2008, 21:43
Hi, dhmk, great utility! Thank you!
Remember that I'm still waiting the promised "letters' border" controlling feature ;)
More comfortable reading, if the user can enable wider contours, pleeeeeeeeeease!

jugaor
(the guy with the terrible English :p)

dhmk
31st May 2008, 05:23
jugaor, ok, ok, ok, I will add it in the next version.

jugaor
31st May 2008, 08:14
hahaha, thank you very much!! :)

ronnie_t
8th June 2008, 13:22
Great tool, thank you for that, but i can't get vertical positioning working (latest version, downloaded today).

As a source I have a xvid-video (1.0.3) with idx/sub subtitles.

Whatever I choose for VP (varying from 10 to 450), the subtitles always show at the bottom of the screen (playstation 3) and often half of the subtitles are too low thus disappear from screen.

dhmk
8th June 2008, 14:19
Most probably idx/sub bitmaps are too big. Try with full screen option checked. Also try to increase the height of subtitle bitmap through custom option. Let me know about the result.

ronnie_t
8th June 2008, 14:41
Full screen option did nothing, but increasing custom height worked!
Now I just have to figure out the correct number.

dhmk
8th June 2008, 14:53
I will try in futute version to strip idx/sub subtitles from empty space around the text to make them smaller and more controllable.

jugaor
11th June 2008, 07:33
Hi, dhmk, I have just tested the version 7.2... The new features seem very promising, thanks!
But I have a big trouble. I tried to change "Character set" from GREEK to ANSI and AAXS complains:

"= (RT) Control not found (FNTFAMT) - Line 1308"

and closes (Windows XP SP3, Spanish, working w/o issues with v7.1).
Please help!

And two questions:
-I unzipped the new version to the same folder as v7.1, but all the options are reset to defaults. AAXS uses the registry or any (invisible) ini file? Why it doesn't recognize the former config?
-What is the equivalent "Outline text" as used until the last version? 1? 2?

:thanks:
jugaor

dhmk
11th June 2008, 07:44
New Version 7.2.


Now you can drag&drop a folder to the programs icon/shortcut and all avi/divx files in this folder and its subfolders will be processed.
Added ability to define text outline color and size
Added a text preview so the user is able to get an idea on how the subtitles will look like according to the current selections in font, etc.
Fixed bug in "unpack packed bitstream".


jugaor, I fixed it. Download again.

AVIAddXSubs uses a local txt (aviaddxsubs.txt) file to keep configuration options. Because now are more options the previous file was not compatible. You have to reconfigure.

I am not sure about what you mean with the last question.

jugaor
11th June 2008, 08:06
Wow, record-time reply! Thanx! :)

The last question is only curiosity. I mean that, since the version 7.1 hasn't any "Outline text" option, I guess that it uses the low possible (1). It's true?
Perhaps I'll need to re-subtitle a couple of videos using other color but the same former outline (and I don't want to test all the movies' length for finding long lines again ;))

:thanks:
jugaor

dhmk
11th June 2008, 08:08
jugaor, previously the value for outline size was 2, the default now.

kingfire
11th June 2008, 22:16
The new version works great! thanks! I've been using your tool on my PS2 (using a little homebrew called SMS player) for a long time, it's easy to use and great.
The new Preview feature is very nice. Thanks.

I only have one more complain, and it's the Right-to-Lift detector in your tool, I'd rather have an option called "Right-to-Left" that I can turn it on/off like in other tools such as Sub2DivX, even if the subtitle is Arabic or Hebrew.

Because some pro translators make their subtitles appear well and without any problems, but when I use your tool, it messes up everything. because it detects that I'm using RTL language and therefor change the look of the subtitle which in most cases is already fine.

sorry for my bad English, but I hope you got the general problem.
thanks again for your hardwork.

jugaor
11th June 2008, 23:51
Dear friend dhmk, thank you very much for all your kind answers and your excellent job!

Un abrazo desde Peru,
jugaor

dhmk
12th June 2008, 06:22
kingfire, you telling me that translators do not type the text as normally type Arabic?

I imagine that if this it is true is not the case for all Arabic srt but for some of them.

But for Hebrew I had no complains because this is not the case for them, because I have communicate with this language speakers.

Any way if this is a serious problems and people write the text not in the correct way for compatibility with LTR languages, I will see what I can do in the next version. But I don't understand why. Why things has to be done in the wrong way? There are no much programs out there that do this job and all of them understand RTL languages. Why someone bothers to write Arabic text in the wrong way?

[But I have read in forums that Arabic srt had no problems with the program.]

What is the case exactly with Arabic srt? Is possible to research and inform me in more detail about the current situation?

dhmk
12th June 2008, 10:05
I made a change in subtitle preview. Now is posible to load and examine a srt file. Anyone interested can download again. I do no change the version number for this.

kingfire
12th June 2008, 22:15
kingfire, you telling me that translators do not type the text as normally type Arabic?

I imagine that if this it is true is not the case for all Arabic srt but for some of them.

But for Hebrew I had no complains because this is not the case for them, because I have communicate with this language speakers.

Any way if this is a serious problems and people write the text not in the correct way for compatibility with LTR languages, I will see what I can do in the next version. But I don't understand why. Why things has to be done in the wrong way? There are no much programs out there that do this job and all of them understand RTL languages. Why someone bothers to write Arabic text in the wrong way?

[But I have read in forums that Arabic srt had no problems with the program.]

What is the case exactly with Arabic srt? Is possible to research and inform me in more detail about the current situation?

LOL, you seems that you're completely sick of Arabic, I don't blame you.

but you got my post wrong, most of problems with arabic are in the Fullstop, comma, and those things. I'll give you an example:

a normal translater work:
.this is Arabic
)john(
!kill him
]peter[

after using your program:
this is Arabic.
(john)
Kill him!
[peter]

so yeah it fixes it.
=================

a PRO translator work
this is Arabic.
(john)
Kill him!
[peter]

after using your program:
.this is Arabic
)john(
!kill him
]peter[

your tool messes things up here.
==============================

this is a weird problem with arabic in all translating programs, included NotePad, it's not your fault actually that microsoft didn't work as hard as we Arabs thought to make their word possessing apps 100% with Arabic.

some of lazy translators just ignore using fullstops or ! or () at all to avoid this problem. but the subtitle becomes lame and nobody use it.

what I'm asking is just add an option instead of making the tool detects it automatically. if you still don't get the idea, try Sub2DivX, it has the option "right to left" that can be turned on/off, but I dislike that tool because it doesn't work all the time. and your tool easier and faster.

and if you still don't get the idea, I'll post some screenshots and examples.

it's not a serious problem at all, but it's too annoying, for me at least.

thanks for your hard work.

KingFire.

dhmk
13th June 2008, 06:29
kingfire, Thanks, this clarify a bit things. I think the same problem had Hebrew speakers and I made a fix only for them. So I have to apply the same fix for Arabic too.

Actually what the program delivers is what Windows deliver for Arabic text. Just an additional fix is needed like in Hebrew where the translators made the same fix. I think if they wrote text the correct way will not had any problems with what Windows delivers. This is from the discussion I had with one of them and seems it applies for Arabic speakers too.

I will make a new post at some point here so to download again and test. I have to work a bit more the Hebrew/Arabic "fix of the fix" because it misses some cases.

I don't understand what the other programs do with RTL languages. I don't think so that what they do is needed. It is a poor solution to the problem. Will see.

Now with Subtitle preview is possible to see imediatelly the effect on Arabic text and provide examples easy.

dhmk
14th June 2008, 06:32
kingfire, can you download again and test?

kingfire
16th June 2008, 09:44
kingfire, can you download again and test?

my pleasure!
I'll edit this after testing.

daxab
18th June 2008, 07:35
I get this error when I try to run the program:

= ReadSubFile: (RT) Attempt to read uninitialised field (W). Assign a value first. - Line 392

dhmk
18th June 2008, 08:05
I get this error when I try to run the program:

= ReadSubFile: (RT) Attempt to read uninitialised field (W). Assign a value first. - Line 392

As I can see in my code this can happen only with corrupted idx/sub file.

daxab
18th June 2008, 16:16
As I can see in my code this can happen only with corrupted idx/sub file.

This thread (http://forum.doom9.org/showthread.php?t=92199) explains what was happening. Once I stripped out a single bad entry, AVIAddXSubs ran to completion.

Seems to work really well, although subtitles are shifted to the right on the PS3. They look fine on the PC.

daxab
19th June 2008, 08:03
For me, for a 720x540 DIVX file with VobSub subs, AVIAddXSubs works great, but it does shift the subtitles to the right on playback.

On the other hand, sub2divx (GUI wrapper around DivXMux) correctly centers the same subtitles left-to-right, but the subtitles jump around since each one is individually being centered. AVIAddXSubs does not have this problem.

dhmk
19th June 2008, 09:00
Are you using the CP option to center horizontally subtitles? This may not work if idx/sub bitmaps are too big for the subtitle resolution chosen. You can experiment increasing Width although. Then let the player deside what to do with the bitmpaps. As I have read from tests other user did, DivXMux scales subtitle bitmaps so makes them smaller (and uglier).

Also experiment with "Full Screen" option checked.

daxab
20th June 2008, 21:25
These are idx/sub subs, so do those options take effect? I'm willing to give it a try but I thought those were only for srt.

Also when I use sub2divx I notice that it says the video is 720x540 but the subs are 640x480. Not sure why that is.

dhmk
21st June 2008, 07:32
New version 7.4


Added option "Delete original avi". When the subtitled file is successfully generated the original (source) avi is deleted.
"Stop" button added. In case of a lengthy operation, with many files involved, user can stop it at any time through this button.
New utility added to distribution zip. SUBRenamer. Renames avi and srt/idx/sub files according user whished new name and AVIAddXSubs rules. Especially useful when more than one srt is used in subtitle incorporation. Read more about this utility in README.htm in zip.
A fix is made to solve some display problems (in program's fields, not in subtitles) with languages like Chinese, Thai etc.



daxab, As I said, CP/VP are used for idx/sub too.

bluedha80
21st June 2008, 07:56
For those who have no problem with subtitles on PS3 with files larger than 4GB, was it streamed, copied, or burnt to a DVD?
I stream my files using TVersity, and I have no problems streaming files larger than 4GB, be it .vob, .mpg, or .avi. However, when subtitle is added with AVIAddXSubs, I get 'this content cannot be played' error right at the 4GB point of the movie. If I restart and fast forward a few minutes past that point, the file plays fine. I'm pretty sure it is not TVersity's fault because when I play the same file prior to adding the subtitle, it plays fine over the 4GB point. When subtitle is added, I get the error. I just tried it again with the newest version, 7.4, and still the same error.
I tried the subtitle adding process and streaming from Windows XP and Vista, but there was no difference. Does anybody have any idea why this happens?

naj
22nd June 2008, 18:15
I have the exact same problem as you, bluedha80... I've tried all combinations possible (unpack bitstream on/off, divx/avi, all cc codes), but none worked... I'm sure it has something to do with this program, but I have no clue.

naj
22nd June 2008, 21:15
Okay, I solved it now... with the help of another program!


Setup AVIAddXSub v7.4 as follows (for a 720p/sub source):
Font: Trebuchet MS
Font Size: 34
Bold: v
Outline: 3
Align: Center
Subtitle Bitmap: Custom 1280x800
CP: 0
VP: 692
Unpack packed bitstream: v
Use .avi for output file(s) if possible: v
Mark DivX as: DIVX

If it's a 1080p/sub source, correct Subtitle Bitmap and VP accordingly.

Create your file, you'll end up with a problematic output file: you'll always get a "corrupted data" info on ps3 + you won't be able to get past 4Gb mark unless you "jump" past that timeline... but keep that file ;)


Now go Here (official) (http://www.moitah.net/) or Here (doom9 sponsored) (http://forum.doom9.org/showthread.php?t=78050) and download MPEG4 Modifier v1.4.4.

In there, open your output file from AviAddXSub and REMOVE ALL USER DATA ITEMS, leaving it empty.

Save your file under a different name and, voila, it's now correctly detected by ps3 (will show length time, resolution, video and audio bitrate), and most of all, won't break at 4Gb anymore :)


To dhmk: MPEG4 Modifier has source code included. Could you please get an eye on it, and see how to remove that User Data, or better yet, don't create it yourself, at least for PS3 output? That would solve the problem without having to use other tools :)

Anyway, thanks so much for your program, now I can create perfect playable HD content to ps3 using these set of tools:

MKVExtract to separate video and audio part of mkv files;
BeHappy to convert DTS to AC3 if source isn't AC3;
StaxRip to create XviD out of those streams, using 2 passes with VirtualDubMod;
AVIAddXSub for... you know what ;);
MPEG4 Modifier just to correct those bugs.

That's all!

dhmk
22nd June 2008, 21:55
naj, thanks for the info.

Can you tell me if the original file had "packed bit stream"? Use GSpot to learn that. Can you tell me the user data you deleted?

Actually AVIAddXSubs never adds any user data. In case, only, of "packed bit stream" strips a letter for one specific entry because some programs use it to identify the file as "packed bit stream". But actually user data can be ignored completely. Have no real or mandatory information for the playback of the file.

Is very easy to remove user data. But I want to know what exactly bothers PS3. Of course the bug has to do with PS3.

Would be good to experiment deleting one by one these user data (appear in lines) to find out which one of them (or all of them, or a compination of them?) "bothers" PS3.

I suppose other people had no problems at all because the files they had missed the confusing user data of yours.

naj
23rd June 2008, 00:43
Well, I don't get it... I thought it was solved, but it's not...

At the 4Gb mark it's ok, but it's not at what seems to be a 2Gb mark...

BTW, the source had packed bit stream.

The problem at that mark is an error: 80028801. Even if we jump past that mark, then the audio channels become mono. In fact, even the play info states that (AC3 1 channel 640Kbps)... this is really annoying!

More over because original .avi has no problems at all!

Only after processing by AviADDXSubs it starts with these problems.

dhmk
23rd June 2008, 06:23
Try again with "unpack packed bitstream" unchecked.

Most probably what you thought as solution before it was just a misleading. Simply, passing the file through MPEGModifier you changed the AVI 2.0 arrangement. Probably MPEG4Modifier uses chunks of about 2GB where AVIAddXSubs uses chunks of about 4GB (3.5GB actually). So from there comes the illusion that you solved the problem.

The first chunk is always like a normal AVI 1.0 file, so it works ok.

But you say that the original file worked ok. Probably the handling of XSUBs causes some problems in PS3 in case of AVI 2.0. Because the files are correctly generated from AVIAddXSubs as various programs, like MPEG4Modifier, can read them and save them back. Are played correctly at PC.

Some users had no problems. The only we can do is this: Experiment with various files until find one that works and then find out the difference with the others. Or.. a new PS3 firmware comes and solves the problem.

Unfortunately I haven't a PS3 and is very unlikely to buy one (only at 1/3 of today price I can think of it). So PS3 users have to investigate.

bluedha80
23rd June 2008, 07:35
naj: why not just use mkv2vob to convert mkv to avi? It does everything you do automatically.

dhmk: 'unpack packed bitstream' option has no effect. The files are generated from mkv2vob, which are xvid encodings with 'packet bitstream'. I have had 1 successful result. I was able to add two subtitle streams and PS3 did not generate error at 4GB point. It was made with AVIAddXSubs 7.1. However, Mediainfo tells me there is no difference between the file that worked and the file that didn't work. I'll try the MPEG4Modifier to see if it can tell the difference.

Update: Well, I can confirm naj's findings. I ran the avi through MPEG4Modifier. No error at 4GB, but error at around or slightly over 2GB point. User data might not be the culprit, as the file that worked had 'XviD0046' and the file that didn't work had one extra line of 'DivX503b1393p'. I deleted the extra line, but that didn't solve the issue. Are there any other program that can open a large (4GB+) avi with xsubs and save it, much like MPEG4Modifier? I tried VirtualDub, but it couldn't understand the xsub stream.

dhmk
23rd June 2008, 08:01
bluedha80, you can use "AVI Info" at AVIAddXSubs zip. Send me the output of this program, for the two files. I will send you a private message with an email.

naj
23rd June 2008, 13:21
bluedha80, I don't use mkv2vob because it doesn't do 2 passes, nor does it enable to set a specific size (4,35GB) to create a full-sized comprised DVD5. I would use it if it worked like that.

naj
27th June 2008, 11:24
No news about this issue?

I'd like to help on a better diagnose that could lead to an answer, but don't know where to start...

dhmk
28th June 2008, 06:09
naj, If I had a PS3 I would test it with various files and make a list of those work ok and the others and see differences.

Let's answer some questions first:

Try playing files without activating subtitles. As you said the big files you tested play with no problem before the incorporation. There is a question. Why? If you do not activate subtitles, the problem disappears? If problem disappears you have an answer. If not you have to ask: Is the XSUB stream in those files that causes the problem?

The best way to answer that is to make some special versions of AVIAddXSubs. This version will not add an XSUB stream and so wil help to answer the question, if just the XSUB stream bothers PS3.

If you interested send me a PM with an email address to send you the file. But first test how things behave if you just don't activate subtitles.

naj
28th June 2008, 12:46
Thank you for your interest in helping, dhmk, many appreciated.

Yes, the problem happens anyway, either enabling or not subtitles. The same when processing on MPEG4Modifier.

I've sent you a PM with my e-mail, if you could send me a special version for testing, I'd be delighted :)

newnews
22nd July 2008, 01:04
Thanks for the great tool. However, I discover one problem, and I am not sure why. I created 10 Divx files by using AviAddXsub, and 7 movies are played fine on my DVP5982, however the player just hang up when I play other 3 files. I have to recycle the power to get out the situation. They play fine in Toshiba SD6000 . Later I use another program "AviSub" to make .DivX files for above 3 movies and then both DVP5982 and SD6000 play them well. I like to use AviAddXsub because of the flexibility, so I hope this problem can be fixed.

Best Regards

dhmk
22nd July 2008, 05:42
Some more information needed. Srt was used for those files or idx/sub? Unfortunately if really is there a problem and is not a matter of different configuration, like VP/CP values, you have to experiment a bit to give some information more. I have a PHILIPS DVP5980 and I have play hundreds of files and never had of a problem. So generally saying that I have a problem with some files doesnt really help me.

Try those specific files alone and use different configurations for CP/VP, see if the problem is constant. Try with "Full Screen" option checked. Actually with idx/sub I have observed such a problem with my PHILIPS player which is solved with this option checked.

Be sure that you run the latest version, 7.4.

newnews
22nd July 2008, 06:21
Thank you, I check "full screen" and the problem is solved.

mikeloti
24th July 2008, 07:04
I have made AVI movie with subtitle by AVIAddXSubs 7.4. I have change all possible parameters in options but no one of 8 subtitles can see on my DVD player XORO 402 PLUS with Chip Set ESS Vibratto II ES6688. I can choose all 8 subtitles by remote control of the DVD player but no subtitles it can show. What is wrong with this DVD player or the AVI movie? I’ve added AVI info to att. Thanks in advance.

dhmk
24th July 2008, 07:23
mikeloti, Read "In case do not appear..." section in AVIAddXSubs site. Try with some other avi too.

I am not sure if understand you well. You have problem only with one avi or all avis?

I will check the AVI Info file when it is available.

mikeloti
24th July 2008, 08:49
mikeloti, Read "In case do not appear..." section in AVIAddXSubs site. Try with some other avi too.

I am not sure if understand you well. You have problem only with one avi or all avis?

I will check the AVI Info file when it is available.

Thanks for your answer. I try all avis and everything in options.

rogeriook
25th July 2008, 02:13
Thank you for the excellent job.

I add captions xsub manually, using the program SRT2bmp to adjust and create the xsub created after commands in the notebook and adds to prompt using divxmux.

It was an easy work by, the more you much easier and finally the whole process.

Congratulations for the job

:thanks::thanks::thanks::thanks::thanks::thanks::thanks:

mikeloti
25th July 2008, 11:47
mikeloti, Read "In case do not appear..." section in AVIAddXSubs site. Try with some other avi too.

I am not sure if understand you well. You have problem only with one avi or all avis?

I will check the AVI Info file when it is available.


I've tried everything from "In case do not appear..." section in AVIAddXSubs site and all parameters Mark as... but no one subtitle can see on my TV set. Could someone help me to solve this problem?

je-lopes
26th July 2008, 21:35
hallo and thanks for the good tool. But i have got the little problem with subtitles,after the embedded subs and burn in blanck cd\dvd movies begin playing with flickering in the corner of TV(old CRT tv screen), with fast forward everything going ok, and movie continued normal.(dvd player JVC xv-n342s\\seting ,cp360/vp535,545).sorry for my english.
best regard. je-lopes/BG-frend/

dhmk
27th July 2008, 02:47
Try activate/deactivate the subtitles to see if problem appears/disappears. You have to experiment with your player to find out what maybe causes this problem. For example try smaller VP. You embed subtitles through srt or idx/sub?

mikeloti
31st July 2008, 10:02
Has anyone checked my avi info file? Is it ok? Thanks a lot for the answer.

dhmk
31st July 2008, 10:16
Nothing strange in this info file.

Johan.
6th August 2008, 20:55
Hi, I have problems with the subs when I stream to my ps3. When I check the movie in mpc it shows perfect but when I stream it I miss half of the subs, can only see one line of it. I've tried to zoom out but the text is not there so that doesn't help. In some movies it works perfect don't know what I'm doing wrong.

dhmk
10th August 2008, 10:02
New version 7.5


Now the option "AVIAddxSubs: Add Subtitles" can be added to Windows context menus. So with just a right click over an AVI file or folder (or a group of files and folders), you can start the program. This is an alternative to the drag&drop method on program's icon or shortcut. Note that you have to go through "Configuration"/"Right Click Menu Option on AVI Files" and press "Add Menu Option" to enjoy this feature. You can also disable it from the same screen.
Button "Right Click Menu Option on AVI Files" added at configuration page. This leads to a screen where the user can add or remove the Right Click Menu option mentioned before.
New option added, "Start at Once". If this option is checked then after drag&drop of files and folders or through Right Click Windows Context menus, the program will start immediately without the need to press "Create Subtitled DivX file" first.
Now advanced users, that want to use the program in batch files that do many operations plus XSUB subtitle incorporation, they can use the option "End At Once" and so the program, after successful operation, will terminate without the need to press "Exit". Use this in accordance with "Start at once" option. Please note that this function is not accessible through AVIAddXSubs User Interface. You have to access directly the "AVIAddXSubs.txt" configuration file and change the value of "ENDATONCE" from 0 to 1.
Now XSUb subtitles can be added even in AVIs without audio stream.

picrade
21st August 2008, 06:46
hallo and thanks for the good tool. But i have got the little problem with subtitles,after the embedded subs and burn in blanck cd\dvd movies begin playing with flickering in the corner of TV(old CRT tv screen), with fast forward everything going ok, and movie continued normal.

I have experienced flickering too.
Mine is in the form of a vertical band about 30 pixels wide (assuming TV is 640 pixel wide).
The band stretches from top to the bottom of the screen.
A couple of seconds of fast forward and the flicker goes away.

One thing I noticed is that this flickering only happens with the videos which are encoded with XviD.
With a DivX encoded video there is no flicker.
But when I use DivxMux to mux the subs then there is no flicker whether the video is DivX or XviD encoded.

dhmk
21st August 2008, 10:35
picrade, you have to experiment. Try with "Unpack packed bitstream" checked/unchecked. Also use DX50 selection at "Mark DivX". Also maybe something has to do with Subtitle bitmap. Experiment with the related options too. Try to choose the resolution that divxmux uses.

picrade
23rd August 2008, 21:49
picrade, you have to experiment. Try with "Unpack packed bitstream" checked/unchecked. Also use DX50 selection at "Mark DivX". Also maybe something has to do with Subtitle bitmap. Experiment with the related options too. Try to choose the resolution that divxmux uses.

I tried all these and the flicker is still there.

I normally use 720x480 resolution with Full Screen checked.
When I changed the resolution to 640x480 to be the same as DivxMux then a flickering horizontal bar appeared
across the bottom of the screen, in addition to the vertical one on the right side.
Afterwards when I examined the muxed file I noticed that the subtitle resolution in the stream header is set to 720x576.
I was expecting it to be set to 640x480.
When I use 720x480 then the stream header resolution is also set to 720x480.

Anyway, as I said this flickering only happens when I use XviD encoded files. Could be an incompatibility with my
hardware player.
It is not a big deal for me since I normally use DivX.

dhmk
24th August 2008, 04:44
picrade, In all my tests (which I repeated) always see the chosen resolution in XSUB stream headers.

dhmk
25th August 2008, 13:26
New version 8.0.

Now Chapters are supported for DivX Ultra (officially or unofficially) players. Can be added in any avi at a user configurable interval.

newnews
30th August 2008, 20:08
Hi,

If I created .divx file with chapter(Set every 10 minutes), the divx player(from divx.com) won't play it. Change chapter setting to 0 and then plays fine. Windows media player will play .divx file with chapter on, however the screen is not original aspect.

dhmk
31st August 2008, 07:00
newnews, you have right. All software downloaded from DivX company sucks!!! Especially DivX player. Features defined by them (badly or contradictory documented and designed) they don't work with their own software. But hardware players work much better. At least my DivX Ultra certified PHILIPS DVP5980 (and a predecessor so far, as reported to me) works perfectly.

newnews
31st August 2008, 17:45
Hi, DHMK:

yes, I tested on my philips DVP5982, it works fine. Also I put into Toshiba SD-6000 which is not DivX Ultra certified, it workes too with chapters. Subtitle effect looks better on Toshiba than philips;but Toshiba machine won't show subtitles if it is Divx3.

onebelo
2nd September 2008, 04:35
first off, thanks for a great program! got it to work with movies I tested with PS3. i did come across a couple things id like to ask ...

- when doing batch mode with movies that uses idx/sub files with multiple subs, is it possible to have it auto-select all and automatically continues the process instead of having manually select than click ok for it to continue?

- for a few idx/subs, i'm coming across an error "= ReadSubFile: (RT) Access violation at address 756457D5 in module 'AVIAddXSub.dll'. Read of address 002CB000 - Line 866" .. any ideas? could it be bad idx/sub files? since it only happens on a few and not all idx/subs.

thanks!

qknet
2nd September 2008, 07:47
Apparently Sub2DivX allows that (using *.srt as input), and you can see different positions in the preview windows. But actually, in the finished *.divx file, all subs are shown at the same position.

I'm totally hopeless with this...

If you played that tuned file with divxplayer, yes, the tuned position would not be effective. But it would in standalone divx certified player.

I have just tried this AVIAddXSubs, version 8.0, for the first time and was sad to see no preview of subtitle size and position on the screen. There are boxes to fill in with some values but it's hard to know if the values are good, isn't it. I used the default values (320 for CP and 450 for VP), center mode, and the subtitles are drawn almost to the middle of the TV screen vertically. Guess I have to test several times to get the good position just for THAT PLAYER?

I have just tried with a PAL avi file, but I'm not sure if I have to manually check the radio button NTSC for NTSC avi file. Automatic detection is expected

It would also be nice to be able to edit the subtitle in the preview mode.

dhmk
2nd September 2008, 08:14
onebelo, Your first request is already made from another user and I will add related options in the next version. As regards the crash with some idx/sub, could be bad or those contain something I was not anticipating so far based in the files I made my tests. You can send to me one of those files to check. Use rapidshare or send me a message through AVIAddXSubs site to provide you an email.

buzzqw
10th September 2008, 22:33
just to say :thanks:

used for muxed a series with subs (avi/xvid+srt) , all goes ok without hassle!

i worked under wine and watched with my ps3!

thanks for this very handy tool!

BHH

dhmk
25th September 2008, 05:32
New version 8.1


Option added to configure idx/sub processing. You can choose to incorporate all languages present, always only some specific of them or be asked by a dialog to choose.
Option added to choose between to add XSUB subtitles (normal operation), to remove XSUB subtitles or add test subtitles. The remove operation is useful in cases you want a file only with chapters, with "unpacked packed bitstream" etc. Or just want to remove any existing subtitles.
Now at the end of operation you are notified by a Windows sound and the program flashes. Now can be minimized.

NiGHTsC
25th September 2008, 20:15
AVIAddXSubs v8.1
Playstation 3 v2.43
Iron.Man.BDRIP.1920x800.MPEG4.Dolby.AC3.mkv
----------------

I used mkv2vob to convert it to XVID AVI then used AVIAddXSubs to add SRTs.

the original AVI runs pretty well but once the SRTs are added, it always stop at 59min:40sec of the movie.
This content cannot be played(80028801)

The AVI with SRTs isn't playable with DivX Player(v2.5) too, it gives me an error:
AviParser::readInputFilter() Failed to read:8

I could, however just jump away from that, but just wondering if I can fix it without having you update AVIAddXSubs.

I've also try using "Direct Stream Copy" from VirtualDubMod v1.5.10.2 build 2540/release, but doing this it will remove the subtitles
an error while opening it with VDM too...
[!] AVI: Stream 2 has an invalid sample rate. Substituting 15 samples/sec as a placeholder.
[!] AVI: Stream 3 has an invalid sample rate. Substituting 15 samples/sec as a placeholder.

Thank you.

dhmk
26th September 2008, 05:48
NiGHTsC, the avi file was over 4GB? If this is the case, we have already discussed such a problem a few months ago and unfortunately not find a solution. AVIAddXSubs just copies video and audio streams without any modification on them. Well, not exactly, as regards video, if "unpack packed bit stream" option is checked. You can uncheck this option but we have already test this. I think something has to do with the conversion from mkv to avi that bothers PS3. Unfortunately I cannot research this problem more because I am not a PS3 owner.

VirtualDub thinks that XSUB stream is a normal video stream and protests. It doesn't recognise XSUB stream as such.

EDIT: Actually I thought something that may bother PS3 in case of files bigger than 4GB. Those files actually are a concatenation of avis, all in the same file. Every such avi has to start with a complete frame and not one that is depended to decode from others possibly in a previous avi in the file. I will check this out because I never thought this possibility until now.

NiGHTsC
26th September 2008, 07:05
I'm trying to add SRTs without check "unpack packed bit stream".

by the way, the original AVI runs well without any problem, this problem only happent after I added SRTs.
and actually, you don't need PS3, cause it has a problem to play in Divx Player too.

I'll try to have a small clip that has also this problem.

:D

dhmk
26th September 2008, 07:32
If the files are bigger than 4GB, to my previous tests, DivX Player has problems anyway.

But if you can create a small clip that shows the problems then we have something else. Of course only with files coming from mkv2vob, because thousand of other videos have been subtitled so far with full success.

bluedha80
28th September 2008, 07:16
I'm back to report some findings with avi 2.0 files on PS3.
I haven't found a solution yet, but I think I'm close.

Here's the deal: ALL avi files larger than 4GB had "This content cannot be played" error regardless of subtitles or not EXCEPT for files muxed with AVIMux GUI.

In other words, only files produced by AVIMux GUI played without error when streamed to PS3. This is all on the default setting of AVIMux GUI.
And believe me, I have tried many muxing programs to test. Unfortunately AVIMux GUI does not support XSUBS.
Now, I have stated earlier that the avi played fine before subtitle was added. This is false.
After more testing, I've found out the error just happens later (probably at 4GB point, as opposed to 3.5GB with files produced by AVIADDXsubs).
Interesting thing is if the file is very large, like 8GB, you get the same error again at 7GB point (3.5 x 2 = 7).
I'm pretty sure if NiGHTsC played the original file past the 59:40 mark, he'll encounter the error soon enough.

So the problem has to be how the files are muxed. What's the difference?
I do not have the knowledge, but Alexander Noe (author of AVIMux GUI) was kind enough to post a note about how he does Open-DML avis (http://alexander-noe.com/video/amg/en_about_opendml.html) on his webpage.
Maybe you can take a look at it, dhmk?
If the avi can be muxed like AVIMux GUI and XSUB can still be added, well, I think that might be our solution.
Maybe other PS3 owners, who have "This content cannot be played" error, can try AVIMux GUI and confirm my findings.
What I don't understand for the life of me is how other PS3 owners can have no problem at all, and yet there are those of us with exact same error.

dhmk
28th September 2008, 10:25
bluedha80, thanks! I will, certainly, check this out.

EDIT: As I understand the "how he does Open-DML avis" speaks for a different problem. But if it is sure thing that files coming from AVIMux work ok, I will check them to see if I can find what makes the difference.

Giants
28th September 2008, 11:03
Hi,

I read it work with wine on linux !
I have a debian etch (update Ok)
and I have this error :

$ wine AVIAddXSubs.exe
err:reg:SCSI_getprocentry SCSI type line scan count error (fscanf returns 1, expected 2)
Wine exited with a successful status


POPUP AVIAddXsubs
= (RT) [Form] : Property/function not supported or improper value (BORDER) [Access violation at address 7EE05728 in module 'user32.dll'. Read of address 00000024] - Line 87

$ wine --version
wine-0.9.25
Wine exited with a successful status

Any idea why it's don't work ?
Thks a lot.

dhmk
28th September 2008, 11:37
It worked at least for the people made the report. Unfortunately I haven't a Linux installation and I cannot help you more. Are you using the latest version 8.1? Can you try it in another Linux Installation?

NiGHTsC
28th September 2008, 21:09
If the files are bigger than 4GB, to my previous tests, DivX Player has problems anyway.

But if you can create a small clip that shows the problems then we have something else. Of course only with files coming from mkv2vob, because thousand of other videos have been subtitled so far with full success.Yah, apprarently the video would be corrupted only if it's 4GB+.
I tried 3GB,2GB and 1GB and no problems at all.
Sorry I can't have a short clip for you...

I'm back to report some findings with avi 2.0 files on PS3.
I haven't found a solution yet, but I think I'm close.

Here's the deal: ALL avi files larger than 4GB had "This content cannot be played" error regardless of subtitles or not EXCEPT for files muxed with AVIMux GUI.

In other words, only files produced by AVIMux GUI played without error when streamed to PS3. This is all on the default setting of AVIMux GUI.
And believe me, I have tried many muxing programs to test. Unfortunately AVIMux GUI does not support XSUBS.
Now, I have stated earlier that the avi played fine before subtitle was added. This is false.
After more testing, I've found out the error just happens later (probably at 4GB point, as opposed to 3.5GB with files produced by AVIADDXsubs).
Interesting thing is if the file is very large, like 8GB, you get the same error again at 7GB point (3.5 x 2 = 7).
I'm pretty sure if NiGHTsC played the original file past the 59:40 mark, he'll encounter the error soon enough.

So the problem has to be how the files are muxed. What's the difference?
I do not have the knowledge, but Alexander Noe (author of AVIMux GUI) was kind enough to post a note about how he does Open-DML avis (http://alexander-noe.com/video/amg/en_about_opendml.html) on his webpage.
Maybe you can take a look at it, dhmk?
If the avi can be muxed like AVIMux GUI and XSUB can still be added, well, I think that might be our solution.
Maybe other PS3 owners, who have "This content cannot be played" error, can try AVIMux GUI and confirm my findings.
What I don't understand for the life of me is how other PS3 owners can have no problem at all, and yet there are those of us with exact same error.Interesting, it's glad to hear a solution finally, thank you blue.

by the way, I have tried AVIMUXGUI v1.17.8 and I'm not able to add SRT into my original AVI.
Everytime I added it PS3 say the file is corrupted.
I'm also using default setting.

I also noticed that AVIMUXGUI did not hardsub the SRT in AVI cause after I runned it through VirtualDubMob the SRT is gone, once again.

bluedha80
1st October 2008, 04:06
NiGHTsC: PS3 only supports XSUBs embedded in divx/xvid avi files (AVIADDXsubs converts srt to xsub), so even if srt subtitle was added to an avi through AVIMux, PS3 won't understand it.
But it should be able to play the file, just without any subtitles showing. Try without adding any subtitles.
AVIMux doesn't do hardsubs (this would require transcoding, which is what MKV2VOB does).
If you don't mind the hardsub, then use MKV2VOB to do a hardsub, then run the resulting file through AVIMux to get a PS3 compatible avi.

dhmk
1st October 2008, 07:35
You PS3 users, can you tell me which is the optimum configuration for PS3 to add in my site. Many new users ask that and I don't know what to answer. Thanks.

NiGHTsC
2nd October 2008, 19:17
NiGHTsC: PS3 only supports XSUBs embedded in divx/xvid avi files (AVIADDXsubs converts srt to xsub), so even if srt subtitle was added to an avi through AVIMux, PS3 won't understand it.
But it should be able to play the file, just without any subtitles showing. Try without adding any subtitles.
AVIMux doesn't do hardsubs (this would require transcoding, which is what MKV2VOB does).
If you don't mind the hardsub, then use MKV2VOB to do a hardsub, then run the resulting file through AVIMux to get a PS3 compatible avi.Good one!

I just played the 2 AVI videos, one from mkv2vob (MKV->AVI) and another one from mkv2vob->AVIMUXGUI.
and 1st is indeed have problem after 59min:40secs, it stopped at 1h:06min:47sec, same error.
no problem for the 2nd one, I played it from 59:30 to 1:10:24.

I tried mkv2vob, but gave up cause of it's immature subtitle system.

hm...guess I'll keep waiting for both :D

You PS3 users, can you tell me which is the optimum configuration for PS3 to add in my site. Many new users ask that and I don't know what to answer. Thanks.what configuration they are askng?
cause there's nothing to configure, actually...

;)

krisq
2nd October 2008, 19:37
You PS3 users, can you tell me which is the optimum configuration for PS3 to add in my site. Many new users ask that and I don't know what to answer. Thanks.

http://img379.imageshack.us/img379/3816/clipboard02so0.th.jpg (http://img379.imageshack.us/my.php?image=clipboard02so0.jpg)

This one looks great on 37" 720p LCD Tv.

dhmk
3rd October 2008, 04:20
krisq thanks. And by the way, there is newer version available (v8.1).

krisq
3rd October 2008, 20:40
krisq thanks. And by the way, there is newer verson available (v8.1).
Oops:p. Thanks for the heads up, commencing download now :)

[EDIT]
I always wanted to ask this.
Everytime I update (overwrite old version) all the settings are reseted to defaults.
Am I doing something wrong?

dhmk
4th October 2008, 05:53
I always wanted to ask this.
Everytime I update (overwrite old version) all the settings are reseted to defaults.
Am I doing something wrong?

No, its normal. Every time more options are added in the configuration file it has to reset because it changes version number.

NiGHTsC
4th October 2008, 16:51
This one looks great on 37" 720p LCD Tv.
lol...that's the configuration you asked for?
sorry for the misunderstood ;)

This is my configuration of 1920x800 movie for 46'' TV
not sure if this VP works on only same resolution or same inch's TV.
Try "Test Mode" first, just in case.
http://img232.imageshack.us/img232/1171/66198585ip6.jpg

dhmk
4th October 2008, 17:36
NiGHTsC, thanks.

The result is not affected by the TV. Is a complete product of the player. The only difference with the size of TV is that things appear bigger in more inches and the reverse of course. When is not used HDMI usually TVs cut a part of the screen left and right, top and bottom (overscan). This is the only "contribution" they have on the video output.

krisq
4th October 2008, 22:41
I think endatonce=1 doesn't work when program is minimized.
And one more thing. I would love to see percentage of work done on the taskbar when AviAddxsubs is working in the background.
Thanks for great piece of software :)

dhmk
5th October 2008, 07:40
krisq, yes this was true. I fixed it. Download again.

As for the "percentage" I will see how is best this to be done in the next version. Because there are two phases of work and another indication in case of many files. I will see how I can put all this information in the taskbar and be always visible too.

chrizy
14th October 2008, 20:36
Hi dhmk,

First of all thanks for a great soft!
Now I've got some ideas that I got used to from other soft;
if it is possible take it into consideration :)
1. mark audio stream(s) as specific language; as subtitle stream is marked
2. show srt file line number which exeeds lenght; so no change in font size is made
3. add internal justification inside specific lines (something like "dialogs" script in Sub2Divx)

Best regards

NiGHTsC
15th October 2008, 00:34
@dhmk
May I ask for any news about the 4GB+ video problem?

Sorry for being impatient, since AVIADDXSUBS is my only solution.

Hi dhmk,

First of all thanks for a great soft!
Now I've got some ideas that I got used to from other soft;
if it is possible take it into consideration :)
1. mark audio stream(s) as specific language; as subtitle stream is marked
2. show srt file line number which exeeds lenght; so no change in font size is made
3. add internal justification inside specific lines (something like "dialogs" script in Sub2Divx)

Best regards1. This is a subtitle program, not a media type :D

dhmk
15th October 2008, 06:59
NiGHTsC, I haven't find the time to look more at this problem. As you know is a PS3 specific problem and as I am not an owner that makes things very difficult.

chrizy,

1. To mark audio streams with language: I believe is possible but the program has to deal with something else than subtitles. Any way I will consider this request as it is made by someone else too.
2. When "break long lines" is ON almost never a smaller font is used. And I think this option does a very good job. Have you a different opinion? Because I think is better a computer to fix a problem automatically, if it can, than leave this job to the human operator. This is the idea against giving those line numbers.
3. What this is exactly?

NiGHTsC
16th October 2008, 17:29
NiGHTsC, I haven't find the time to look more at this problem. As you know is a PS3 specific problem and as I am not an owner that makes things very difficult.I thought so too...

Just hope you'll get a PS3 from friends or somewhere else one day...

Thanx again.

deank
21st October 2008, 14:26
Here is a brief information on AviAddXSub settings for Playstation3, and a tutorial on converting MKV to XviD for playing in PS3.

http://www.deanbg.com/AviAddXSub/index.php

Tutorial:
http://www.deanbg.com/AviAddXSub/tutorial.php

dhmk
21st October 2008, 16:06
dean, very good. PS3 owners will appreciate it.

I wonder if this new procedure removes the problems for files bigger than 4GB that NiGHTsC and others complained about.

deank
21st October 2008, 16:42
I've never had problems with 4GB+ files. But then, I always use avimux_gui. Another way around the problem is to use the built-in option in avimux_gui to auto-split files at predefined filesize.

So while muxing the final result one may set an option to split at 3.5GB point.

A disadvantage of doing this is that you'll have to edit the subtitles and re-synchronize them, but it is done in seconds using SWshop. But then again, you can transfer the file with an external FAT32 drive :)

So for 4GB+ files it is better to split video at 3.5~3.8GBs and edit the subtitles.

In fact, it may not be a bad idea to add an option in AviAddXsubs to split files at 4gb point. Either way, you process the streams in the avi file, so with some work you could make it easier for all those PS3 users that should really really click on the donate button! :)

I've added some information about this in the tutorial.

NiGHTsC
23rd October 2008, 02:32
You can already edit the time-code with SubResync (from Vobsub), edit one line, change all.

I have thought of, but since you also have to split the subtitle to 2, I may not have time to re-watch it to check if the time-codes are still accurates.

But Thanx for reminding me to try other MKV -> AVI programs, cause I've used only mkv2vob.

deank
23rd October 2008, 16:42
I'm preparing a tool (with CalcIt) to automate the conversion from MKV (x264) to AVI (XviD). Check the tutorial later. It will make things easier - to one-click-conversion.

Dean

NiGHTsC
23rd October 2008, 18:00
Hm...mkv2vob can already do it?

:D

deank
23rd October 2008, 19:40
Well, VOB (mpeg2) has nothing to do with XviD. And 1 min VOB is 25-30MB, and XviD would be about 15. Or I miss something? The difference is that my tool uses Avisynth, so no errors/transcoding problems occur. I've used this 'tool' for all my videos and never got problems nor errors, while playing on ps3.

edit: Just test both and find the difference. I'll post a link for my conversion tool tomorrow.

I just made some tests.

input: 50mb (1m10s) mkv 1280x688
mkv2vob - created 40mb xvid with wrong ac3 header
mkv2avi - created 23,7mb xvid

deank
24th October 2008, 13:59
Here is the GUI...

http://www.deanbg.com/AviAddXSub/mkv2avi.jpg

There is a download link in the tutorial [Click here (http://www.deanbg.com/AviAddXSub/tutorial.php)]

Download mkv2avi.rar (http://www.deanbg.com/public/mkv2avi.rar)

The tool is suitable for all Playstation2 and Playstation3 consoles, before adding XSUB subtitles with AviADDXsubs tool.

deank
25th October 2008, 13:09
GUI version now supports MUX splitting at various sizes (suitable for CDs/DVDs, 1GB or 2GB USB sticks...).

DTS -> AC3 reencoding option is added with various bitrates.

Thanks once again to dhmk for the help he provided and for the great CalcIt application he created!


I will later add options for DTS->MP3 and AC3->MP3 encoding and may be an option to encode to x264 for Playstation Portable (PSP).

naj
25th October 2008, 13:22
Probably you didn't understood me. I was using the Encoder package, not the GUI (since the GUI version doesn't let me chose custom size/bitrate). And the desired bitrate/size is correctly calculated, it just doesn't get applied.

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

Edit: It wasn't program's fault but my own, I had chosen the default parameters for Quantization, but when chosen 1 as mininum and 31 as maximum, it worked great!

Thanks for everything, deank.

Now I have all the perfect tools for MKV -> DIVX + SUBTITLES enjoyment on PS3 (this way it supports 4GB+++ files!!!).

dhmk
29th October 2008, 12:59
New version 8.2


"Use SRT of SUB 1" is replaced with a more flexible option, "SRT extension". In this option is entered a literal which is added after a dash in the name of the avi to compose the file name of the srt to load. So for every tab (SUB 1-8) and through this option, is defined a srt to be loaded this way: [AVI name]+[dash]+[SRT extension]+[.srt]. In case the "SRT extension" is empty in a SUB tab then the srt loaded from it has exactly the same name as the avi. In case you wish to add the same srt but with different configurations then enter the same "SRT extension" n SUB tabs.
"Move srt to output directory" option added. If this option is checked then the srt is copied to the output directory after a successful subtitle incorporation.

deank
31st October 2008, 14:02
I added support for AVIAddXSubs in mymkv2avi gui (http://forum.doom9.org/showthread.php?t=142422):

http://www.deanbg.com/AviAddXSub/mkv2avi-sup.jpg

It creates backup of settings and then restores it.

Dean

deank
2nd November 2008, 11:36
After few hours of testing XSUB subtitles in Playstation3 I found this:

1) Playstation 3 has a bug when processing XSUB subtitles created with AVIAddXSubs
2) It wrongly handles the CENTER POSITION both when FULL SCREEN is checked and when it's not
3) When the currently displayed subtitle bitmap exceeds some pixel width (over 980px, i.e. Arial 36pt or Arial 35pt w/ opaque box), PS3 will try to CENTER the bitmap, but not according to the CP value. In all other occasions PS3 IGNORES the CP value and correctly centers subtitles.

For most of you CP=320 works fine, just because PS3 ignores it. But sometimes it's not ignoring it, so subtitles go off-screen :)

Most of the time (with smaller fonts) it is not going to happen, but with HiRes movies and larger subtitles it happens regularly.

Here is what it shoud be:

If movie is 1280x720, then the CENTER point should be 1280/2 = 640. Well, for PS3 it is not.
The correct value has to be 1280*(3/8) = 480. (or WIDTH * 0.375)

For 1920x1080 it will be 720 instead of 960.... And for SD movies it is: 720x576 - CP=270, 640x480 - CP=240.

So, best settings of CP for PS3 is: unchecked FULL SCREEN subtitle bitmap and CP = width * 0.375

Dean

bluedha80
2nd November 2008, 19:26
Hey, thanks for your tool, deank.
I don't know how, but I think 4GB error thing is gone with your program. Finally!! :)

I want to add that for my 720p conversions, I always used 640 as my center point, full screen unchecked, align at center, and the subtitles are centered for me.
Maybe it has to do with font size? I use 30.

Again, thank you for your program. Now, I must re-encode my hard-subbed conversions.

naj
2nd November 2008, 23:36
It's not only full-screen and font size that makes subtitle misplace. Any line with more than 42 chars WILL be misplaced, even with the "break long lines" option checked.

I haven't had any solution other than span those chars over the other line.

And yes, with this tool there's no limit in file size, it doesn't break PS3 playback over 4GB, so probably it was the previously used program for muxing by both bluedha80 and me that corrupted the output for PS3. With AVI-Mux the error is gone.

dhmk
3rd November 2008, 06:20
As PS3 owners is a very big distinct group of AVIAddXSubs users, I am willing to add options specifically for PS3 if we can conclude with certainty to some things about its behavior. So I am open to suggestions.

I am glad that the PS3 4GB problem is now "somehow" solved.

deank
3rd November 2008, 09:22
Here is how it looks with:

Movie 1280x544 with 3 line subtitles, third is 44 characters long, with Arial 36pt Bold, 2px Outline and with CP=480

It is all ok - no misplacement.

http://mkv2avi.deanbg.com/44.jpg

You can see that there is enough space for 6 more characters, so max length could be 50 chars, even with this FAT font :)

The same test with the same subtitles, but with CP=640 (or left blank - zero) gets them misplaced.

Later I will do tests at different TV resolutions (576p, 720p, 1080i). All tests until now are with tvres @ 1920x1080p.

This will show if PS3 handles correctly CP and VP values in regard to the current output resolution.

Dean

p.s. Sorry for the picture quality - it was really bright in the room.

naj
3rd November 2008, 20:22
Well, I always leave CP blank (aka not even a 0), and it only misplaces subtitles when there are more than 42 chars as I posted above.

I'm not sure why, since you can see subtitles ok with more than 42 chars...

My tests always gave me that problem, even when using smaller fonts and smaller font sizes...

deank
3rd November 2008, 20:23
Don't leave it blank, naj. Use the width * 0.375 value.

deank
4th November 2008, 16:17
SD Source (624x352) @ 576p: (CP=240, VP=450)
http://mkv2avi.deanbg.com/SD_576p.JPG

SD Source (624x352) @ 720p: (CP=240, VP=450)
http://mkv2avi.deanbg.com/SD_720p.JPG

HD Source (1280x544) @ 576p: (CP=480, VP=660)
http://mkv2avi.deanbg.com/HD_576p.JPG

HD Source (1280x544) @ 720p: (CP=480, VP=660)
http://mkv2avi.deanbg.com/HD_720p.JPG

HD Source (1280x544) @ 1080i: (CP=480, VP=660)
http://mkv2avi.deanbg.com/HD_1080i.JPG

HD Source (1280x544) @ 1080p: (CP=480, VP=660)
http://mkv2avi.deanbg.com/HD_1080p.JPG

HD Source (1920x1080) @ 1080p: (CP=720, VP=660) Arial Bold 46 (not 36!)
http://mkv2avi.deanbg.com/HD_1920.JPG

HD Source (1920x1080) @ 1080p: (CP=720, VP=660) Arial Italic 46 (not 36!)
http://mkv2avi.deanbg.com/HD_1920_italic.jpg


---

All XSUBs are created with AVIAddXsubs with CP = (width * 0.375).

Conclusion: At all TV resolutions (576p, 720p, 1080i and 1080p) PS3 displays subtitles correctly for sources with width 624..1280.

I will test with a BluRay Demo Video 1920x1080p to check for settings and will report again. After the test with it I will provide values for incorporating in AVIAddXSubs, if the author incorporates an [x] Playstaion 3 checkbox in 'Subtitle Bitmap/Position' options.

p.s. I'm not really sure how CP and VP values are integrated into the XSUB stream, but it seems that PS3 ignores both values in some cases (only when [x] full screen is not checked in AVIAddXSubs), so my guess is that CP/VP positions are ignored by PS3 when the console finds a way to place them accurately. :)

You may have noticed that with a VP=450 for a 624x352 source it is all okay and with VP=660 for a 576p resolution it is all okay, too. BUT with 1080p videos VP should stay less than 700.

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

1920x1080 Hi-Definition Source:

It seems that PS3 will not accept: VP > 720 - (font_height_in_pixels), so the same settings as for 1280x... movie are used for 1920x1080p source, but with CP=720. Font can grow up to 46p Arial Bold with Outline and it will handle about 48 symbols per line. Then again, in some cases PS3 would accept higher values (VP>720) but it either ignores the value or subtitles will _show_off_screen_ :)

So settings should be:

X = WIDTH * 0.375

WIDTH | HEIGHT | CP= | VP= |
----------------------------
< 0721 | <0577 | (X) | 450 | i.e. 624x...., 640x...., 720x.... videos
< 1281 | <0721 | (X) | 660 | i.e. 1280x.... videos
< 1981 | <1081 | (X) | 660 | i.e. 1920x.... videos



UPDATE:

For PLAYSTATION 2 (with SMS player (http://home.casema.nl/eugene_plotnikov/)):

http://mkv2avi.deanbg.com/ps2.jpg

Arial Bold 25 with Outline=1 looks great with:

CP=360
VP=550

Works for XviD resolutions from 624x352 upto 936x528

These resolutions w/ CP&VP values are hardcoded in mymkv2avi_gui (http://forum.doom9.org/showthread.php?t=142422) if XSUB option is used with AVIAddXSubs (customized for PC, PS2, PS3).

naj
7th November 2008, 13:43
Well, your method to display subtitles no PS3 doesn't work correctly, Dean.

I used it as this: Arial Bold 36 on a 1920x1080 source, and if there's a line with more than 33 chars it gets all pushed to the right, offscreen.

I still use Tahoma Negrito 30 on all HD sources (720p and up) with CP blank and VP 676, and it always works in a charm.

I didn't ever used it for SD sources, so that I don't know.

deank
7th November 2008, 14:47
Are you saying that with ARIAL 36 and CP=720 you don't get the results I posted?

naj
7th November 2008, 16:40
I don't know if it was CP=720, your program sets it automatically, doesn't it?

I just set Font Style and Font Size manually, the rest is set by your program.

deank
7th November 2008, 16:53
Well, can you make some tests with my proposed settings with AVIAddXSubs and post the results? There was a minor miscalculation of CP values in previous releases. Download again (autoupdate).

dhmk
22nd November 2008, 14:34
New version 8.3

Now is possible to incorporate subtitles coming from the combination of many srt and one idx/sub file. Please note that the total of incorporated subtitles cannot be over 8. Because idx/sub can contain many subtitles you have to ensure that the total of subtitles from srt and idx/sub will not pass this specifications limit. AVIAddXSubs automatically forces this limit with subtitles coming from srt to have the priority. So, for example, if you incorporate 8 subtitles from srt will not leave space for subtitles from idx/sub.

newnews
22nd November 2008, 19:54
Hi, DHMK:
I think someone has suggested before about the srt file name rule. AddXsubAvi wants the file name as *.srt, *-2.srt....etc. However, the files downloaded from internet have language indication e.g. *.Eng.srt. In version 8, it is able to specify "srt extension", so I use ".Eng" to replace "1",".Chs" to replace "2","Kor" to replace"3", and so on, but it won't work. I still have to add "-"in the end of filename e.g. *-.Eng.srt to make it work. Not all software/hardware playER can support Xsub so I still keep .srt with .Divx files, but those players won't load subtitle files with an extra "-" in the filename automatically because avi filename is different now. I need add "-" before use AddXsubAVI and then remove "-" from file name after Xsub embedded all the time. I suggest that "-" should be flexible e.g. you specify "-2","-3" in the srt extension box by default and user can change to ".Eng"...., then both "*-2.srt" and "*.Eng.srt" will work.

Thanks

dhmk
23rd November 2008, 05:38
newnews,

The recommended is always to keep the srt together with the avi so to be able to incorporate the subtitles with new parameters when you target a different player or change your mind, e.g about size or colors.

For the other matter of the automatically added dash (-), I will see what I can do in the next version. Yes the user can add by himself/herself the dash if wants it.

NiGHTsC
2nd December 2008, 02:27
I just tried Deank's tool, mkv2avi and no problem at all for a 8GB video file!
even though it took me 20h to convert but well done Deank and Thank you so much!

ultratoto14
4th December 2008, 17:09
Hi dhmk, is your application be used with a command line to automate the process of .divx creation ?
If yes, great !!
If no, would it be possible to add this in a future release ?

dhmk
4th December 2008, 17:25
It accepts avi files in the command line (if many, separated with |). There are options to start and stop program without user intervention. It is possible to access directly the text based configuration file to configure farther the program.

The only thing is that in case of problems it stops to show the user the problem. It doesn't return any error code in the command line.

Read the documentation (README.htm).

Milcoi
6th December 2008, 18:52
will there be a language file soon?
All options in a different language.
(If you going to add that in next release I'm willing to help you translate)

With a Pioneer DV-410 I use
cp: 360
vp: 450

for a perfect center.
Isn't there a auto center option?
maybe a new option for next release.
A pulldown menu with screensettings.

I have the original dutch subtile fonts but can't select it.
They are in my font dir in windows

Helvetica LT Condenced Light
Helvetica Rounded Condenced Bold

both True Type fonts

Anyway.... I like it a lot. 53sec. to add .srt file to an .avi

regards,
Milcoi

dhmk
7th December 2008, 06:16
Milcoi,

I do not plan to support other languages in the user interface (and in the many messages that the program displays in various occasions). I think a few English is not a problem to anyone.

CP/VP options, etc have nothing to do with your TV screen but on how your player firmware translates these values, which can vary a lot from player to player. For the same reason is not technically possible to automate these options in any way.

About the not showing fonts in the selection list: Apparently are only for UNICODE text and the program handles only ANSI text. Maybe there is a solution in this. I will check it out! Of course you can pass them by hand (and not through selection list) to see if windows can select them. But I doubt.

Milcoi
7th December 2008, 12:50
what about using something like "SRT2BMP" this small program always makes your subtitle centered.

http://www.astral.lodz.pl/wojtekp/cyberhome/srttobmp-1.0.4.18.rar

dhmk
7th December 2008, 13:56
As I explained to you this is not technically possible. The "always" you observe with this program is only for your player. The same way if you configure CP/VP in AVIAddXSubs the way you have found then you will discover that the generated subtitles are "always" at the center.

And I think this program has nothing to do with the way the subtitles are placed when incorporated. It just generates bitmaps that have no positioning information.

Milcoi
7th December 2008, 15:56
thanks for the info...you are right. I'm just exited about this nice tool of yours and wants to help to add more funtions. I now niticed that you allready know these and if they where handy you would have programmed them in first place in your tool.

ultratoto14
19th December 2008, 18:55
Hi all.

Could it be possible to specify the output file in the command line ?

I use a Server for the PS3 that use named pipes to stream remuxed or reencoded files to the PS3. It could be a very interesting feature.

dhmk
20th December 2008, 07:25
You can use command line to process files (see "Start at Once" and "End at once" options in README.htm) and you are able to control the configuration of the program through its text based configuration file but will not get return any success or failure codes.

ultratoto14
20th December 2008, 10:43
I saw that it works great. The fact is that I need to specify the output name.

ex
Currently
aviaddxsubs.exe toto.avi -> creates a toto.divx file

I need something like
aviaddxsubs.exe toto.avi -out \\.\pipe\toto

if I set \\.\pipe\ as default directory, it tells me that the directory is not valid (normal)

dhmk
20th December 2008, 14:03
You can set "output folder" option (accessing aviaddxubs.txt) to define the output directory. Program makes a test to ensure there is a proper and existing directory. Your can write the file somewhere and pass it there to a pipe. Any way I am not sure what you try to do.

Milcoi
23rd December 2008, 12:38
will the new version support SSA / ASS subtitles?
Within these you can change position for each subtitle and add more nice stuff. Edit ssa / ass with Aegisub.

dhmk
23rd December 2008, 13:02
Milcoi, generally I am reluctant to support other subtitle formats especially when they are very rarely used. In the rare case of such subtitle a conversion tool (like Subtitle Workshop) can be used. Also have in mind that because of the different behavior in interpreting subtitle positioning from DivX players, these information will not be very useful to many.

Atak_Snajpera
1st January 2009, 20:27
Especially for ripbot264 I created small tool ssatosrt (.ass is also supported). This is command line tool
ssatosrt.exe "subtitle.ssa" "subtitle.srt"

Download
http://www.mediafire.com/?nigy3htjnzh

dhmk you can include it to your package if you want :)

rayvt
3rd January 2009, 15:56
Great program. I have found several programs that would add subtitles to a divx file, but none that would add
chapters. Oh, TMPGENC Authoring Works and Divc Authoring will add chapters, but only by adding a menu to the divx
file. I didn't want that, I only want chapters so I can skip forward and backwards. So AVIAddXsub seemed ideal.

However, there are a few problems. DIvx Player can't play the resulting file if there are chapters. My DVD player
will usually play the file, but often has problems.
I narrowed it down and tried various things. I finally discovered DMFCheck, and had it look at the files created by
AVIAddXsubs.

I extracted a 1 minute clip from a movie, with video, 1 audio track, and 1 subtitle track.

Here's what I found:
For a file without chapters, DMFCHeck reports these errors
1)
Title Riff - Type:AVI Offset: 0x8(8) Size: 0xe1a2f2(14787314)
DMFCHECK_ERROR 43004: TitleSub Test::
Subtitle dimensions: (720 x 480) do not match profile dimensions: (640 x 480)
[Probably not a big deal.]


2)
Header List Chunk - Tag: hdrl Offset: 0x14(20) Size: 0x246(582)
AVI Header - Tag: avih Offset: 0x20(32) Size: 0x38(56)
Stream List Chunk - Tag: strl Offset: 0x60(96) Size: 0x8c(140)
Stream Header - Tag: strh Offset: 0x6c(108) Size: 0x38(56)
Stream Format Header - Tag: strf Offset: 0xac(172) Size: 0x28(40)
Stream Name Header - Tag: strn Offset: 0xdc(220) Size: 0x10(16)
Stream List Chunk - Tag: strl Offset: 0xf4(244) Size: 0xd2(210)
Stream Header - Tag: strh Offset: 0x100(256) Size: 0x38(56)
DMFCHECK_ERROR 31004: Check audio extra header data:: cbSize(0) is incorrect. Offset(0x100)

3)
Movi List Chunk - Tag: movi Offset: 0x262(610) Size: 0xe0bf40(14729024)
DMFCHECK_ERROR 41008: Check Title Subtitles.:: Two pixel horizontal border not reserved in frame at
0x2340d4(2310356)
DMFCHECK_ERROR 41008: Check Title Subtitles.:: Two pixel horizontal border not reserved in frame at
0x5c570e(6051598)

[There are 7 of these errors. BTW, there are 16 subtitles in this clip.]

However, divxplayer will play this file ok.

-----------------------------------------------------------------------
For the same file, but with chapters (even with only 1 or 2 chapter points):
Divxplayer will *not* play this file. There is no video (just a black screen), and it Shows "total time" as 00:00:01.

DMFCheck reports:
1)
Check the interleaving. - Test executing
Critical error: Test 28 crashed (Check the interleaving.)

2)
Stream List Chunk - Tag: strl Offset: 0xf4(244) Size: 0xd2(210)
Stream Header - Tag: strh Offset: 0x100(256) Size: 0x38(56)
DMFCHECK_ERROR 31004: Check audio extra header data:: cbSize(0) is incorrect. Offset(0x100)
3)
MENU Riff - Type:MENU Offset: 0xe1a302(14787330) Size: 0x312e(12590)
DMNU List Chunk - Tag: DMNU Offset: 0xe1a30e(14787342) Size: 0x3122(12578)
MENU Chunk - FourCC:MENU Offset: 0xe1a31a(14787354) Length: 0x3b5(949)
DMFCHECK_ERROR 12002: Validate the Menu Model:: Wrong target type on element LanguageMenus objectId: 26 expected target type: <DivXMediaMenu or LanguageMenus or DivXMediaMenu or DivXMediaMenu> actual target type: DivXMediaManager


DMFCHECK_ERROR 14007: Check MediaTracks reference valid avi media tracks:: MediaTrack id: 20 trackID 00dc startingframe: 1799 is not a key frame. index offset: 0xe1a2da(14787290) RIFF offset: 0x0(0)

--------------------------------------------------------------
How can I help you find these problems so you can fix it?
If you want, I can upload my video clip somewhere.

dhmk
3rd January 2009, 17:07
rayvt, Don't mind much about what DMFCheck says. Is created from the same people did DivXMux (and never update it 3+ years now). AVIAddxSubs created to bypass this software in incorporating subtitles and avoid all the problems that come with it. With the checks this program does most of the avi out there will not pass and because DivXMux uses it internally in most cases fails and refuses to continue. The developers of these programs are very strict about things of no importance and invalidate avi very well constructed according Microsoft's specifications. Is bad software and as I said it has 3 years to be updated and be in accordance to current developments.

DivXPlayer has problems, chapters do not work very well or not at all. But is the first to report at least some occasional problems with your DVD player. Mine (PHILIPS DVP5980) never had any problem and I use them constantly.

That DFMCheck error about "1799 is not a key frame." can be true. It can happen. But I found my player able to handle it very well. Actually I never was sure about such things because chapter support came from reverse engineering of DivXMux output and not from formal documentation.

I am not sure if your DVD player has problems coming from this (you can describe them to see if could be that). I will add some code to ensure a key frame for chapters start in future version.

Have in mind that DivXPlayer, DMFCheck and DivXMux do not represent any standard and if they do only loosely.

Milcoi
5th January 2009, 15:08
Hi,

I wonder if it is possible to add a new option in the next release.

A option to scale the subtitle fonts over the x (horizontal) with %. That way you can adjust the fonts appearance.
and they will better fit on your screen when you have large subtitles and lenght.

example:
A 90% or 80% width set to the bmp's(xsub) before adding them into the divx.

kingfire
5th January 2009, 19:21
I'd like to report the same problem I had six months ago when I first used this great tool. The Arabic subtitle isn't shown completely correct using this tool AFTER generating the *.DIVX file.
here's an example:

http://i122.photobucket.com/albums/o274/kingfire11/1-1.png

an other example:

http://i122.photobucket.com/albums/o274/kingfire11/2-1.png

I attached the subtitle file used below.

dhmk
6th January 2009, 08:32
Milcoi, At the moment I am not sure what this app do with scaling as I cannot find any official support from Windows API for a feature like this. I will see what I can do.

kingfire, I will find out why this happens and I will fix it. When fixed I will comment here so you can download again. Thanks for your bug report.

UPDATE: KingFire, download again and let me know if all are ok. If you see other such problems let me know.

Milcoi
6th January 2009, 09:37
scaling bitmaps:
http://msdn.microsoft.com/en-us/library/ms532319(VS.85).aspx

scaling font:
http://msdn.microsoft.com/en-us/library/aa192379(office.10).aspx

some other, I think helpfull:
http://www.winehq.org/pipermail/wine-patches/2001-July/000777.html
http://lists.trolltech.com/qt-interest/2002-06/thread00710-0.html

http://blog.paranoidferret.com/index.php/2007/10/10/csharp-tutorial-font-scaling/
http://www.freevbcode.com/ShowCode.asp?ID=5747

dhmk
6th January 2009, 10:44
For font Width there is a way. At the moment the width is calculated automatically given the height. Is possible to give a specific width. I will make some tests to see the effect of this feature.

For bitmaps I know there is. But if it had to scale the bitmap I don't think so the result will be good. Either shrinking or expanding. Any way, I will see.

In general is always possible to select a different font, for example a condensed font.

Milcoi
6th January 2009, 11:08
would be nice! The width is in most cases the only thing you want to change / adjust.

Milcoi
6th January 2009, 13:38
I found an Arial Narrow Condenced font (90% horizontal scale of Arial Narrow). I will share it.

Milcoi
7th January 2009, 08:55
@DHMK
Did you manage to test some horizontal scaling?

dhmk
7th January 2009, 08:58
I made some tests with font creation of Wndows API. I think the Width parameter works as expected.

Milcoi
7th January 2009, 09:18
sounds good! when can we expect the new version?

dhmk
7th January 2009, 09:42
Will see, will see. Is so helpful such a feature?

Milcoi
7th January 2009, 09:53
I think yes! specialy when you have long subtitles. Also people can use the standard windows fonts and make them "condenced", this without buying a expensive condenced font.

dhmk
7th January 2009, 10:01
Condensed characters either way are more difficult to read and there is the "Break long lines" options that has proved, at least to me, that does a very effective job.

Milcoi
7th January 2009, 10:34
See screenshot with original (embedded) and other font's people say the using for subtitles. The condenced fonts are good to read.

girishven
19th January 2009, 07:05
Has anyone experienced issues in using AVIAddXSubs under Wine. The documentation in the website appears to mention that the tool works under wine.
75% of the time, I get a .divx which has the subtitiles corrupted. When I stream the files to my PS3 using mediatomb to by TV, i see that the subtitles appear properly for a while and then they all of a sudden appear as Junk.
Running AVIAddXSubs on the same file sometimes generates a proper divx file without the issues. Therefore, I am unable to find a pattern as to when an erroneous .divx is generated.

My OS : Ubuntu 8.10
Processor : AMD 3000+
RAM : 2 GB
Wine version 1.1.12 ( occurred even in earlier Wine releases )
AVIAddXSubs version : 8.3 ( had similar issues with 8.2 as well )



Note : I do not experience the same issues when running under Windows. ( My machine is dual boot). Because of this issue, I am having to boot into windows and get the subs added.

Has anyone found this issue running AVIAddXSubs under Wine/Ubuntu 8.10 and has found a work around ?

Thanks.
VGH

dhmk
19th January 2009, 07:25
Other users have reported complete success running AVIAddxSubs under Wine.

One user said:

I tested on Ubuntu Hardy and it works great with WINE.

Milcoi
23rd January 2009, 11:27
I have problems when viewing "italic" written lines.
At the right site of the subtitle bitmap it's cut of to much.

when for example the sentence ends with a L or H,
the top of the l is cut off. (appel)

I don't have a screenshot. can other people confirm this?

dhmk
23rd January 2009, 11:48
Milcoi, Use DivX Player in your PC to see if you observe any problem there. If not then something is going on with your Hardware player. I never saw such problem but I tested again and all looked OK with italics.

If it happens in some special case and you can locate which it is, let me know.

Milcoi
25th January 2009, 14:17
hhmmm it's my player. on pc it looks OK.
I read you did some testing with bitmap scale.
Any pos. to test with that? (your test version)?

:thanks:

dhmk
25th January 2009, 14:34
I am not sure what you mean. I never did any testing with bitmap scale.

Milcoi
26th January 2009, 16:57
I made some tests with font creation of Wndows API. I think the Width parameter works as expected.

Sorry I mean font scaling. possible to test with a test version?

dhmk
26th January 2009, 17:47
In the next version I will check the posssibility of adding such an option too.

DLS
28th January 2009, 04:49
Hello, i was looking for a program to incorporate subtitles in movies. Of all the programs i've tried this one is the simple, easy, fast one. (all perfect)

It works perfect, but for some reason I cant find a way to see the movie in the ps3 with the subtitles. After I put the subtitles even if i can see it with subs in my pc I cant watch it at all with the ps3

In my pc it works fine, but my ps3 wont play it.

pd:
Im using windows media player to share the movies so my ps3 could see all the files (movies,music, photos) I have in my pc.

Any help? I'll really appreciate it

thanks

dhmk
28th January 2009, 06:19
In AVIAdXSubs site under "AVIAddXSubs and PS3" there is a link when you can find information in case of PS3. Try to play the files through a USB stick or through a copy of them at PS3 internal HD.

NiGHTsC
31st January 2009, 23:41
@dhmk
any idea how this error occur?
http://img98.imageshack.us/img98/6001/8d661352wr3.jpg
the text means..."the provided user buffer section is invalid"

problem on line 132 subtitle?

Thank you.

girishven
1st February 2009, 06:18
Other users have reported complete success running AVIAddxSubs under Wine.

One user said:

Well... I am not sure about the extent people have really tried this to tell you that it works with complete success.

IMO they will need to watch the entire movie to make sure this problem occurs or not. Consistently use Ubuntu to ascertain that it works fine.

I tried this in three different machines running ubuntu 8.10 and am
running into the same problem. The issues occurs only within wine and not under windows. One of the forums suggested that the break lines option should be turned off and the selection of font should be "Liberation" but that also doesn't solve the issue.

Take a look at the last post in the forum below
http://ubuntuforums.org/showthread.php?t=929944

I will be able to help if there is any specific info you are looking for first of all for you to be convinced whether this issue exists or not.

VGH

dhmk
1st February 2009, 07:38
NiGHTsC, This happens when the avi has some kind of corruption or something unexpected. The usual solution is to pass it through avidemux to fix it. Just a load and save with its copy function.

girishven, try with "Full Screen" option checked that may avoid the bug in Wine as it follows a slightly different strategy in creating subtitles.

NiGHTsC
5th February 2009, 17:42
Ok, I'm gonna try this, thanx alot dhmk!

Milcoi
8th February 2009, 16:41
The Sony PS3 2.60 firmware update also includes:
DivX 3.11 support – Videos in this format can now be played on PS3.

newnews
21st February 2009, 01:50
No more new version?

dhmk
21st February 2009, 08:07
New version needs new features. So far I haven't find anything that deserves a new version.

One thing I can add in future is the ability to generate idx/sub files from srt because some players support them directly. But I will wait a bit for this.

rayvt
21st February 2009, 18:08
The one new feature I'd like is for it to generate output files with chapters that Divx Player would play instead of choking on. Because right now, it chokes when I try to play them on my computer.

dhmk
21st February 2009, 18:18
Chapters on PC work when Windows Media Player is used (with DivX codec). With DivX player not. Unfortunately the whole chapter thing is from reverse engineering and only this I have found, which works in my player (and many others) very well. Now why there is a problem when the Windows DivX player is used but not when the DivX codec is used through WMP (where other kind of problems appear), is something that only DivX company developers can answer. I am sorry.

About a month now I made an improvement in chapters code which ensures that all chapters start from I-FRAMES, those that do not need other frames (before or after) to decode. I didn't change the version number. If someone wants to try this improvement can of course download again.

deank
27th February 2009, 19:39
A feature request: if you can check SRT start/end times and don't give up on srts with overlapping or wrong start/end times. You can add it as an option and either ignore those with wrong times or try to fix them.

rayvt
27th February 2009, 23:22
Ok, another feature request: Make chapters even when there are no subtitles. This would be useful for mkv2avi.

dhmk
28th February 2009, 07:31
deank, download the latest version or download again. Now (from 1-2 months ago) AVIAddXSubs sorts by start time the subtitles in srt.

rayvt, Choose "remove subtitles" and you will get that.

rayvt
28th February 2009, 18:06
Thanks, I never thought of that.

omaa_kaan
8th March 2009, 13:06
It's a great piece of work dhmk!

Unfortunately I've got a problem:
after some time of playing movie my LG DVX390 just freezes. After switching off subtitles it runs ok and I can switch them on back - it runs ok thru some time (7 to 20 minutes) and freezes again; moments of freezing are random.
I've tried several files (e.g. Fireflies in the Garden, Serenity, Babylon A.D. - all from Rapidshare, just normal avis, 700MB), I've tried different setups: fullscreen on/off, multisubs, marked DivX as in all combination, use .avi for output file on/off, no chapters etc. It didn't make any difference. I used subtitles converted with SubEditPlayer to .srt.
Files seems to be ok, played with DivixPlayer without any problems.

I've noticed one more thing - without Fullscreen option, subtitles are displayed at given VP (eg. 500) and then for a short moment they appear much higher (about 420).

What can be wrong here? Thanks for any suggestions.

dhmk
8th March 2009, 13:29
omaa_kaan, Unfortunately all these problems have to do with your player's firmware. Check if you can update the firmware. Else... there is nothing else, except the replacement of the player with another one.

omaa_kaan
8th March 2009, 13:45
Thanks for reply dhmk. That's a sad piece of news for me. No other FW is available :-(
Still have hope to become a regular user of your great soft some day :-)

picrade
30th March 2009, 11:45
Feature request: Adding chapters at arbitrary points instead of equal intervals.
The user enters time as hh:mm:ss and the program finds the nearest I-frame to insert the chapter.
Can this be done?

Also, can a blank frame be used for the introductory menu avi?

dhmk
30th March 2009, 14:29
The second request is not possible. The first it is but... I will think about.

dhmk
6th April 2009, 14:47
New version 9.0


Now, additionally to incorporate XSUB subtitles in avi, is possible to generate idx/sub subtitle files. Some players support this kind of subtitles and give very good result when at the same time do not support XSUB or with problems. Users can now choose the subtitle type that gives the best results in their DivX/XVid Player. Please note that because one idx/sub file can package many subtitles and provides only one color palette for all, the colors of the first subtitle will apply to all regardless what the user has choose for each one of the rest. But other characteristics like font, font size, bold etc, can be applied separately for any of the packaged subtitles.

The "SRT Extension" option is changed a bit. Now the dash character (-) is not added automatically so the user can place it optionally in "SRT Extension" or use another character in its place or none at all. For example, for an avi file "lost0101.avi" and "SRT Extension" "-en" will load the "lost0101-en.srt". Using ".en" will load the "lost0101.en.srt" and so on.

Lupo Silenzioso
11th April 2009, 19:24
is it possible with this program to incorporate subtitles to m2ts files? I get this file with tsmuxer (I want to play a video with h264 on my ps3, including subtitles!).

deank
11th April 2009, 19:33
You can't use subtitles with m2ts files alone. You need them in Blu-Ray or AVCHD structure.

Lupo Silenzioso
11th April 2009, 19:51
deank, can you tell me where I can find a guide (or directly via pm) to see a mkv including subtitles on ps3?

zeurt
13th April 2009, 00:03
Hi dhmk,

First of all, my congratulations for your excellent work! :thanks:
Your program is the best and the most complete one for the Creation of Bitmaps based Subtitles. And has become still more complete after the 9.0 version, with the possibility of creation of .idx/.sub files.
When you have time, and if you think it is worthwhile, i would like you to consider these two requests, which for me would be great:
1- Possibility of create only .idx/.sub files. Because now, when creating .idx/.sub subtitles, automatically is created a .divx file besides the .idx/.sub files.
2- Possibility of selecting the Color Palette type for .idx/.sub: RGB or YUV. This is because most of DVD/DivX players deal only with YUV Color Palette for .idx/.sub subtitles. By now we need to edit the .idx file manually to get the correct colors.

People from Brazil appreciate your work very much!
Thanks in advance!

dhmk
13th April 2009, 07:25
zeurt,


Yes I am aware of that even before the release of 9.0. I wanted to see some reactions, that the users really care about this feature. Of course the creation of divx file (there is a configuration option to be avi if different output directory than source) can be considered as a copy of the avi that the users do usually after subtitling. It also unpacks "packed bitstream" that helps some players to work more smoothly (like mine). But yes it will become optional because if users don't want it is time consuming.

Glad to hear that, because I didn't see any problem with my PHILIPS DVP5980 player but it appears that others have problem. So this option will be added now I know it.

dhmk
13th April 2009, 12:16
Another thing about the latest version (9.0) not mentioned at "What is new". It supports drag&drop of files directly at the "File Names(s)" and "Messages" edit boxes. Please note that in some Vista PCs the program (because of that) is possible to crash when is loaded. In this case go at "System Properties/Advanced/Performance/Settings.../Data execution prevention" and select "Turn on DEP for essential Windows programs...".

zeurt
14th April 2009, 03:14
dhmk,

Thank you for your prompt answer and interest!

zeurt,
I wanted to see some reactions, that the users really care about this feature.
I think many people will seek a way to create .idx/.sub, considering the increasing popularity of Media Players of High Definition Videos (like TVIX, Popcorn Hour, Mvix and the new WDTV). None of these players supports XSUB. Some of them support .idx/.sub (TVIX and WDTV), either external or embedded (with .mkv container). Since .srt support never is so perfect (no support for <i> tags for example), .idx/.sub becomes a nice option in this case.

I´ve been testing the others programs avaiable for create .idx/.sub, but my inicial impression is that AVIAddXSubs does the job faster and better, with less limitations and issues than the others.
If I found some issues with your program during my tests, I'll let you know.

Thanks again!

zeurt
14th April 2009, 16:36
dhmk,

I forgot to mention that another interesting feature would be:
- Possibility of Create .idx/.sub from a .srt even when there is no .avi at the folder. In this way, one could create .idx/.sub and use it with others containers/codecs like .mkv/H.264, etc.

dhmk
14th April 2009, 17:05
dhmk,

I forgot to mention that another interesting feature would be:
- Possibility of Create .idx/.sub from a .srt even when there is no .avi at the folder. In this way, one could create .idx/.sub and use it with others containers/codecs like .mkv/H.264, etc.

Yes, in the next version I will support it. Actually the avi is needed to find out the frame rate. Frame rate is important for timing information embedded in the sub file that some players use.

In the absence of avi the program will ask about PAL or NTSC frame rate.

zeurt
14th April 2009, 23:49
In the absence of avi the program will ask about PAL or NTSC frame rate.

It would be fine if users could choose the following frame rates:
23,976
24
25
29,97
30
50
59,94
60
... and have a CUSTOM option, like you did for Resolution of Subtitle Bitmap.
... or just have the CUSTOM option, allowing to type de correct FPS.

krisq
15th April 2009, 10:37
dhmk,
Since .srt support never is so perfect (no support for <i> tags for example), .idx/.sub becomes a nice option in this case.


.srt does support <i> tag. At least for me.

jugaor
15th April 2009, 13:15
.srt does support <i> tag. At least for me.

He's talking about full .srt support at standalone DVDs, I guess...
(PC players are mostly OK with tags, except VLC)

zeurt
15th April 2009, 17:06
He's talking about full .srt support at standalone DVDs, I guess...
(PC players are mostly OK with tags, except VLC)

Yes, jugaor. I was talking about that. There is no standalone DVD/DivX player neither Hi-Def Media Player in the whole world that supports <i> tags for .srt (at least that I have knowledge).

dhmk
16th April 2009, 13:56
New version 9.1


Added option "Do not copy avi when no XSUB". Useful for those they want to generate only idx/sub subtitles. If this option is checked and there are no XSUB subtitles to be incorporated in the avi then the original avi will not be copied in the output directory. Please note that there are some cases that you want this copy even without XSUB subtitles in it. For example to apply "unpack packed bitstream" that makes some players to have a smoother playback.
Added option "Do not convert idx/sub to XSUB". When you do only idx/sub generation and no need XSUB incorporation in avi then you can disable the reading of idx/sub to be converted as XSUB, checking this option. This will avoid confusion at some point of repeating the operation when the program will get its idx/sub output as input this time and convert it to XSUB.
Now you can generate idx/sub without the presence of a video (avi) file. This way you can use the program to subtitle a mkv file. In this case the program will ask you about the frame rate of the video file (avi, mkv or anything else). At the moment only two frame rates are supported, for NTSC and PAL (23.976 and 25 FPS).

OAKside
16th April 2009, 15:00
Thanks dhmk. AVIAddXSubs has been working amazingly for me.
Such an invaluable app for foreign film lovers. *donated*

Small annoyance: I noticed my settings (AVIAddXSubs.txt?) are not always/all saved when upgrading.
My Font and Subtitle Position were two easily noticeable 'defaulted' changes on 9.0 -> 9.1.

*Edit: Ah, thanks for the clarification dhmk, it was probably 8.3 to 9.0 that I noticed.
I just noticed going 9.1 to 9.2 the settings were indeed transferred perfectly. :)

dhmk
16th April 2009, 15:20
OAKside,

Thanks for the donation.

From 8.3 --> 9.0 I had to reset "aviaddxsubs.txt" (configuration file) but for 9.0 --> 9.1 this was not the case.

zeurt
16th April 2009, 22:43
Thanks again dhmk!

Now, with the new options to generate only .idx/sub, the process has become even faster.

dhmk
17th April 2009, 09:29
To those they want to play with the colors in the palette of idx file (in case of idx/sub files):

The bitmaps are constructed with the arrangement below:

Color 1: Transparent. No need to care about it.
Color 2: Text Color
Color 3: Outline Color
Color 4: Not used.

I will add an option about selecting RGB or YUV colors in idx palette (now only RGB) when I have a more clear understanding about this matter.

Milcoi
20th April 2009, 09:42
Hello,

see http://www.fourcc.org/fccyvrgb.php for RGB/YUV Pixel Conversion.

dhmk
20th April 2009, 09:47
Yes, I know this site. I have already a formula for this. A similar from Microsoft. I will add something like that in the next version. Is not a big deal.

Milcoi
20th April 2009, 10:18
is a option to scale fonts horizontaly possible and sommeting other people also like to have?

this way you can use normal fonts and don't need expensive condenced variants.

http://www.switchonthecode.com/tutorials/csharp-tutorial-font-scaling
http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing

dhmk
20th April 2009, 10:47
I promise to add a scale option in the next version.

dhmk
23rd April 2009, 17:03
New version 9.2


Added option to generate YUV (instead of RGB) values for idx/sub color palette.
Added option to condense or expand the normal width of the selected font. The user can enter a value that represents a percentage of the normal font width. Values less than 100% generate condensed font, greater than 100% generate expanded font.

newnews
23rd April 2009, 20:02
Thanks for the new version. I have a question to ask: I have some of idx/subs I downloaded from internet which contains multiple language, however, the language id do not start from 0. I want to change it e.g. move english from id 2 to 0; move french from 3 to 1 etc... , I tried to edit .idx file without success. Do you have any idea?

dhmk
23rd April 2009, 22:26
newnews,

The language ID in idx file is repeated in sub in every subtitle entry, as a way to distinguish subtitles of one language from another. Try not to change the id but move around the whole language part in idx file to see if your player obeys in the order it finds the languages in idx and do not sorts them by id.

Milcoi
24th April 2009, 09:42
Thanks for the new version with Font (bitmap) scaling! It's working perfect. I need to do some more tests with the variable width but my first impression is verry good.
Does this also means that you can get more characters on 1 row or does it only scale the bitmap?

regards,
Milcoi

dhmk
24th April 2009, 10:32
Milcoi, condensed font takes less space horizontally. That is, more characters on every row. Do some tests to verify it.

zeurt
26th April 2009, 01:48
dhmk,

Thank you very much for the last version! The YUV Color Palette option is working pretty fine!
I have to admit that Milcoi insistence during last months was worthwhile :D: this new width scaling option is very cool!
I forgot to say that the new way the program deals with extensions (.en, .pt, etc.) since version 9.0 is perfect: very useful!

Milcoi
1st May 2009, 13:17
zeurt Thanks for the info.
I tested it for more then 4 day's now and must say I'm not dissapointed.

2 options that could be enhanced are:

- outline thickness option with a value behind the dot or comma. for example 1.2 or 2,6. (now you only can select 1 or 2 or 3 ect.)
- same goes for bold option (don't know if it is possible)
for example an extra option to enlarge the boldness.

dhmk I'm very happy with this version. THX!! :thanks:

dhmk
1st May 2009, 13:37
No, thickness is in pixels. Is not possible to get half pixel.

There are various levels of bold. The one used is the most common.

Milcoi
1st May 2009, 20:06
dhmk No, thickness is in pixels. Is not possible to get half pixel.

I didn't know that, thanks for explaining.

Maybe also a option to scale vertical in a next version?

dhmk
2nd May 2009, 08:42
The scale in the vertical case is to select bigger font.

ultratoto14
2nd May 2009, 08:52
Hi dhmk, could it be possible to have a shadow like mplayerc do ?