Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th July 2008, 14:40   #1  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Convert an ASSDRAW ASS file to the SUP format to use it in a DVD.

Please find below a tutorial I've just written to allow converting ASSDRAW generated ASS files to the SUP format.

Click here to download the tutorial (word .doc file).

Cheers
Manusse

PS: If you need the source code it's here: http://subtitlecreator.svn.sourcefor.../SCVideoToSrt/

Last edited by manusse; 16th July 2008 at 12:26. Reason: Added a link for the source code
manusse is offline   Reply With Quote
Old 16th July 2008, 14:18   #2  |  Link
Sir Didymus
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 953
Hi manusse!

I am very interested in your work. See this discussion in the authoring forum for the origin of such "interest"...

http://forum.doom9.org/showthread.php?t=139517

However I got almost immediately stopped in the process of testing your method due to this error:



I suspect that the SCVideoToSrt dll is someway corrupted or incompatible with my system. Is its size of just 12,5 KB?

Have you any hints on how to overcome this stopping issue ?

Last edited by Sir Didymus; 16th July 2008 at 14:24.
Sir Didymus is offline   Reply With Quote
Old 16th July 2008, 16:33   #3  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Hi,

Normally this should work. As you've put the dll in the plugins directory, you could try without the LoadPlugin line (just comment it using a #). Maybe this is the problem?

Tell me if it's working or not. I've tested the dll with XP SP3 and AviSynth 2.58.

Cheers
Manusse
manusse is offline   Reply With Quote
Old 16th July 2008, 17:40   #4  |  Link
Sir Didymus
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 953
Well, I changed the avs script, from the exact content of your example to the one showed in the image of my previous post, just in order to evidence that the plugin can not be loaded, even with the direct "Loadplugin" avisynth call.

Using the straight content of your example, the error reported by avisynth is the following: <<Script Error: there is no function named "SCVideoToSrt" (C:\Tmp\test\test.acs, line 10)>>

I have the same configuration: OS WinXp SP3 & AviSynth 2.58...

May I ask again: do you confirm the size of the SCVideoToSrt plugin is 12,5KB? It seems very little, considering the job that it should perform... I suspect the version uploaded on sourceforge is corrupted...

Cheers,
SD

EDIT: To other users --> did somebody else already test the approach described in the guide from manusse? Could you please jump in and comment on your experience?

Last edited by Sir Didymus; 16th July 2008 at 18:52.
Sir Didymus is offline   Reply With Quote
Old 16th July 2008, 19:26   #5  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Hi,

The exact size of the dll is 12800 bytes.

Maybe you have got too many dlls in your plugins directory. I've read somewhere this can be a problem because they are all loaded, I think. Try to remove some of them for testing.

Exact AviSynth version:
AviSynth 2.58, build:Jun 20 2008 [14:40:39]

Cheers
Manusse

[EDIT] I will not have access to the internet for a few days.

Last edited by manusse; 29th August 2008 at 21:05.
manusse is offline   Reply With Quote
Old 28th August 2008, 19:26   #6  |  Link
Oleg Rode
Registered User
 
Oleg Rode's Avatar
 
Join Date: Jun 2008
Location: Kiev, Ukraine
Posts: 92
OH MY GOD!!!
Man, this is awesome!!! Didn't tested yet But it looks pretty cool! You don't even understand what does it mean to me and to other anime lovers! I'll try to focus attention of the anime community to this programm. Man, I still don't believe my eyes! This is GREAT. Of course bug reports will be soon. I hope you will keep working on this program...
Sorry for my English....
Oleg Rode is offline   Reply With Quote
Old 29th August 2008, 21:03   #7  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Hi,

Actually, I've developped this for Anime guys. Just test it and tell me if it's working like it should. I'm also open to any suggestions you may have and may also need some help for future features.

Cheers
Manusse
manusse is offline   Reply With Quote
Old 30th August 2008, 20:57   #8  |  Link
Oleg Rode
Registered User
 
Oleg Rode's Avatar
 
Join Date: Jun 2008
Location: Kiev, Ukraine
Posts: 92
OH NO! Not working...
The same problem with the SCVideoToSrt - Virtual Dud crashes.

I manualy installed only 4 plugins -VSFilter.dll, SCVideoToSrt.dll, FFMpegSource.dll and TIVTC.dll. So, I don't think that is a "a lot of plugins" problem... Any ideas
I am using Windows XP Service Pack 3 and latest AviSynth 2.58 alfa
Sorry for my English...

Last edited by Oleg Rode; 30th August 2008 at 20:59.
Oleg Rode is offline   Reply With Quote
Old 31st August 2008, 10:57   #9  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
OK,

I'll try on another computer of mine and keep you informed (today, I think). Thanks for the feedback.

Cheers
Manusse

[EDIT]: I could reproduce the bug, I'm on it...
[EDIT2]: It seems if I install VC++ Express 2008, I don't have the error anymore. I have to check why. I'll keep you informed.
[EDIT3]: It seems it's a compilation problem due to my use of VC++ Express 2008. I'm currently trying to compile it with VC++ Express 2005 but I have big problems installing it.

Last edited by manusse; 2nd September 2008 at 20:38.
manusse is offline   Reply With Quote
Old 8th September 2008, 22:54   #10  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Ok,

It took me some time but I could finally recompile it using VC++ Express 2005. Could you please give it a try. Tell me if it's OK or not.

Cheers
Manusse

Last edited by manusse; 9th September 2008 at 20:04. Reason: Suppressed attached file (see next post)
manusse is offline   Reply With Quote
Old 9th September 2008, 20:04   #11  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
This time, I've tested it and I think it's OK. Please tell me. You can use the link in my first post. I've updated it.
Source code has also been cleaned and updated.

Cheers
Manusse
manusse is offline   Reply With Quote
Old 11th September 2008, 15:02   #12  |  Link
Oleg Rode
Registered User
 
Oleg Rode's Avatar
 
Join Date: Jun 2008
Location: Kiev, Ukraine
Posts: 92
OK! It looks like I have a work for weekend to test your app.
Oleg Rode is offline   Reply With Quote
Old 12th September 2008, 08:43   #13  |  Link
Sir Didymus
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 953
Hi manusse!

I just tested the new dll and the overall procedure...

I have a good news, then a bad news, then another good news...
So, I would say the balance of the testing session is positive...

:-)

1. Good news. The dll is now working! I have followed your nice guide, step by step, and it seems your overall method is working! The procedure is not stopped any more by any sort of errors!

2. Bad news. The playback with Cyberlink Power DVD was not OK. Just few subpictures were properly played, then the DVD stopped. Using MPC and Corel WINDVD9 as software players was OK. Burning a DVD and testing on my standalone player produced very bad results: the playback of the subpictures suffered from strong "flickering", "stopping" and other instabilities.

3. Good news. Trying to go deeper into the issue, I think I figured out the reason for the problems above. It is a very old problem (never solved) with SC. In each individual SPU produced by Subtitle Creator, in order to comply with the DVD-VIDEO specifications, the subpicture display control area should be (for PAL):
Code:
0 <= Start_X_coordinate < End_X_coordinate <= 719
2 <= Start_Y_coordinate < End_Y_coordinate <= 575
or (for NTSC):
Code:
0 <= Start_X_coordinate < End_X_coordinate <= 719
2 <= Start_Y_coordinate < End_Y_coordinate <= 479
The issue can be easily observed by loading the sup asset (the output of SC) within DVDSubEdit by Jeanl...
Ha... By the way, little heads up: Jeanl just released a new version (1.5) of its great application! Hey Jeanl, thanks!

With some "tricks and adaptations", it is possible to make your procedure working (it is just a tuning of the subpicture size and position, in order to bypass the SC error):

- first of all the BlankClip line in the script for feeding the dll should be changed (showing just the PAL version):
Code:
#Make a srt file compatible with the new version of SubtitleCreator (2.3rc1)
video=BlankClip(width=719,height=573,fps=25)
- then the Subtitle Creator configuration should be set as follows:


- this will lead to the following result (screenshot from DVDSubEdit), which is compliant with the DVD-VIDEO specs - and with PowerDVD and with my standalone:


OK. It was a nice testing session...
Please, please, please try to involve the authors of SC in this thread... It would be very nice to have this very old issue in the sup assets generated by SC faced (and possibly solved...)...

Cheers,
SD

Last edited by Sir Didymus; 13th September 2008 at 11:59.
Sir Didymus is offline   Reply With Quote
Old 12th September 2008, 18:14   #14  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
First thanks for the rather positive feedback. I'm inspecting your message...

Quote:
Please, please, please try to involve the authors of SC in this thread... It would be very nice to have this very old issue in the sup assets generated by SC faced (and possibly solved...)...
The author of SC is Paddington and he sometimes follows this thread. I'm also involved in SC's development. I've especially coded the HD-SUP import function and also added the VobSub format support. I will have a look at the code and maybe fix it if there's a bug for the next beta.

Cheers
Manusse
manusse is offline   Reply With Quote
Old 12th September 2008, 20:33   #15  |  Link
Sir Didymus
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 953
OK!

I really hope it should be not too difficult to verify that the issue I am seeing is really present!
I am quite sure it is also the origin of the troubles from other users, as reported in the SC thread...

It happen, apparently, that the parameters defined in the SC GUI (position the subtitles panel; "horizontal", "vertical", "width" and "lines" edit boxes) do not translate to the right values for the corresponding SPU DCSQT command (Set Display Area sx, ex, sy, ey)...

DVDSubEdit is the right tool to use for the inspection...

Thanks a lot for looking into the matter, and please consider myself available for whatever support or further testing you need on the subject...

Cheers,
SD
Sir Didymus is offline   Reply With Quote
Old 24th September 2008, 20:18   #16  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Hi Sir Didymus,

I checked the DVD specs I could find and I found a small difference with what you are mentioning but I thank you for pointing this bug (see below in green):

Code:
0 <= Start_X_coordinate < End_X_coordinate <= 719
2 <= Start_Y_coordinate < End_Y_coordinate <= 574

Code:
0 <= Start_X_coordinate < End_X_coordinate <= 719
2 <= Start_Y_coordinate < End_Y_coordinate <= 479
I agree that SC must stick to those values to generate compatible subpictures. I'm now having a look and will keep you informed.

Cheers
Manusse

Last edited by manusse; 24th September 2008 at 20:41.
manusse is offline   Reply With Quote
Old 27th September 2008, 06:49   #17  |  Link
Sir Didymus
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 953
Yes, yes! Of course I agree... It was a (memory leak) mistake from my side.

The point is that the display area, for PAL should be no larger than 573 lines, and start on line 2. Its size should be less or equal to 720 pixels.

So the StartX coordinate sholud be >= 0 and the EndX coordinate should be <= 719. The StartY coordinate should be >= 2 and the EndY coordinate should be <= 574.

In the output of SC I frequently have observed odd values of StartY = 0 and EndX = 720.

This is the reason, IMHO of some big instability issues that can be seen by playing the subpictures created by SC by playing them on the standalones.

Thanks a lot for focusing on this glitch!

Cheers,
SD
Sir Didymus is offline   Reply With Quote
Old 8th October 2008, 14:47   #18  |  Link
w53191
Guest
 
Posts: n/a
Hello there. I made it Work with every Draw I made, but when I try to use the same script for a normal ass, even without Karaokes, It doesn't work right (When I make the bmps they are always blank pages). Is there another way of doing it? Or may it be that I'm messing up things? (Thing that its waaaaaaaaaaaay possible xD).

Thx. Cya.
  Reply With Quote
Old 8th October 2008, 19:22   #19  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Quote:
but when I try to use the same script for a normal ass, even without Karaokes, It doesn't work right
Please explain a bit more. Which part of the process doesn't work? Is it "Srt file and bitmaps generation" or "Sup file generation"?

Cheers
Manusse
manusse is offline   Reply With Quote
Old 8th October 2008, 21:37   #20  |  Link
manusse
SubtitleCreator's Co-Dev
 
manusse's Avatar
 
Join Date: Oct 2005
Location: France
Posts: 579
Hi all,

I've updated the dll (plugin) and the source files so that Y is now set to 2 and not to 0 (in conformity with DVD specs).

An update of SubtitleCreator will also be needed for full compliance but you'll have to wait for that. I'll update the documentation ASAP.

Cheers
Manusse
manusse is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.