Ticket #39 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

perian should support srt subtitles

Reported by: anonymous Assigned to: dconrad
Priority: normal Milestone: 1.0
Component: Perian-Main Version:
Severity: normal Keywords:
Cc:

Description

it would be great if Perian would decode and display .srt subtitles. there was a .srt quicktime compoenent, but it does not work for me. having that in Perian would be great.

Change History

10/05/06 00:43:33 changed by dconrad

  • owner set to dconrad.
  • status changed from new to assigned.

This shouldn't be too hard to do in a similar way to how we currently handle plain-text subs in Matroska. I'm thinking that we should load srt files automatically with file formats we handle, looking for subtitle files with the exact same file name except for the extension, in either the same folder as the movie or a subfolder starting with "Subtitle"

10/05/06 01:43:28 changed by tick

  • milestone set to 1.0.

Assigning to 1.0 for now.

(follow-up: ↓ 4 ) 10/05/06 09:52:31 changed by anonymous

another possible filename could be

Title.avi
Title.en.srt
Title.fr.srt

not sure how to handle multiple languages, does quicktime provide a gui for that?

(in reply to: ↑ 3 ) 10/07/06 17:47:04 changed by dconrad

I say it shouldn't be too hard, but forgot about all the different possible text encodings... (Matroska specifies UTF-8)

Replying to anonymous:

not sure how to handle multiple languages, does quicktime provide a gui for that?

In QuickTime Player View->Choose Language... will choose between multiple tracks with different languages. As far as detecting the language, I'll assume that only either ISO 639-1 or ISO 639-2 codes will be used in the filename.

10/13/06 19:07:19 changed by dconrad

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [158]) Load external SubRip? (.srt) files. Closes #39

10/17/06 13:36:49 changed by astrange

Don't forget, .srt supports text styling using html tags. Not that this is actually documented at all. I've seen <i> and <b> in the wild.