VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. How do I convert a 3d SBS subtitle in a .mkv to a simple .srt file?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Image subtitle? Then try open the mkv with Subtitle Edit and see if it can OCR it to text.

    You might have to extract the subtitle with gmkvextractgui first.
    Quote Quote  
  3. That works but gives me all sentences twice which takes a lot of manual editing to remove
    Quote Quote  
  4. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Sorry a little late seeing this? Is this a one time thing or do you need on regular basis? I wrote a quick 3D to 2D converter for text but could probably convert quickly to SRT if there is an on going need.

    Click image for larger version

Name:	ScreenHunter_190 May. 08 23.15.jpg
Views:	2910
Size:	33.8 KB
ID:	36929
    Quote Quote  
  5. Originally Posted by Budman1 View Post
    Sorry a little late seeing this? Is this a one time thing or do you need on regular basis? I wrote a quick 3D to 2D converter for text but could probably convert quickly to SRT if there is an on going need.

    Image
    [Attachment 36929 - Click to enlarge]
    Hi and thanks!

    I don't do this everyday but probably once a month or so. If possible, i would be very interested trying out your converter!
    Quote Quote  
  6. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    phred1, Okay its quick and dirty but it works on TXT or SRT now. The checkbox will change to whatever you drag and drop in the input window. Also, it will work for up to 3 lines of subtitle text as shown in item 6 below that shows 2 lines with the same time frame.

    Bear in mind if the line (3D) has extra spaces on one side or the other, it may give you wrong text since it splits in half for each side. Theright side is Left trimmed so there will be no spaces on the left of the text. This should help for slight differences.

    It will show you if they mismatch. Just check whichever side auto that looks right or manually click the right one.

    I can make changes if you see things that could be corrected or don't work right.

    Right now the file is a ZIP file containing only an EXE. Feel free (I encourage it) to scan with antivirus since zip and EXE can be bad but I assure you there is nothing in there except Visual studio compiled exe.

    The link is https://files.secureserver.net/0sw3QrpPLI2UVc and should require no password.

    Click image for larger version

Name:	ScreenHunter_190 May. 10 00.10.jpg
Views:	2336
Size:	45.2 KB
ID:	36946Click image for larger version

Name:	ScreenHunter_190 May. 10 00.11.jpg
Views:	2400
Size:	35.2 KB
ID:	36947Click image for larger version

Name:	ScreenHunter_191 May. 10 00.11.jpg
Views:	2298
Size:	40.0 KB
ID:	36948
    Quote Quote  
  7. Open the PGS (.sup) in Subtitle Edit.

    From the OCR window right click -> Export -> BND xml/png. Exit.

    Open a .png in Irfan View. File -> Batch Conversion/Rename -> Advanced -> Add All -> Resize -> width 1600
    Open a resized .png in Irfan View. File -> Batch Conversion/Rename -> Advanced -> Add All -> Crop -> width 800

    and place the .xml exported from SE with the resized/cropped .png and open the .xml in SE.
    Quote Quote  
  8. Originally Posted by Budman1 View Post
    phred1, Okay its quick and dirty but it works on TXT or SRT now. The checkbox will change to whatever you drag and drop in the input window. Also, it will work for up to 3 lines of subtitle text as shown in item 6 below that shows 2 lines with the same time frame.

    Bear in mind if the line (3D) has extra spaces on one side or the other, it may give you wrong text since it splits in half for each side. Theright side is Left trimmed so there will be no spaces on the left of the text. This should help for slight differences.

    It will show you if they mismatch. Just check whichever side auto that looks right or manually click the right one.

    I can make changes if you see things that could be corrected or don't work right.

    Right now the file is a ZIP file containing only an EXE. Feel free (I encourage it) to scan with antivirus since zip and EXE can be bad but I assure you there is nothing in there except Visual studio compiled exe.

    The link is https://files.secureserver.net/0sw3QrpPLI2UVc and should require no password.

    Image
    [Attachment 36946 - Click to enlarge]
    Image
    [Attachment 36947 - Click to enlarge]
    Image
    [Attachment 36948 - Click to enlarge]
    Thanks! I think your app works as it should. I've tried it on two subtitles and the first one was perfect. The second one didn't go as well since it had some linebreaks in the wrong places (from Subtitle Edits OCR). I cannot blame your app for not handling the linebreaks!
    Quote Quote  
  9. Originally Posted by videobruger View Post
    Open the PGS (.sup) in Subtitle Edit.

    From the OCR window right click -> Export -> BND xml/png. Exit.

    Open a .png in Irfan View. File -> Batch Conversion/Rename -> Advanced -> Add All -> Resize -> width 1600
    Open a resized .png in Irfan View. File -> Batch Conversion/Rename -> Advanced -> Add All -> Crop -> width 800

    and place the .xml exported from SE with the resized/cropped .png and open the .xml in SE.

    Worked very well! Not the fastest way though..
    Quote Quote  
  10. You could write a batch job using BDSup2Sub CLI
    for conversion of .sup to BND xml/png and Irfan View CLI to make the resize/crop.
    Quote Quote  
  11. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    phred1 ,
    If you can supply a sample of the failing subtitles, I can alter the code to work with this kind of problem.

    BTW.. if the parser stops on a mismatch you caN edit the text directly in the split boxes, like delete extra characters and then hit the green arrow accept for that side. The program copies whatever is in the split box for that matchingarrow accept button.

    Thanks
    Budman1
    Last edited by Budman1; 11th May 2016 at 17:05.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!