Subtitle 時間格式小整理

以前有一陣子需要解字幕檔的問題, 所以稍微看了一下相關的東西. 根據網站上的說法 [1], 至少有這麼多種字幕格式存在.

  • Adobe Encore DVD (*.txt)
  • Advanced SubStation Alpha (*.ass)
  • AQTitle (*.aqt)
  • Captions 32 (*.txt)
  • Captions DAT (*.dat)
  • Captions DAT Text (*.dat)
  • Captions Inc. (*.txt)
  • Cheetah (*.asc)
  • CPC-600 (*.txt)
  • DKS Subtitle Format (*.dks)
  • DVD Junior (*.txt)
  • DVD Subtitle System (*.txt)
  • DVDSubtitle (*.sub)
  • FAB Subtitler (*.txt)
  • IAuthor Script (*.txt)
  • Inscriber CG (*.txt)
  • JACOSub 2.7+ (*.jss; *.js)
  • Karaoke Lyrics LRC (*.lrc)
  • Karaoke Lyrics VKT (*.vkt)
  • KoalaPlayer (*.txt) (equal to one of the variations of TMPlayer)
  • MAC DVD Studio Pro (*.txt)
  • MacSUB (*.scr)
  • MicroDVD (*.sub)
  • MPlayer (*.mpl)
  • MPlayer2 (*.mpl)
  • MPSub (*.sub)
  • OVR Script (*.ovr)
  • Panimator (*.pan)
  • Philips SVCD Designer (*.sub)
  • Phoenix Japanimation Society (*.pjs)
  • Pinnacle Impression (*.txt)
  • PowerDivX (*.psb)
  • PowerPixel (*.txt)
  • QuickTime Text (*.txt)
  • RealTime (*.rt)
  • SAMI Captioning (*.smi)
  • Sasami Script (*.s2k)
  • SBT (*.sbt)
  • Sofni (*.sub)
  • Softitler RTF (*.rtf)
  • SonicDVD Creator (*.sub)
  • Sonic Scenarist (*.sst)
  • Spruce DVDMaestro (*.son)
  • Spruce Subtitle File (*.stl)
  • Stream SubText Player (*.sst)
  • Stream SubText Script (*.ssts)
  • SubCreator 1.x (*.txt)
  • SubRip (*.srt)
  • SubSonic (*.sub)
  • SubStation Alpha (*.ssa)
  • SubViewer 1.0 (*.sub)
  • SubViewer 2.0 (*.sub)
  • TMPlayer (*.txt) (five different variations)
  • Turbo Titler (*.txt)
  • Ulead DVD Workshop 2.0 (*.txt)
  • ViPlay Subtitle File (*.vsf)
  • ZeroG (*.zeg)

想要每個都搞懂, 難度有點高. 當時整理了一小部分就放棄了. 不過今天把它挖出分享給大家. 或許我會有動力把它補到完.

格式名稱 副檔名 格式 說明
txt .txt 02:04:32:The End 起始時間(時:分:秒:毫秒) + 內容
sub

.sub

.txt

{4387}{4433}Bye! {起始時間}{結束時間} + 內容
Subripper srt

45

00:02:52,184 –> 00:02:53,617

慢慢来

順序

起始時間 —> 結束時間 

內容

時間的格式 = 00:00:00,000 (時 :分 : 秒: 毫秒)

SubStation Alpha ssa Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Start or End 的格式 = 0:00:00:00(時:分:秒:百分秒), 注意:小時只有一位數
Advanced SubStation Alpha ass
PSB(Power Divx) psb {0:00:47}{0:00:51}Hello, world!

{起始時間的時:分:秒}{結束時間時:分:秒} + 內容

DVD Subtitle
圖形, 以 run-length 壓縮存在碼流中.
Subtitle ID為 0x20 + 0~31, DVD 可以有 32 個 subtitle [4].

[ref] 

1. http://www.divx-digest.com/software/subtitle_workshop.html

2. http://www.6psp.cn/20100714/ssa-ass字幕格式全解析.html

3. http://www.allsubs.org/

4. http://sam.zoy.org/writings/dvd/subtitles/

One thought on “Subtitle 時間格式小整理”

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s

%d 位部落客按了讚: