PDA

View Full Version : Text subtitles in ASF files


Midzuki
22nd June 2009, 21:45
According to Wikipedia, the ASF container supports subtitle streams ---
however I am not aware of any "well-known" application capable of placing text files (.srt, .ssa, .smi, whatever) inside a WMV file.
BTW, does the default ASF splitter of Windows support embedded subtitles in WMV/ASF? :confused:

Midzuki
24th June 2009, 02:42
OK, after running in circles around the Web for the umpteenth time,
I finally found this:

(author == zambelli)

// 17th December 2003, 01:23 //


There are several ways to add subtitles to ASF files. If you're using WMP to play back the content, the simplest way is to convert your subtitle source to SAMI format, a standard Microsoft format for captions. Name the .smi file the same as your video file (i.e. if MyVideo.wmv, then MyVideo.smi) and WMP will automatically identify the SAMI source and display the subtitles (make sure Play -> Captions & Subtitles in WMP is enabled first). The other method is to embed subtitles into the ASF (WMV) file as CAPTION type script commands. Then it's up to the player to recognize script command events and display the subtitles.

Translation: :)

1) create a .txt file which looks like this:

start_script_table
;0th
00:00:00.0 CAPTION  
;1st
hh:mm:ss.d CAPTION html-text
hh:mm:ss.d CAPTION  
;2nd
hh:mm:ss.d CAPTION html-text
hh:mm:ss.d CAPTION  
;n-th
hh:mm:ss.d CAPTION html-text
hh:mm:ss.d CAPTION  
;last
hh:mm:ss.d CAPTION html-text
hh:mm:ss.d CAPTION  
end_script_table

2) Mux it into an ASF file with asfchop.exe or "Asf Indexer".

Pros: it works. :rolleyes:

Cons: it seems only Windows Media Player
is able to display the embedded captions. :(

\\\

Ghitulescu
24th June 2009, 09:49
I generally do not recommend the use of proprietary (patent protected) formats, unless of course you own the rights.

b66pak
25th June 2009, 17:10
@ Midzuki can you post same links to asfchop.exe and "Asf Indexer"?
_

Midzuki
25th June 2009, 18:05
They are part of the old "Windows Media Tools" package ( wmtools.exe ).

"index of" + wmtools.exe + Google = !!!!! :)

b66pak
26th June 2009, 19:48
thanks...
_