C.W.K.
Stream
Lesson 01 of 07 · published

자막 Format — SRT, ASS, WebVTT

~10 min · srt, ass, webvtt, subtitles

Level 0Viewer
0 XP0/73 lessons0/15 achievements
0/100 XP to next level100 XP to go0% complete

알아둘 셋

  • SRT (SubRip) — universal format. Plain text, 단순. Styling 없음. 거의 모든 player 지원.
  • ASS (Advanced SubStation Alpha) — rich styling: font, color, position, animation. 애니 fansub 가 쓰는 format.
  • WebVTT (.vtt) — HTML5 standard. YouTube/Vimeo HLS stream 과 <track> element 가 요구. ASS 의 subset + styling cue.

어느 거 쓸까

Offline 파일 quick caption: SRT. 웹 video / streaming: WebVTT. Styled karaoke 또는 정확 positioning: ASS. Good news: FFmpeg 이 셋 사이 변환 가능.

Code

자막 format 변환·bash
# SRT → WebVTT
ffmpeg -i captions.srt captions.vtt

# WebVTT → SRT
ffmpeg -i captions.vtt captions.srt

# ASS → SRT (모든 styling 손실 — 손실 accept)
ffmpeg -i fancy.ass plain.srt

# 파일 가 어느 자막 codec 쓰나 확인
ffprobe -v error -select_streams s -show_entries stream=codec_name input.mkv
SRT format 예시·text
1
00:00:00,000 --> 00:00:03,500
Hello world

2
00:00:04,000 --> 00:00:07,000
This is line two
It can have multiple lines per cue
WebVTT format 예시·text
WEBVTT

00:00:00.000 --> 00:00:03.500
Hello world

00:00:04.000 --> 00:00:07.000 line:90% align:center
<v Pippa>This is line two
With VTT styling cues</v>

External links

Exercise

SRT 파일 잡아 (public-domain caption 다운 또는 cue 5개 직접 작성). WebVTT 로 변환. 둘 다 text editor 에서 열고 punctuation 와 구조 차이 메모. 보너스: file + iconv 로 UTF-8 검증.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.