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 27th February 2008, 00:26   #401  |  Link
jamos
Hey Now!
 
Join Date: Feb 2006
Posts: 812
Quote:
Originally Posted by Rectal Prolapse View Post
New hdsup2bdn:

http://www.sendspace.com/file/1oij4n

Code:
Allowed options:
  --help                produce help message
  --version             print version number
  --original            output PNG images in the original size (suitable for
                        OCR)
  --fullpng             output 1920x1080 PNG images [DEFAULT]
  --nobdnfixtimes       do not divide BDN times by 1.001 (BDN output only)
  --bdnfixtimes         divide BDN times by 1.001 (BDN output only) [DEFAULT]
  --srtfixtimes         divide SRT times by 1.001 (SRT output only)
  --nosrtfixtimes       divide SRT times by 1.001 (SRT output only) [DEFAULT]
  --framerate arg       frame rate [DEFAULT: 29.97]
  --input-file arg      input file
  --srt                 output SRT file
  --xml                 output Scenarist HDMV BDN file
  --forcedsubs          make all subtitles forced (BDN output only)
  --dropframes          flag all subtitle times as drop frames (BDN output
                        only)
  --nopng               don't generate any PNGs
  --blackbackground     always make the transparent background black (index 0)
                        [RGB 0,0,0]
  --blackemphasis       make the HD-DVD emphasis pixels (index 2 and 3) black
  --enhancecontrast     make all pixels with Y < 127 black, and pixels with Y
                        >= 128 white (easier to OCR). Also forces background to
                        black.
Example usage:

Code:
C:\My Downloads\Subtitles\Mr. Bean's Holiday>C:\Projects\Blu-ray\hdsup2bdn\release\hdsup2bdn.exe --xml --enhancecontrast FEATURE_1_MERGED.Subpicture.14.sup
XML (BDN) output selected
Force all pixels to black except the main pattern
framerate defaults to 29.97
Input files are: FEATURE_1_MERGED.Subpicture.14.sup
hdsup2bdn version 1.04
--enhancecontrast forces all colors with Y < 127 to be black, and all other colors to be white. This is a cheap hack but hopefully works for most people!
looks good how would i get 1280x720 subpictures from a 1080p source?
jamos is offline   Reply With Quote
Old 27th February 2008, 00:37   #402  |  Link
jamos
Hey Now!
 
Join Date: Feb 2006
Posts: 812
i am getting a error using your program rectal-> No SP found in header. with the same file supread can read it fine.

Last edited by jamos; 27th February 2008 at 00:40.
jamos is offline   Reply With Quote
Old 27th February 2008, 18:24   #403  |  Link
Rectal Prolapse
Registered User
 
Join Date: Mar 2005
Posts: 433
jamos, hdsup2bdn only works on hd-dvd .sup files. It won't work on blu-ray .sups (yet - no ETA for that). The intent of hdsup2bdn is to create subtitles from HD-DVDs for authoring on Blu-ray disc.

I haven't tested on 1280x720p .sup files - it probably won't work!
Rectal Prolapse is offline   Reply With Quote
Old 27th February 2008, 19:41   #404  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
New version of SUPread (v0.51b)

Changes for v0.51

- New option: OCR export black and white only
- export 8 bit PNG (Scenarist compatible)

Change for v0.50

- New option: export png at 720p

You have to download the abc.png, because it's changed from PNG24 to PNG8 too.

I'm too tired to testing it accurately so any feedback is helpful.
Pelican9 is offline   Reply With Quote
Old 27th February 2008, 22:05   #405  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Been using SUPread successfully on a few HD DVDs (thanks Pelican9) but have run into a problem. Has anyone here tried SUPread on Pan's Labyrinth (English track)? Between ST572 and 573 the time position goes from 1:09 to 00:01 as though a glitch exists in the joined evo (tried both evodemux and eac3to to join and both fail). Guess I can repair the timings but was hoping for an easier way out.

Also, SUPread doesn't OCR the odd bitmaps Pan's seems to use as well as on other discs. Is the Skew option explained somewhere so that I can try to tinker w/the setting and maybe OCR a bit better?
laserfan is offline   Reply With Quote
Old 27th February 2008, 23:30   #406  |  Link
marco_ooo
Registered User
 
Join Date: Feb 2008
Posts: 20
Quote:
Originally Posted by Pelican9 View Post
Changes for v0.51

- New option: OCR export black and white only
- export 8 bit PNG (Scenarist compatible)

Change for v0.50

- New option: export png at 720p

You have to download the abc.png, because it's changed from PNG24 to PNG8 too.

I'm too tired to testing it accurately so any feedback is helpful.

tested the latest version on the hd dvd from red dragon

the png are 1280x720

but the xml tell that they are 1920x1080 so scenarist give a error at the muxing point

a small part of the xml looks like this

<?xml version="1.0" encoding="UTF-8" ?>
- <BDN Version="0.93" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BD-03-006-0093b BDN File Format.xsd">
- <Description>
<Name Title="FEATURE_1_MERGED.Subpicture.10" Content="" />
<Language Code="eng" />
<Format VideoFormat="1080p" FrameRate="23.976" DropFrame="False" />
<Events Type="Graphic" FirstEventInTC="00:00:54:04" LastEventOutTC="02:00:07:03" NumberofEvents="1334" />
</Description>
- <Events>
- <Event InTC="00:00:54:04" OutTC="00:00:56:20" forced="False">
<Graphic Width="1920" Height="1080" X="0" Y="0">line0001.png</Graphic>
</Event>
marco_ooo is offline   Reply With Quote
Old 28th February 2008, 00:31   #407  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Bugfix

Quote:
Originally Posted by marco_ooo View Post
tested the latest version on the hd dvd from red dragon

the png are 1280x720

but the xml tell that they are 1920x1080 so scenarist give a error at the muxing point
Thank you.
Fixed. The new version is available (v0.51b2)

Last edited by Pelican9; 28th February 2008 at 00:34.
Pelican9 is offline   Reply With Quote
Old 28th February 2008, 01:01   #408  |  Link
marco_ooo
Registered User
 
Join Date: Feb 2008
Posts: 20
Quote:
Originally Posted by Pelican9 View Post
Thank you.
Fixed. The new version is available (v0.51b2)
wow thats fast
marco_ooo is offline   Reply With Quote
Old 28th February 2008, 04:28   #409  |  Link
chrkou
Registered User
 
Join Date: Jun 2007
Posts: 12
Pelican9: Great work!
You said something about, other languages png files, have you done anything with Greek?

Thanks.
chrkou is offline   Reply With Quote
Old 28th February 2008, 10:27   #410  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by chrkou View Post
Pelican9: Great work!
You said something about, other languages png files, have you done anything with Greek?

Thanks.
"I can only show you the door. You're the one that has to walk through it. ..."
Pelican9 is offline   Reply With Quote
Old 28th February 2008, 11:12   #411  |  Link
marco_ooo
Registered User
 
Join Date: Feb 2008
Posts: 20
uhmmm scenarist is doing ok now but
if i play the movie the screen goes black with the subtitle in it
as soon the sub title goes the picture comes back

the png from subtitle workshop have a white background
mayby that has to do with it
marco_ooo is offline   Reply With Quote
Old 28th February 2008, 12:03   #412  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by marco_ooo View Post
uhmmm scenarist is doing ok now but
if i play the movie the screen goes black with the subtitle in it
as soon the sub title goes the picture comes back

the png from subtitle workshop have a white background
mayby that has to do with it
It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?

Is the OCR unchecked anyway?

Last edited by Pelican9; 28th February 2008 at 12:07.
Pelican9 is offline   Reply With Quote
Old 28th February 2008, 12:14   #413  |  Link
marco_ooo
Registered User
 
Join Date: Feb 2008
Posts: 20
i have attached a working png maybey you know what to do with it
Attached Images
 
marco_ooo is offline   Reply With Quote
Old 28th February 2008, 12:42   #414  |  Link
FalconIA
Registered User
 
Join Date: Aug 2006
Posts: 2
I dump a sup from a bd by tsMemux 0.0.2.0 and try to save images by SUPread 0.51b3.
But the SUPread crashed at the 61th image.
Is anyone know the reason of that?
Thanks a lot.

SUP HERE
FalconIA is offline   Reply With Quote
Old 28th February 2008, 12:59   #415  |  Link
jamos
Hey Now!
 
Join Date: Feb 2006
Posts: 812
Quote:
Originally Posted by Pelican9 View Post
It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?

Is the OCR unchecked anyway?
I get the same thing no transparent color just a white background. Do I need the palette check box clicked? OCR is unchecked because this is coming from a sup file.

the file you posted before above pelican works correctly with transparency although its font color was transparent when it should be white, though as you said its ugly, but you could use it to see how it is different than your current output.

http://forum.doom9.org/showpost.php?...&postcount=387

Also the .png I sent you in that email works correctly.

Last edited by jamos; 28th February 2008 at 20:18.
jamos is offline   Reply With Quote
Old 28th February 2008, 13:52   #416  |  Link
DELPHIINES
Registered User
 
Join Date: Feb 2008
Posts: 2
hd sup file

I have tried to create a .png file for greek,with no luck.So i have managed to find another way to bypass the whole .png file issue.I am using subtitle creator to create a sup file from srt and then i use supread to create a hd sup.The hdsup is usually 5 times larger than sdsup.aproximately 5 mg.Is this as large as a hd sup file should be?I can test it i am still waiting for to tsremux or tsmuxer to add support for the stream of supread.Anyway thanks pelican for this great tool
DELPHIINES is offline   Reply With Quote
Old 28th February 2008, 22:32   #417  |  Link
jamos
Hey Now!
 
Join Date: Feb 2006
Posts: 812
Pelican do you need me to test anything for you? current version is still not working with scenarist.

thanks
jamos is offline   Reply With Quote
Old 29th February 2008, 03:36   #418  |  Link
Rectal Prolapse
Registered User
 
Join Date: Mar 2005
Posts: 433
Quote:
It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?
It only requires transparent background. The output from hdsup2bdn didn't help you? hdsup2bdn outputs the PNG format scenarist wants.

hdsup2bdn also preserves the index table (including the color + alpha channel) that the original HD-DVD subtitle has - so maybe Scenarist requires index 0 to be fully transparent?
Rectal Prolapse is offline   Reply With Quote
Old 29th February 2008, 09:07   #419  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by Rectal Prolapse View Post
It only requires transparent background. The output from hdsup2bdn didn't help you? hdsup2bdn outputs the PNG format scenarist wants.

hdsup2bdn also preserves the index table (including the color + alpha channel) that the original HD-DVD subtitle has - so maybe Scenarist requires index 0 to be fully transparent?
SUPread makes the same, preserves the original palette and transparency info, simply put to a png file. I'll check it again.

DELPHIINES:
Your subtitle stream has a subtitle with two windows (and some error). I've never seen this structure before that's why SUPread cannot handle it correctly.
I'm working on the solution.

jamos:
Thanks, but I've no idea what's wrong, because SUPread produce the same type of PNG which has worked before...

Last edited by Pelican9; 29th February 2008 at 09:11.
Pelican9 is offline   Reply With Quote
Old 29th February 2008, 11:44   #420  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
New beta.
PNG transparency fixed(?), please try with Scenarist.

DELPHIINES:
Does the 61st subtitle contain two text simultaneously?
Window positions:
id: 0 [1560,58] - [1625,309] it's a vertical at top right
id: 1 [623,915] - [1295,1018] it's a horizontal at the bottom
You can check during playback of the movie (at 00:17:00).

I'm looking for subtitle stream with multiple text at the same time.
I would like to know if DELPHIINES's subtitle is correct or not.

Last edited by Pelican9; 29th February 2008 at 12:35.
Pelican9 is offline   Reply With Quote
Reply

Tags
supread, suprip

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 14:53.


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