Log in

View Full Version : SupTitle: an AviSynth PGS (.SUP) Subtitle Plugin


Pages : 1 2 [3]

sneaker_ger
17th June 2010, 22:13
Are we still talking about those you uploaded above (http://forum.doom9.org/showpost.php?p=1406826&postcount=86)?

asarian
17th June 2010, 22:15
Are we still talking about those you uploaded above (http://forum.doom9.org/showpost.php?p=1406826&postcount=86)?
Indeed, we are. :) The English subs (0004 - 12), which I just renamed to 2010.sup in my script, thinking maybe the spaces in the name could cause the problem.

sneaker_ger
17th June 2010, 22:32
Working fine here using the following script:
BlankClip(length=259200,width=1920,height=1080,fps=24000,fps_denominator=1001,color=000000)
SupTitle("00004 - 12 - Subtitle (PGS).sup")

Please note that the first subtitle appears as late as 0:49:56.410. ( 49 minutes, 56 seconds and 410 miliseconds!)

asarian
18th June 2010, 02:25
Working fine here using the following script:
BlankClip(length=259200,width=1920,height=1080,fps=24000,fps_denominator=1001,color=000000)
SupTitle("00004 - 12 - Subtitle (PGS).sup")

Please note that the first subtitle appears as late as 0:49:56.410. ( 49 minutes, 56 seconds and 410 miliseconds!)
Thanks, sneaker! I had assumed the subs would be there for every line (to be switched on or off by forcedOnly); so yeah, that could account for something. :P

Soon as the current job is done, I'll try again.

asarian
21st June 2010, 15:11
Working fine here using the following script:
BlankClip(length=259200,width=1920,height=1080,fps=24000,fps_denominator=1001,color=000000)
SupTitle("00004 - 12 - Subtitle (PGS).sup")

Please note that the first subtitle appears as late as 0:49:56.410. ( 49 minutes, 56 seconds and 410 miliseconds!)
Now that I've finished a series of other encodes, and got BDSup2Sub, I see indeed the sup file itself is borked: the conversation for the entire movie starts ~50mins too late! No wonder I couldn't find anything! I wonder whether's a way to shift back those times?

sneaker_ger
21st June 2010, 15:23
On opening the file in BDSup2Sub you can set a negative delay in the "Converion Options" dialogue.

Zachs
22nd June 2010, 01:50
asarian, I can't reproduce the "Evaluate: Unrecognized Exception" error using either of your sups.
Your Japanese sub shows up with a proper exception complaining that it doesn't recognize the format:

"System.Exception: Not expecting more than one bitmap per descriptor!"
followed by stacktrace.

I'll take a look into this new format but I still can't get it to fail the same way.

Zachs
22nd June 2010, 03:53
SupTitle v2.0.2 is now available. It should fix the problem with your jap sub - there's a sub frame in there that requires fade-out which SupTitle still doesn't support, but at least will render as static frame.

asarian
22nd June 2010, 07:53
asarian, I can't reproduce the "Evaluate: Unrecognized Exception" error using either of your sups.
Your Japanese sub shows up with a proper exception complaining that it doesn't recognize the format:

"System.Exception: Not expecting more than one bitmap per descriptor!"
followed by stacktrace.

I'll take a look into this new format but I still can't get it to fail the same way.
How strange indeed.

Last night I realized the only thing slightly 'older' on my install is a previous version of FFMS2 (for FFVideoSource); seems the latest version actually doesn't need ffdshow and/or haali splitter any more. Anyway, I can't see how that would affect anything, but I'll upgrade it regardless (after current job finishes, of course).

SupTitle v2.0.2 is now available. It should fix the problem with your jap sub - there's a sub frame in there that requires fade-out which SupTitle still doesn't support, but at least will render as static frame.
I really appreciate your program and your continual efforts, Zach. :) I'll try it out, later today. Thanks!

Zachs
22nd June 2010, 09:09
I tried it with this script:

LoadPlugin("SupTitle.dll")
clip = blankclip(300000, 1920, 1080, "YV12", 24000, 1001, color=$442211)
clip.SupTitle("H:\00004 - 11 - Subtitle (PGS).sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="0, 0, 0, 0")


And v2.0.1 dumped out a very useful exception stacktrace.

asarian
23rd June 2010, 13:58
@asarian: You can accomplish what you want by loading your SUP file in BDsup2sub, and select "EDIT/Move all captions". Then select "Move outside bounds" and set "Offset Y:" to bottom offset of your choice.

You'll get a new SUP file, which you can then use with SupTitle plugin.
Hmm, sadly this doesn't work. :( I tried it with the SUP for Wall-E, and the RESULT (http://little-albatross.net/walle_exp.rar) ís a no-show with SupTitle.

asarian
4th October 2010, 19:49
Any change we can see a 64-bit version of this awesome plugin? Then I could move my entire scripts with MCTemporalDenoise to 64-bit (as I often need to build in the existing Blu-Ray subs).

Zachs
2nd December 2010, 12:49
Yeah. x64 build is here - http://www.zachsaw.co.cc/?pg=suptitle_pgs_avisynth_plugin

greyshadow
29th December 2010, 01:06
Hi Zachs, I use megui gui 0.3.5.0 as I am not a script person, I encode from BR 1080p to 720p x264/AAC, then in mkvmerge add AC3 and soft .srt subtiles, is there a version of your script/plugin I could use with the gui to hardcode foreign .srt or .sup files which I extract with tsmuxer/supRip, I have win 7 (86x)

Zavs
3rd January 2011, 06:01
Hi Zachs, I use megui gui 0.3.5.0 as I am not a script person, I encode from BR 1080p to 720p x264/AAC, then in mkvmerge add AC3 and soft .srt subtiles, is there a version of your script/plugin I could use with the gui to hardcode foreign .srt or .sup files which I extract with tsmuxer/supRip, I have win 7 (86x)

manually add the required info into the script created by megui's AVS Script Creator

Here is an example of the required info (from zachsaw's website)...
LoadPlugin("path_to_where_the_suptitle_dll_is.dll")
DirectShowSource("path_to_your_movie")
SupTitle("path_to_your_subtitle.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="0,140,0,140")

forcedOnly=false/true, (true if you only want forced subs included)
swapCbCr=false/true, (not really sure on the use of this one...maybe someone can comment)
relocate=true/false, (do you need to move the subtitles? are you cropping?)
relocOffset="0,140,0,140" (where you want to move the subtitles to)

Hopefully this is what you were asking for...

greyshadow
3rd January 2011, 21:57
Thanks, will give it a try tonight and report back

Donholio
12th April 2011, 07:57
Unfortunately, the website hosting Suptitle is now offline. Does anyone have a copy of the script they can share?

sneaker_ger
12th April 2011, 10:37
http://rapidshare.com/files/457044840/suptitle_v2.0.2_x86.zip
http://rapidshare.com/files/457044862/suptitle_v2.0.2_x64.zip

/edit:
Outdated. See start post again.

Donholio
12th April 2011, 18:23
Thanks Sneaker_Ger

Selur
11th April 2012, 21:54
You'll need Microsoft .NET Framework 4 installed.
just wondering can't SubTitle be build statically to avoid the dependencies to .NET ?

sneaker_ger
11th April 2012, 22:06
Oh, there have been updates. Didn't notice that.

stax76
22nd July 2013, 18:22
It would be interesting to know what .NET 4.0 features uses since Windows 7 has only .NET 3.5.

Tappen
27th July 2013, 22:33
Windows 7 has .NET 4.0 and 4.5. Win XP SP3 supports .Net 4.0. The only limit so far is that XP doesn't support 4.5.

stax76
27th July 2013, 22:55
Windows 7 was released Oktober 2009 and includes definitively only .NET 3.5.

.NET 4.0 was released much after Windows 7 at April 2010.

nautilus7
28th July 2013, 15:21
You can install .net 4.0 and 4.5 on windows 7 separetely. Don't see why the confusion.

Lyris
24th September 2013, 09:33
Does anyone have a copy of this plugin? Sounds just like what I need, but I can't seem to find a working download location.

Edit: found it - domain name change!

http://www.zachsaw.com/?pg=suptitle_pgs_avisynth_plugin

desperado836
14th October 2014, 17:39
I made my avisynth script, play it in MPC-HC and the sub works, just it is behind the video approximately 5 seconds, any way to adjust the timing of the subtitle?

stax76
14th January 2015, 10:21
I tried to use SupTitle.dll in StaxRip getting some assembly loading exception with any source I tried, the scripts also crash your C# player and mpc but not necessarily on startup but in the middle or exit. Maybe you can try if you can get it working in StaxRip. This was one of the sources I tried:

General
UniqueID/String : 177566164073448104018223832749740118652 (0x8595FFCED77637EEA8E2852C4F63D27C)
CompleteName : D:\Video\Samples\MKV\AVC - DTS-MA - PGS.mkv
Format : Matroska
Format_Version : Version 4 / Version 2
FileSize/String : 382 MiB
Duration/String : 2mn 11s
OverallBitRate_Mode/String : Variable
OverallBitRate/String : 24.4 Mbps
Encoded_Date : UTC 2014-12-27 20:41:20
Encoded_Application : mkvmerge v7.4.0 ('Circles') 32bit built on Dec 12 2014 12:10:09
Encoded_Library/String : libebml v1.3.0 + libmatroska v1.4.1
DURATION : 00:01:37.305000000
NUMBER_OF_FRAMES : 50
NUMBER_OF_BYTES : 152295
_STATISTICS_WRITING_APP : mkvmerge v7.4.0 ('Circles') 32bit built on Dec 12 2014 12:10:09
_STATISTICS_WRITING_DATE_UTC : 2014-12-27 20:41:20
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Video
ID/String : 1
Format : AVC
Format/Info : Advanced Video Codec
Format_Profile : High@L4.1
Format_Settings_CABAC/String : Yes
Format_Settings_RefFrames/String : 4 frames
CodecID : V_MPEG4/ISO/AVC
Duration/String : 2mn 11s
BitRate_Mode/String : Variable
BitRate_Maximum/String : 37.0 Mbps
Width/String : 1 920 pixels
Height/String : 1 080 pixels
DisplayAspectRatio/String : 16:9
FrameRate_Mode/String : Constant
FrameRate/String : 23.976 fps
ColorSpace : YUV
ChromaSubsampling : 4:2:0
BitDepth/String : 8 bits
ScanType/String : Progressive
Default/String : Yes
Forced/String : No
colour_primaries : BT.709
transfer_characteristics : BT.709
matrix_coefficients : BT.709
colour_range : Limited

Audio
ID/String : 2
Format : DTS
Format/Info : Digital Theater Systems
Format_Profile : MA / Core
Format_Settings_Mode : 16
Format_Settings_Endianness : Big
CodecID : A_DTS
Duration/String : 2mn 11s
BitRate_Mode/String : Variable
BitRate/String : Unknown / 1 509 Kbps
Channel(s)/String : 6 channels
ChannelPositions : Front: L C R, Side: L R, LFE
SamplingRate/String : 48.0 KHz
BitDepth/String : 24 bits
Compression_Mode/String : Lossless / Lossy
Default/String : Yes
Forced/String : No

Text
ID/String : 3
Format : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : The same subtitle format used on BDs/HD-DVDs
Default/String : Yes
Forced/String : No

Zachs
14th January 2015, 11:36
SupTitle is discontinued unfortunately due to my server HDD crashing, and the only backup I had was v1.x - fortunately from that experience I now also use cloud-based version control systems for all my active projects.

Dion
17th August 2018, 22:45
I hope someday you come back to this plugin and add support for Avisynth+ and make it work again.

Website seems dead.

But I have the 32bit copy still for people.
https://www.dropbox.com/s/4nvdcplz8jf464c/suptitle_v2.0.8_x86.zip?dl=1

or Maybe if anyone knows an alternative plugin to this.

pommesmatte
5th March 2019, 10:46
I would also be very interested in an alternative, because SupTitle does not work with Avisynth+.

Anybody knowing a solution?

Selur
5th March 2019, 18:49
because SupTitle does not work with Avisynth+.
Just tested and it works fine here, using for example:
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\DGDecodeNV.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\SupTitle.dll")
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
# loading source: E:\bd_probs\Blu-Ray 1080p AVC DTS-HD MA\BDMV\STREAM\00005.m2ts
# input color sampling YV12
# input luminance scale tv
DGSource(dgi="E:\Temp\m2ts_4a3535dbb7070f889ca5f92f88a54966_853323747.dgi",fieldop=2)
# current resolution: 1920x1080
# filtering
# embedding subtitles
Preroll(video=10, audio=0)
# Loading subtitle: E:\Output\00005.track_4608_lang_und.4a3535dbb7070f889ca5f92f88a54966.sup
SupTitle("E:\Output\00005.track_4608_lang_und.4a3535dbb7070f889ca5f92f88a54966.sup")
PreFetch(16)
return last

Cu Selur

Selur
9th June 2019, 18:59
As a side note: seems like SupTile crashes for subtitles created by easyavs2bdnxml

Katie Boundary
9th July 2023, 05:02
THIS proved to be the magic bullet that I was looking for! Thanks!

And to think that Stainless tricked me into screwing around with OCR again... lol

EDIT: Plugin crashes when reading certain subs. I don't know if the subs are corrupted or if it's the plugin.

https://i.imgur.com/lKVrFlq.png

StainlessS
9th July 2023, 14:08
And to think that Stainless tricked me into screwing around with OCR again... lol
You initially asked about BD Image based subs, and also OCR'ed subs,

I mentioned about OCR via SubtitleEdit.

Twas you who veered off into OCR to srt via SubtitleEdit, I just followed your lead.

Katie Boundary
9th July 2023, 17:16
You initially asked about BD Image based subs, and also OCR'ed subs,

I mentioned about OCR via SubtitleEdit.

Twas you who veered off into OCR to srt via SubtitleEdit, I just followed your lead.

LOL no, that's the opposite of what happened.

Me: "How do I get subtitles from Blu-rays?"

You: "Import the .sup files into SubtitleEdit and use OCR to convert them to .srt"

Me: (follows your lead, reports errors)


Anyway, no advice on getting SupTitle to work?

StainlessS
9th July 2023, 21:20
You: "Import the .sup files into SubtitleEdit and use OCR to convert them to .srt"
Well you kinda missed out the part about "but softsubs are better than nothing" and my reply to that.
But, I guess I shoulda figured out that sup files were exactly what you wanted for the BD image subs,
but I aint ever bothered with Image based subs, so it did not click in this here noggin that those were actually what you wanted. :(
Sorry. [To err is human, to forgive divine.]

EDIT: "Anyway, no advice on getting SupTitle to work?" ,
Nope, sorry.

Katie Boundary
10th July 2023, 01:37
Well you kinda missed out the part about "but softsubs are better than nothing" and my reply to that.

No, you apparently missed the part right before that, where I said "Preferably hardsubs" ;)