免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

如何直接压制SUP字幕

SupTitle

Blu-ray PGS .SUP Subtitle Renderer Plugin for AviSynth


SupTitle is an AviSynth plugin that renders Blu-ray PGS .SUP subtitles.
SUP files can be extracted from a BD or HD DVD movie using eac3to.


Usage in AviSynth Script:
clip.SupTitle(string-filename, bool-forcedOnly,
    bool-swapCbCr, bool-relocate, string-relocOffset)

Arguments:

filename
Full path and filename to your .SUP file.

forcedOnly - Optional, default = false
Displays forced subtitles only.

swapCbCr - Optional, default = false
Swap Cb/Cr when decoding subtitle stream.

relocate - Optional, default = true
Relocate out of position subtitles (e.g. cropping the source usually causes the subs to go out of viewable rect).

relocOffset - Optional, default = ""
This is to let SupTitle know how to properly position subs, particularly with subs that are supposed to appear in the middle of the screen. By supplying the cropped offsets from the original video, SupTitle can work out how to reposition the subs to most accurately place the repositioned subs.

Syntax: "x1, y1, x2, y2", where x1, y1 are the number of pixels cropped left and top respectively; and, x2, y2 are the number of pixels cropped right and bottom respectively. Use positive integers only. The default value of "" is syntactically similar to "0, 0, 0, 0", which means the source is not cropped.

Note: You should always specify a relocOffset unless you are certain all your subs only appear at the bottom of the video.

Example:

LoadPlugin("C:\SupTitle\SupTitle.dll")

DirectShowSource("C:\movie.avi")

SupTitle("C:\sub.sup", forcedOnly=false, \
    swapCbCr=false, relocate=true, \
    relocOffset="0,140,0,140")

The following is a screenshot of a subtitle from a movie overlayed on top of an arbitrary screen capture for demo purposes. Click image for larger view.

Features summary:

Freeware
Supported colorspace - YV12
SIMD optimizations (Minimum requirements: SSE2 capable CPU)
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
Installation

Unzip the contents of the archive to your AviSynth plugin folder (usually "C:\Program Files\AviSynth 2.5\Plugins" for 32-bit XP / Vista / Win7), or any folder of your choice. Note that you'll need to specify absolute path when calling LoadPlugin in AviSynth if you choose any folder other than its plugin folder.

To use the x64 version, you'll need to use AviSynth x64. Otherwise, use the x86 version even if you are running a 64-bit OS.

You will need to make sure you have the Microsoft .NET Framework 4 installed.

Support

Visit the SupTitle Forum for help, support, feedback and bug reports.

Download

Get SupTitle version 2.0.8 (x86 and x64) here:
suptitle_v2.0.8_x86.zip (568.6 KB)
suptitle_v2.0.8_x64.zip (581.91 KB)

返回列表