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 3rd July 2009, 10:07   #1  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
SupTitle: an AviSynth PGS (.SUP) Subtitle Plugin

Hi folks,

I've looked around for an AviSynth plugin to hard sub (I mostly hard sub the forced subtitles) my rips but was unable to find any.

So I've created an AviSynth plugin called SupTitle to do just that. It handles .SUP files extracted from eac3to (both HD and BD). Note that some users have tried to use SupTitle on DVD and HDTV subs and complained it doesn't work. So let me reiterate - SupTitle handles HD-DVD and Bluray .SUP files extracted by eac3to.

You'll need Microsoft .NET Framework 4 installed.

Cheers.

Current version: v2.0.8
Download: http://www.zachsaw.com/?pg=suptitle_pgs_avisynth_plugin

*** Make sure you read the installation guide in detail or you'll get an error message from AviSynth complaining "Could not load plugin".

Last edited by Zachs; 15th October 2013 at 05:15.
Zachs is offline   Reply With Quote
Old 3rd July 2009, 10:14   #2  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by Zachs View Post
If there's enough interest, I'll make it available for download.
yes, please...

Quote:
Originally Posted by Zachs View Post
You'll need .NET 2 framework installed.
why ?
Kurtnoise is offline   Reply With Quote
Old 3rd July 2009, 12:45   #3  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
The plugin is coded in MC++ and C#. But, all the frame-to-frame intensive ops are coded in ASM.
Zachs is offline   Reply With Quote
Old 5th July 2009, 22:17   #4  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
I'm also interested. Please put it online - I'm pretty sure Kurtnoise and I aren't the only ones who'd like to give it a try.
sneaker_ger is offline   Reply With Quote
Old 6th July 2009, 03:39   #5  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Ok, here it is.

SupTitle: an AviSynth PGS (.SUP) Subtitle Plugin

# Supported colorspaces - YV12, YUY2, RGB24, RGB32
# SIMD optimizations
# Alpha channel transparency blending
# Handles both HD-DVD and Blu-ray .SUP subtitle files extracted by eac3to
# Perfect for hardsubbing forced subtitles with forced flag detection (e.g. subs for foreign dialogues)
# Supports seek and jump

Note: It takes a while to start especially with large SUP files. SupTitle reads, verifies and caches all the SUP metadata on startup.

Last edited by Zachs; 6th July 2009 at 03:46.
Zachs is offline   Reply With Quote
Old 6th July 2009, 16:18   #6  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
thanks...
_
b66pak is offline   Reply With Quote
Old 7th July 2009, 12:32   #7  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Thank you!
sneaker_ger is offline   Reply With Quote
Old 8th July 2009, 08:41   #8  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
SupTitle version 1.0.1 available

New version v1.0.1 is available. I've implemented additional optimizations. Speed improvement is definitely noticeable. Test the latest version instead.

Cheers.
Zachs is offline   Reply With Quote
Old 8th July 2009, 18:48   #9  |  Link
GrofLuigi
Member of a Library
 
Join Date: Oct 2002
Posts: 463
Hi,

Sorry for my noobishness, but can this be useful for SD-DVD? Is there something that can rip DVD to .SUP format that this plugin accepts?

GL
GrofLuigi is offline   Reply With Quote
Old 9th July 2009, 01:41   #10  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
This plugin accepts blu-ray and hd-dvd sup files extracted by eac3to. If you can convert DVD subs to the same format, then chances are SupTitle will not reject it.
Zachs is offline   Reply With Quote
Old 9th July 2009, 15:01   #11  |  Link
GrofLuigi
Member of a Library
 
Join Date: Oct 2002
Posts: 463
Quote:
Originally Posted by Zachs View Post
This plugin accepts blu-ray and hd-dvd sup files extracted by eac3to. If you can convert DVD subs to the same format, then chances are SupTitle will not reject it.
Thank you for your reply, that's what I thought. Will try to make it work somehow in the future (I'm busy with other things right now).

GL
GrofLuigi is offline   Reply With Quote
Old 10th July 2009, 17:11   #12  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,698
I have to ask, why the hell would you do that? There are already subtitle plugins for SD DVD's. VSFilter anyone? There is no point in converting to a HD format (and losing quality in the process), when you could just sub the SD version using already available tools.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 10th July 2009, 23:10   #13  |  Link
GrofLuigi
Member of a Library
 
Join Date: Oct 2002
Posts: 463
Quote:
Originally Posted by Adub View Post
I have to ask, why the hell would you do that? There are already subtitle plugins for SD DVD's. VSFilter anyone? There is no point in converting to a HD format (and losing quality in the process), when you could just sub the SD version using already available tools.
I had a stupid idea to hardcode the original subtitles as they appear (bitmaps, .sub & .idx, not rendered with fonts). VSFilter can't do that, I think... Can it?

No conversion to HD planned.

GL
GrofLuigi is offline   Reply With Quote
Old 11th July 2009, 15:12   #14  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
If there's enough interest, I'll make it available for download.
Am I correct that you are not allowed to use it in a commercial setting (because that's what this eula is saying)? I would be nice if you could release it as open source.
Wilbert is offline   Reply With Quote
Old 13th July 2009, 01:38   #15  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Am I correct that you are not allowed to use it in a commercial setting (because that's what this eula is saying)?
Yes you're right.

Quote:
I would be nice if you could release it as open source.
No plans for open source ATM.
Zachs is offline   Reply With Quote
Old 13th July 2009, 17:46   #16  |  Link
Gokumon
Guest
 
Posts: n/a
Quote:
Originally Posted by GrofLuigi View Post
VSFilter can't do that, I think... Can it?
The VS in VSFilter is for VobSub so of course it supports Vobsub format sub/idx. It also supports the MicroDVD format of bitmapped subtitles.
  Reply With Quote
Old 19th August 2009, 00:07   #17  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
I'm having a problem with your plugin. The subtitle in this sample is displayed in blue instead of the correct red.

Sample
sneaker_ger is offline   Reply With Quote
Old 20th August 2009, 06:20   #18  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Hmm. Which app did you use to display the subtitle?
I think it depends on how the app converts YUV to RGB.
SupTitle uses the following formula:
YUV to RGB Conversion
B = 1.164(Y - 16) + 2.018(U - 128)
G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128)
R = 1.164(Y - 16) + 1.596(V - 128)

From here http://www.fourcc.org/fccyvrgb.php

Which app created the sup file?
Zachs is offline   Reply With Quote
Old 20th August 2009, 09:05   #19  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Also, there seems to be some unknowns in the PGS format such as the sequence of the Y'cbcr bytes.
That's the reason you get to swap cr/cb in BDSup2Sub.
I'd be interested to see how a standalone player displays the subtitle.
Zachs is offline   Reply With Quote
Old 20th August 2009, 14:34   #20  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
I tried creating the subtitles with PunkGraphicStream, avs2bdnxml + bdssup2sub and avs2bdnxml + bdsubedit. I don't have a standalone blu-ray player yet, but in MPC-HC and Power DVD all the subtitles are displayed in the correct red colors.

I'm using AviSynth's "blankclip" and it happens in RGB24, RGB32, YUY2 and YV12. While the subtitles appear blue in all four color spaces, in RGB24 and RGB32 the whole image gets green (overlaying anything that was beneath it). For playing I use VirtualDub and MPC-HC.
sneaker_ger is offline   Reply With Quote
Reply

Tags
avisynth, hard sub, plugin, subtitle, suptitle

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:58.


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