Log in

View Full Version : New version of SubtitleCreator for .NETv2 released


Pages : 1 2 3 4 5 6 [7] 8 9 10 11 12

patou7067
26th December 2007, 15:55
Hi everybody !

I've got a big problem with the Google Trasnlation option in the Tools.
When I start the translation i got the message in the Output field: The index is outside the limits of the table.

What's wong and how can I fix it ?

I think I found where the problem is. If you type the subtitle text in the translation field in Google and then click on translate, you get a new page with the following message:
We're sorry...
... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now.

We'll restore your access as quickly as possible, so try again soon. In the meantime, if you suspect that your computer or network has been infected, you might want to run a virus checker or spyware remover to make sure that your systems are free of viruses and other spurious software.

We apologize for the inconvenience, and hope we'll see you again on Google.

So the error message in Subtitlecreator v2.2 appears because of the spyware and virus "Test" now included in Google Translation Tools.
At the End of the page you need to enter some letter to continue the translation. What a s*** !

Is there a possibility to check this out and make it possible to use the Google translation in SC v2.2. ?

Thanks for your help.
Patou

mashiwen
27th December 2007, 22:23
I use it to ocr the sub from movie A Clockwork Orange hddvd
and work perfect.When will it support blue-ray sup files?Thanks

Kurtnoise
31st December 2007, 12:23
@Manusse: how can I avoid the overlapping with this font (Segoe UI) ?

http://img151.imageshack.us/img151/74/sc0231122007122723iy3.png

Paddington
31st December 2007, 17:22
Hi everybody !

I've got a big problem with the Google Trasnlation option in the Tools.
When I start the translation i got the message in the Output field: The index is outside the limits of the table.

What's wong and how can I fix it ?
Google translate have changed their layout. Since this technique is based on screen scraping (Google doesn't have a public interface, AFAIK), it cannot find the text anymore. This will be solved in the next release.

Paddington
31st December 2007, 17:32
@Manusse: how can I avoid the overlapping with this font (Segoe UI) ?

http://img151.imageshack.us/img151/74/sc0231122007122723iy3.png
The problem is that Microsoft's measurement of font widths is buggy (or at least I don't know how to compensate for it :-), and the same measurement function returns different results for different fonts. Some of them are OK, yours clearly isn't. What happens if you add a couple of spaces... I don't have your font, so cannot try it out.

If that works, make sure that, after you save it, you turn off the feature the automatically clean up spaces on load (Settings menu).

Kurtnoise
1st January 2008, 15:10
Thanks Paddington, that does the trick...

gurabli
2nd January 2008, 14:30
Hi!

I have a movie on a DVD with two versions of the movie. One is the theatrical and the second is the Director's Cut. How can I add subtitles in this case?
Regards,
gurabli

Paddington
3rd January 2008, 22:57
So the error message in Subtitlecreator v2.2 appears because of the spyware and virus "Test" now included in Google Translation Tools.

The problem is NOT related to spyware! It's just because Google does not like automatic querying. And since SC is doing just that, sending potentially hundreds of queries (every subtitle line is one query) at about 1 query per second, they stop you from accessing. For now, I can only think of two ways to avoid this:

Cut your subtitle file into several smaller pieces
Use an anonymizer tool, so to Google, it will look that every query is coming from a different location, and they won't be able to block you

In the future, I might be able to add a delay factor, but I don't know what the delay between successive queries has to be. Suggestions are welcome!

Paddington
3rd January 2008, 23:04
Hi!

I have a movie on a DVD with two versions of the movie. One is the theatrical and the second is the Director's Cut. How can I add subtitles in this case?
Regards,
gurabli

Good question - it depends a bit on how they are written on the DVD. If each of them is in a separate title set, you can do it manually, i.e. use PgcDemux to demux both title sets, create two subtitles, and mux the titles again with muxman. VobBlanker can then be used to insert the newly created title sets into the original menu.

In case there is only one title set, with some conditional branching, that might be trickier... If there are existing subtitles, I would demux everything, and create two new sups, each one being synchronized with the normal versus Director's cut version. And then adding them together again using muxman. However, i'm not so sure whether muxman can do that, as you would have to recreate the conditional branching as before...

That would be a good question to ask mpucoder or some of the other experts out there.

gurabli
4th January 2008, 14:31
Good question - it depends a bit on how they are written on the DVD. If each of them is in a separate title set, you can do it manually, i.e. use PgcDemux to demux both title sets, create two subtitles, and mux the titles again with muxman. VobBlanker can then be used to insert the newly created title sets into the original menu.

In case there is only one title set, with some conditional branching, that might be trickier... If there are existing subtitles, I would demux everything, and create two new sups, each one being synchronized with the normal versus Director's cut version. And then adding them together again using muxman. However, i'm not so sure whether muxman can do that, as you would have to recreate the conditional branching as before...

That would be a good question to ask mpucoder or some of the other experts out there.

There is only one title set. The DC version is somewhat longer than than the theatrical, and only the extra scenes are added during playback.
I'll try to add two subtitles - one for theatrical and one for dc , will see the results and post them here.

patou7067
5th January 2008, 10:03
The problem is NOT related to spyware! It's just because Google does not like automatic querying. And since SC is doing just that, sending potentially hundreds of queries (every subtitle line is one query) at about 1 query per second, they stop you from accessing. For now, I can only think of two ways to avoid this:

Cut your subtitle file into several smaller pieces
Use an anonymizer tool, so to Google, it will look that every query is coming from a different location, and they won't be able to block you

In the future, I might be able to add a delay factor, but I don't know what the delay between successive queries has to be. Suggestions are welcome!

Yes, that's right. Thanks a lot for your answer/: I'll try this and I'll tell you if this works. See you later

Patou :)

patou7067
5th January 2008, 10:04
Google translate have changed their layout. Since this technique is based on screen scraping (Google doesn't have a public interface, AFAIK), it cannot find the text anymore. This will be solved in the next release.

Great to know that you'll try to fix it in the next release..and Happy New year.. Best wisches..

Patou :)

Wackyphill
21st January 2008, 03:14
Has anyone ever had trouble converting a SUP file from an HDDVD to vobsub format?

For me, it always stops loading in the SUP file after about 12 minutes of the film. I get those subtitles but not the rest that should come after.

This happens on XP and Vista. Although "sometimes" on Vista this exception is thrown:

System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, Graphics g)
at SubtitleCreator.SUPPreviewForm.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


I PM'd Manusse about this and he was unable to reproduce this on his machine. I was just curious if anyone has run in to this? I'm at a loss how else to have subtitles playback w/ my HDDVD MKV backup.

Thanks for any info.

Wackyphill
21st January 2008, 04:32
I just had a chance to run the program on an older Pentium4 machine and it ran fine. Is it possible this is a bug that is related to multi-threading and shows up on newer multi-core processors but not older ones?

manusse
21st January 2008, 20:34
A bit hard to tell. If you could for example build a debug version of SubtitleCreator and run in in debug mode within SharpDevelop, you would then be able to catch the exception and this would help us know what's happening.

Cheers
Manusse

Wackyphill
22nd January 2008, 13:57
A bit hard to tell. If you could for example build a debug version of SubtitleCreator and run in in debug mode within SharpDevelop, you would then be able to catch the exception and this would help us know what's happening.

Cheers
Manusse

I tried to run the source in debug mode, but didn't get far. It builds but got the following error when it tried to run:

Exception System.TypeInitializationException was thrown in debuggee:
The type initializer for 'SubtitleCreator.Settings' threw an exception.

Main() - ... PreviewForm.cs:156,4

manusse
22nd January 2008, 19:23
Ok, so if you could change the code around the line of the exception by this one:


static void Main(string[] args)
{
try
{
// Uninstall application
foreach (string argument in args) {
if (argument.Split('=')[0].ToLower() == "/u") {
string guid = argument.Split('=')[1];
string path = Environment.GetFolderPath(Environment.SpecialFolder.System);
//System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo(path + @"\msiexec.exe", @"/i " + guid);
System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo(path + Path.DirectorySeparatorChar + "msiexec.exe", @"/i " + guid);
System.Diagnostics.Process.Start(si);
return;
}
}
}
catch(Exception e)
{
Console.WriteLine ("Caught: {0}", e.Message);
Console.WriteLine ("Inner Exception is {0}",e.InnerException);
}


// I needed to prevent the main window from popping up: probably the Application.Exit() has a
// delay, as it doesn't exit immediately.


This should display a more detailed message about the exception.

Cheers
Manusse

(Also if you have the time and patience we can try to narrow down the bug together using MSN. In this case PM me please so that we can arrange for an online meeting).

Hogan77
24th January 2008, 01:53
I got problems with every version I have tried. Whenever I run it, it will crash and asks if I would like to send an error report to ms.

Here's a picture of it, hopefully anybody can tell me how to get it running.

http://www.freepicshost.net/pview.php?fid=8007&fname=SubtitleCreator-error.PNG

manusse
24th January 2008, 15:47
Questions:

What is your OS?
Is .Net 2.0 installed?
How much memory does your PC have?
Did you try on another computer (if possible)?

Manusse

Hogan77
24th January 2008, 16:44
- Win XP Sp2
- .NET installed, use several .NET applications without problems.
- 1GB
- Haven't tried it on another pc. If you have a version that doesn't have to be installed on your pc. And you can just extract the files to a folder and execute the application. Then I can try it on another pc.

manusse
24th January 2008, 22:17
Just copy the files from SC's directory. There is no need for installing except if you want to be able to preview your subtitles on top of the video (in this case, the DirectShow filter needs to be registered) which is not your case, at least for the moment.

Otherwise your configuration seems just fine. Did it work once? Because by default SC will open at startup the last open file. And sometimes if this file is not correct there will be an exception. And then it will become impossible to open SC again as it tries to open this incorrect subtitle file and fails. A way to fix it is indicated in this message:

http://forum.doom9.org/showpost.php?p=881019&postcount=57

Hope this helps
Cheers
Manusse

Hogan77
25th January 2008, 01:12
You are right, I got one file MRU.txt, renamed it and now I can use SC. Thanks for the help manusse. Maybe it's not a good default setting to open the last used file. ;)
The first thing I did was to make it not open last file opened. :)

manusse
25th January 2008, 20:11
Ok, good that it worked. I would be interested in your (bugged) srt file. Could you please send it to me (you can put it on a file sharing site and PM me the link).

Cheers
Manusse

Hogan77
26th January 2008, 12:40
Ok, good that it worked. I would be interested in your (bugged) srt file. Could you please send it to me (you can put it on a file sharing site and PM me the link).

Cheers
Manusse
It's done. :)

Wackyphill
27th January 2008, 04:16
Ok, so if you could change the code around the line of the exception by this one:


static void Main(string[] args)
{
try
{
// Uninstall application
foreach (string argument in args) {
if (argument.Split('=')[0].ToLower() == "/u") {
string guid = argument.Split('=')[1];
string path = Environment.GetFolderPath(Environment.SpecialFolder.System);
//System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo(path + @"\msiexec.exe", @"/i " + guid);
System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo(path + Path.DirectorySeparatorChar + "msiexec.exe", @"/i " + guid);
System.Diagnostics.Process.Start(si);
return;
}
}
}
catch(Exception e)
{
Console.WriteLine ("Caught: {0}", e.Message);
Console.WriteLine ("Inner Exception is {0}",e.InnerException);
}


// I needed to prevent the main window from popping up: probably the Application.Exit() has a
// delay, as it doesn't exit immediately.


This should display a more detailed message about the exception.

Cheers
Manusse

(Also if you have the time and patience we can try to narrow down the bug together using MSN. In this case PM me please so that we can arrange for an online meeting).


Sorry, I got distracted and didn't get back to you earlier. The source I have gets an index out of range error here:

myProfile = (Profile) Profiles[1];

This is in the Settings.cs file: ReadProfiles() Line 1261

manusse
27th January 2008, 14:47
I really don't undertstand what's happening. Normally when opening a HD-SUP file, there is no reason that you go through the ReadProfiles() method.

I really don't see what's happening????

Wackyphill
27th January 2008, 19:06
Yeah, Probably so.

But I'm not getting that far w/ the source.

When the App starts at line 158 of PreviewForm.cs:

mySettings = Settings.Instance;

This triggers that exception.

manusse
27th January 2008, 19:26
I don't get it. You mention 3 different exceptions:

Main() - ... PreviewForm.cs:156,4
Settings.cs file: ReadProfiles() Line 1261
line 158 of PreviewForm.cs: - mySettings = Settings.Instance;

Which one do you see?

Manusse

Wackyphill
27th January 2008, 20:17
I believe they are all the same. I don't really get it either, but if I step through the main() I get no further than line 158:

mySettings = Settings.Instance;

If I catch the exception that is thrown at that line its innerException's stack trace says:

at System.Collections.ArrayList.get_Item(Int32 index)
at SubtitleCreator.Settings.ReadProfiles() line 1261
at SubtitleCreator.Settings..ctor() line 266
at SubtitleCreator.Settings..ctor() line 82

manusse
27th January 2008, 20:45
I may have an idea.

Where did you get the source files from?
You're running a debug build, aren't you?

Cheers
Manusse

Wackyphill
27th January 2008, 20:49
http://sourceforge.net/project/showfiles.php?group_id=120228&package_id=251117

I'm running the source w/ debugging on.

manusse
27th January 2008, 21:05
Ok, this is not really a bug. This is due to the fact that you are running a debug built and that the sources are not adapted so as to allow debug builts to run easily. This has been fixed under SVN.

But what you can easily do to fix this nasty bug is:
copy all what you see under bin/Release to bin/Debug (Data, Documentation and Examples folders and their contents). This should do the job and you should be able to run a debug built.

Then we will be able to concentrate on your real bug.

Cheers
Manusse

Wackyphill
27th January 2008, 21:12
Ahh, I see. OK Yup that worked. Thanks.
I'll be abe to try it out now and get back to on the real bug.

Thank you.

molitar
4th February 2008, 09:36
Help.. I followed the procedures here for how to add subtitle to dvd (http://forum.videohelp.com/topic338721.html) but the new video_ts folder showed an enable subtitles but no subtitles showed up. Something must be wrong with this guide so what am I doing wrong and how do I get this to work properly?

Also I was missing vobblanker.exe the first time and now even after setting it.. stupid program keeps telling me it can't find the file.. as if it's using some older config somewhere even tho I have reset to default many times. This really seems buggy to me.

molitar
4th February 2008, 18:15
Ok after finally getting this application to run properly finally showing subtitles at preview.. but when I run the DVD Authorizing Wizard their is no subtitles at all! What is wrong? why can't I get subtitles to work?

manusse
4th February 2008, 20:55
The DVD authoring wizard is used to add one of your subtitles (srt, sub, vobsub or sup) to an existing DVD.

What is exactly your problem (what are you trying to do and where are you stuck?).

Cheers
Manusse

molitar
5th February 2008, 04:01
Ok after many trials.. I finally got it happy with the dvd decoder.. but if you right click on the video file than the program completely locks you out and all you can do is watch the show or alt+end+task the app. Second problem now that I finally got subs working on preview when I use the DVD Authoring Wizard the timing starts out perfectly fine but after about 6 minutes or so the timing is so far off that it becomes unwatchable.

Issues I have had.

1. Converting ASS to SRT using Subtitle Workshop looks fine but when I load it in Subtitle Creator their is several negative timing values that I had to manually fix.

2. If for some reason your missing one of the applications like I was VobBlanker (because I had blankvob wrong app) than it does not ask you path again. You have to reinstall to get default settings back so it will ask you where these applications are located. Their really should be an application path setting where it can be set manually.

3. Lack of instructions saying you need to convert srt to sup before you can actually mux.

4. Timing for subs are way off and makes the remuxed video unuseable.

5. Lack of real explaining about what DVD Decoders worked.. I finally installed trial version of PowerDVD 6.5 and copied all the .ax files and dropped them into their own folder.. Uninstalled PowerDVD and registered the ax files and was finally in business. But nowhere in the manual does it say actually what files are required I know that all these files were not but I end up registering them all just to make it work.

6. Sometimes while previewing subtitles the sound will stutter.

But the main issue now is with timing. I have not been able to successfully add subtitles to a DVD that had no subtitles to begin with. Timing is always off.

molitar
5th February 2008, 16:22
Well I have tried absolutely everything. When I preview the subtitles the timing is quite accurate but when I make the sup file and than mux them the timing is all off..

Is no one able to help me with this problem? I have spent an entire day now trying to use the DVD Authoring and every single time the subtitle timing is off.. what do I need to do for timing?

molitar
5th February 2008, 17:55
I have definitely found a bug with SubtitleCreator. When I load in a good clean SRT (tested with subtitle workshop) it always takes these lines of code and makes negative timing values out of them. Seems SC does not like overlapping times.

11
00:00:53,870 --> 00:01:02,440
HEroAP Presents

12
00:00:53,870 --> 00:01:02,440
Visit us at
http:/www. heroap. org/

13
00:00:55,700 --> 00:01:02,440
Second Volume

14
00:00:55,700 --> 00:01:02,440
Crimson Martyrdom


tuns these three lines into this in timing.

11
00:01:02,441 --> 00:01:02,440
HEroAP Presents

12
00:01:02,441 --> 00:01:02,440
Second Volume

13
00:01:02,441 --> 00:01:02,440
Crimson Martyrdom

Is their any fix for this problem?

molitar
5th February 2008, 18:54
Ok now SubtitleCreator just blew up on me completely.. It won't run at all.. it gives me Could not get interfaces!specified cast is not valid. whenever I try to load the video in.

manusse
5th February 2008, 21:01
Could not get interfaces!specified cast is not valid

This may be related to a DirectShow problem. Try rebooting your PC.

Cheers
Manusse

molitar
5th February 2008, 21:22
This may be related to a DirectShow problem. Try rebooting your PC.

Cheers
Manusse

I have tried a reboot.. even tried reinstalling DirectX just now.. and now trying reinstalling my nvidia drivers so far no luck.

manusse
5th February 2008, 21:31
First try to unselect sub preview: Go to Settings and unselect Overlay Subtitles on DVD. Try playing your DVD.

Cheers
Manusse

manusse
5th February 2008, 21:34
5. Lack of real explaining about what DVD Decoders worked.. I finally installed trial version of PowerDVD 6.5 and copied all the .ax files and dropped them into their own folder.. Uninstalled PowerDVD and registered the ax files and was finally in business. But nowhere in the manual does it say actually what files are required I know that all these files were not but I end up registering them all just to make it work.
Have you read the documentation? Let me quote it:
We recommend the use of PowerDVD 6 (Version 4 and 6 have been tested successfully).

Cheers
Manusse

molitar
5th February 2008, 22:11
First try to unselect sub preview: Go to Settings and unselect Overlay Subtitles on DVD. Try playing your DVD.

Cheers
Manusse

Ok unselecting Overlay Subtitles I was able to play the DVD. But why would this suddenly change it was working perfectly before.. also what about the timing issues I am having? Let me state that this is a DVD that currently has no subtitles at all that I am trying to add subtitles too.

BTW is it a known bug that SC does not remember window position?

Ok after further testing I have discovered it maybe an issue with settings and SC Preferred Decoder.. I left it checked and did this.. unchecked preferred decoder.. opened dvd.. than rechecked preferred decoder and it worked. After doing this now it's opening even when preferred decoder is checked before opening. Perhaps settings are not saving properly or something to that effect?

manusse
5th February 2008, 22:37
This means that SubtitleCreator is unable to build a graph with your DVD decoder and with SCSubtitle filter. Maybe there is a problem with your codec registrations.

About the timing issues, is it a NTSC disc?

Manusse

molitar
5th February 2008, 23:49
This means that SubtitleCreator is unable to build a graph with your DVD decoder and with SCSubtitle filter. Maybe there is a problem with your codec registrations.

About the timing issues, is it a NTSC disc?

Manusse

Yes it is an NTSC disc

manusse
6th February 2008, 22:26
OK,

This may be related to the following bug:

http://forum.doom9.org/showthread.php?p=1007483#post1007483

In your case, try to change the frequency of the file from 29.97 to 30 fps before converting it to SUP.

Cheers
Manusse

Mitre
9th February 2008, 17:37
Hello. I installed this program to add subtitles in Spanish to a French movie that has subtitles in english.

I ripped the movie to a folder and I used SRip to get an srt of the English subtitles. And I downloaded from the net the srt of the movie in Spanish.

I used SC in Express mode to import the srt in spanish and I also brought in the English
srt to synchronize the two files. I also pointed the program to the proper ifo to find info on colour table.

Then I brought in the movie and I was able to see Spanish subtitles on the movie. They were right on the money. So I created an sup file. I noticed though that the English subtitles and the Spanish subtitles looked different. The English subtitles were brighter and smaller as compared with the Spanish ones. But this is what SC decided to do, so I left it that way.

Finally I opened DVD Authoring Wizard and I pointed the program to the movie, I created a folder for the output. I did not mark the Extract original SUP from DVD.

I went to step 3 and I left the number 2, I picked es Spanish and I pointed the program to the sup file that SC had previously created. I did mark Use prefered subtitle colors and I did not select "Position the original ..."

I hit START. Demultiplexing went OK and MuxMan started multiplexing the new DVD (that was the message I read). After a while I received an error message from VobBlanker ...

Error: Unable to stat (Drive):\(Subdirectory were I have the original movie)\Remuxed\VTS_01_0.IFO. (I don't know what "stat" means.

I'm running AMD processor Athlon 64 Directx 9c 1.5G of memory


Any suggestions on what to do next will be greatly appreciated.:confused::thanks:

manusse
10th February 2008, 10:41
Hi,

There can be 2 reasons for your problem:

1) Not enough drive space. You need at least 3 times the size of the original DVD of free HDD space. So generally between 15Gb and 25Gb depending on your DVD.

2) Maybe there is a problem with the path that you are using to create your new DVD. I advice that you don't use long paths and also don't use spaces in the pathname. For example, try to use something like C:\myDVD.

Also, don't tick "Use prefered subtitle colors " it's for DVD where there are no original subtitles.

Cheers
Manusse