PDA

View Full Version : SAMI Captions when playing ty files with tyshow



rung
10-21-2004, 05:40 AM
Closed captions are one thing that I have been missing when watching streaming ty's from my server. Not any more, here's how to add that feature:


Extract closed caption information from ty.
You can use my modified tydemux to create an scc file: tydemux (http://dealdatabase.com/forum/showthread.php?t=34436)
For some reason, it seems to extract the data faster if you have a cut file, so I have been using a null.cut cutfile:
# TYEditor marker file
00:00:00.000-00:00:00.000 @0216066879 0000013794 0000000021@ @0216066879 0000013794 0000000021@ systemend
# End of list
The syntax to get an scc with this null.cut file is:
tydemux.exe -s 2 -d fname.scc -i fname.ty -c null.cut where fname is the ty filename (without the .ty).

Convert the scc file to smi using ccasdi which can be found in here (http://www.geocities.com/mcpoodle43/SCC_TOOLS/SCC_TOOLS.ZIP).
The syntax to convert is
ccasdi.exe -s fname.scc fname.smi
Now sometimes ccasdi complains about the scc file (although it works perfectly with scenarist). The easiest way to satisfy it is to go to the timecode it is complaining about and delete the whole line.

With the smi file having the same name as the ty file and residing in the same directory, directvobsub will automatically insert this caption file when you play the ty in your player. I got directvobsub by installing K-lite codec pack (http://www.free-codecs.com/K_Lite_Codec_Pack_download.htm).


Notes:

I can't seem to get vobsub to play the sami file with an re-encoded wmv file. I can get it to work in graphedit, but not in media player. Anyone know how to do this?

It seems that the size/font information in the sami file are ignored. You can configure these in the directvobsub settings dialog box.

To make things easier, I setup some batch files and added context menu items to ty and scc files so that I just have to click on the ty file to get an scc file and then click on the scc file to get the smi file.


Regards,
Rung