jmac698
12th March 2006, 02:52
I would like to announce a new tool for resyncing subtitles.
Features
This program reads the edit decision list produced by
Cuttermaran, and an SCC file.
It outputs an SCC file which is resynced to the cuts.
Cuttermaran is a lossless (also known as GOP level)
mpeg2 video editor. More information can be found at:
www.cuttermaran.de/
SCC is a Scenarist Closed Caption format file. It is
used by many subtitle tools. More information on
SCC, and capturing closed captions at:
www.geocities.com/mcpoodle43/SCC_TOOLS/DOCS/SCC_TOOLS.HTML
There is another feature, that a format other than
cuttermaran is accepted. This format must be as follows:
StartPosition "1" "2"
StartPosition "120" "234"
...
The first number and second number on each line are
the inclusive list of frames to be kept.
It is similar to a simple version of the cuttermaran file.
This is actually a joke, that a programmer will understand,
this "feature" is a bug :)
Usage
syncscc cutfile captionfile syncedcaptionfile
cutfile is an existing cuttermaran project file, eg capture.cpf
captionfile is an existing SCC file, eg capture.scc
syncedcaptionfile is a created SCC with fixed sync, eg capture1.scc
Example
We have an mpeg2 captured video with captions, 1000 frames
long. A commercial break is from 500-599 frames. We
cut it out with cuttermaran. Now we have a 900 frames video.
There is also some captions at every 100 frames lasting 99 frames.
We have to remove the caption starting at 500, and captions
starting at 600-900 must be adjusted by -100 frames in time.
The program does this automatically.
If the cuttermaran project were capture.cpf, the captions
file were capture.scc, and we want to call the new captions
file capture1.scc, we type:
syncscc capture.cpf capture.scc capture1.scc
Known bugs
There is no error checking. Please make sure the input
files exist and that the output file can be made.
The reading of the cuttermaran file format is very simple
and will only work if you edited a single file, and
may not work in some other circumstances.
The program may not work if there are not many captions.
There may be preciseness issues; I don't know if cuttermaran
lists it's cut points inclusively or not.
I also don't know if SCC files can start at 00:00:00:00.
I don't know if cuttermaran starts numbering frames at 0.
What this means to you, the user, is that timing may be
wrong by several frames by the end of the file.
It is unlikely to cause a large visual difference.
Update: version 0.2 fixed a jump in output timecodes.
Features
This program reads the edit decision list produced by
Cuttermaran, and an SCC file.
It outputs an SCC file which is resynced to the cuts.
Cuttermaran is a lossless (also known as GOP level)
mpeg2 video editor. More information can be found at:
www.cuttermaran.de/
SCC is a Scenarist Closed Caption format file. It is
used by many subtitle tools. More information on
SCC, and capturing closed captions at:
www.geocities.com/mcpoodle43/SCC_TOOLS/DOCS/SCC_TOOLS.HTML
There is another feature, that a format other than
cuttermaran is accepted. This format must be as follows:
StartPosition "1" "2"
StartPosition "120" "234"
...
The first number and second number on each line are
the inclusive list of frames to be kept.
It is similar to a simple version of the cuttermaran file.
This is actually a joke, that a programmer will understand,
this "feature" is a bug :)
Usage
syncscc cutfile captionfile syncedcaptionfile
cutfile is an existing cuttermaran project file, eg capture.cpf
captionfile is an existing SCC file, eg capture.scc
syncedcaptionfile is a created SCC with fixed sync, eg capture1.scc
Example
We have an mpeg2 captured video with captions, 1000 frames
long. A commercial break is from 500-599 frames. We
cut it out with cuttermaran. Now we have a 900 frames video.
There is also some captions at every 100 frames lasting 99 frames.
We have to remove the caption starting at 500, and captions
starting at 600-900 must be adjusted by -100 frames in time.
The program does this automatically.
If the cuttermaran project were capture.cpf, the captions
file were capture.scc, and we want to call the new captions
file capture1.scc, we type:
syncscc capture.cpf capture.scc capture1.scc
Known bugs
There is no error checking. Please make sure the input
files exist and that the output file can be made.
The reading of the cuttermaran file format is very simple
and will only work if you edited a single file, and
may not work in some other circumstances.
The program may not work if there are not many captions.
There may be preciseness issues; I don't know if cuttermaran
lists it's cut points inclusively or not.
I also don't know if SCC files can start at 00:00:00:00.
I don't know if cuttermaran starts numbering frames at 0.
What this means to you, the user, is that timing may be
wrong by several frames by the end of the file.
It is unlikely to cause a large visual difference.
Update: version 0.2 fixed a jump in output timecodes.