View Full Version : McPOODLE: Latest SCCTOOLS Issues.


slk001
25th May 2005, 18:40
McPoodle,
I am using your latest SCCTOOLS package with broadcast closed captions captures. It is obvious that both CHANNELS 1 and 2 are in this capture. I tried to extract only CC1, but since this is not a DVD format CC file, it returns both. Sometimes even CHANNEL 3 is present, too. Other than going into the resulting .TXT file and manually deleting the non CC1 channels, I can find no switch to apply in your converters.

Also, upon capture, the .RAW file begins with only a "FF FF" sequence, instead of a "FF FF FF FF" sequence which your converter requires.

Is there a way to only convert CHANNEL 1 captions?

Is the "FF FF" sequence an error in the GRAPHEDIT filter?


Here are the data from the files in question:

ÿÿ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€”&”&”_”_”p”p>> WÈEÎ ËEÖIÎ CÁÍE IÎTO TÈE€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€”&”&”_”_”p”pÐICTÕRE WITÈ ÁLL OF ÕÓ, ÙOÕ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€ILL €€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”ô”ôÕÍ®®®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€” ” ”ДÐI WÁÓ ÓÎOOÐIÎÇ TÈROÕÇÈ LÕCÁÓ§€”p”pTÈIÎÇÓ ËIÎÄ OF OÎ ÐÕRÐOÓE€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€” ” ”ДÐÁÎÄ FOÕÎÄ Á ÂÕÎCÈ OF ÙOÕR ÓTÕFF€”p”p‘¹‘¹‘¹‘¹‘¹‘¹TÈÁT ÈE ÓÁÖEÄ,”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€” ” ”R”R‘¹‘¹ÁÎÄ I TÈIÎË€”p”pÈE§Ó ÓTILL IÎTO ÙOÕ®”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”z”zÈÕÈ®”,”,”/”/€€€€€€€€€€€€€€««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€” ” ”p”pLIËE I ÓÁIÄ, ÂÁÄ TIÍIÎÇ,”,”,”/”/€€€€€€€€««¼hôôpº//>[nº€€” ” ”ДÐÓEEIÎÇ TÈÁT JÁËE JÕÓT LEFT,€”p”pOR ÍÁÙÂE ÇOOÄ TIÍIÎÇ¿€”,”,”/”/« ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€” ” ”ø”ø‘¹‘¹‘¹‘¹ÂROOËE®®®€”,”,”/”/€€€€««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€” ” ”ø”ø‘¹‘¹I§Í ÓORRÙ®”,”,”/”/€€€€€€€€€€««¼hôôpº//>[nº ][åº2°°°°1°1]€€” ” ”T”TI ËÎOW ÙOÕ ÈÁÖE FEELIÎÇÓ”ø”ø‘¹‘¹FOR LÕCÁÓ®”,”,”/”/«[8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€” ” ”p”p‘¹‘¹‘¹‘¹ÐÈÁÎTOÍ FEELIÎÇÓ®€”,”,”/”/««¼hôôpº//€€” ” ”ДÐLIËE WÈEÎ ÙOÕ LOÓE Á LEÇ”p”pÁÎÄ TRÙ TO ÓCRÁTCÈ IT®”,”,”/”/«>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”p”p‘¹‘¹‘¹‘¹‘¹‘¹LÕCÁÓ WÁÓ ÍÙ®®®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€” ” ”ДБ¹‘¹‘¹‘¹ÇÁÎÇREÎE_IÎFECTEÄ€”p”p‘¹‘¹‘¹‘¹‘¹‘¹ÁÍÐÕTÁTEÄ LIÍ®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”ø”ø‘¹‘¹‘¹‘¹‘¹‘¹REÁLLÙ¿€”,”,”/”/««¼hôôpº€€” ” ”ДБ¹‘¹‘¹‘¹I WÁÓ ÓO IÎÓECÕRE€”p”pWÈEÎ I WÁÓ WITÈ ÈIÍ, ÐEÙTOÎ,”,”,”/”/«//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€” ” ”ДÐÁÎÄ TÈIÓ WÈOLE TÈIÎÇ”p”p‘¹‘¹‘¹‘¹JÕÓT REÍIÎÄEÄ ÍE”,”,”/”/«€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]€€” ” ”ДÐTÈÁT I ÄOΧT WÁÎT TO ÂE€”p”p‘¹‘¹‘¹‘¹TÈÁT ÇIRL ÁÇÁIή”,”,”/”/«_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”ò”ò‘¹‘¹I WOΧT ÂE®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ”,”,€€€€€€€€€€€€€€€€€€€€€€««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€” ” ”Ö”Ö‘¹‘¹‘¹‘¹WELL, I ÇÕEÓÓ __”v”v‘¹‘¹I ÄOΧT ÕÎÄERÓTÁÎÄ®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€” ” ”R”R‘¹‘¹ÈE WÁÓ ÓÕÐÐOÓEÄ TO ÂE TÈERE€”ø”ø‘¹‘¹‘¹‘¹‘¹‘¹ÂÙ ÎOW®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8€€” ” ”ДБ¹‘¹WELL, CÁÎ ÙOÕ LEÁÖE ÈIÍ ÁÎOTÈER€”p”p‘¹‘¹‘¹‘¹ÍEÓÓÁÇE IÎ CÁÓE ÈE CÈECËÓ Iο€”,”,”/”/«Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”v”v‘¹‘¹‘¹‘¹‘¹‘¹ÁÎÄÙ ÈÁRÇROÖE®”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”ø”ø‘¹‘¹‘¹‘¹‘¹‘¹TÈÁÎËÓ®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ”,”,€€€€€€€€€€€€€€€€€€€€€€««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”ô”ô‘¹‘¹[ ÄOOR OÐEÎÓ ]”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«€€” ” ”ò”ò‘¹‘¹‘¹‘¹‘¹‘¹ËÁREο”,”,”/”/«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€” ” ”X”XOÈ, ÍÙ ÇOÓÈ®”z”zÄE®”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€«¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]” ”,”,«_ €_€€€€€€€€€€€€€€€€€€€€€€” ” ”X”XWELCOÍE ÂÁCË®€”z”z‘¹‘¹OÈ¡€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€” ” ”R”RÙOÕ LOOË LIËE€”p”pÙOÕ JÕÓT ÓÁW Á ÇÈOÓT®€”,”,”/”/««¼hôôpº//>[nº ][åº2°°°°1°1][8Á41]_ €_€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€


(BELOW IS A SHORTENED CONVERTED VERSION OF ABOVE, USING RAW2SCC and CCASDI.)


SCC_disassembly V1.2
CHANNEL 1

00:00:09:22 {RCL}{RCL}{1508}{1508}UM..._{EDM}{EDM}{EOC}{EOC}
CHANNEL 2
00:00:10:03 {RTD}{RTD}<http://>[n: ][e:20000101][8A41]{CR}
00:00:10:22 _{CR}
CHANNEL 1
00:00:11:02 {RCL}{RCL}{1400}{1400}I WAS SNOOPING THROUGH LUCAS'_{1500}{1500}THINGS KIND OF ON PURPOSE_{EDM}{EDM}{EOC}{EOC}
CHANNEL 2
00:00:12:10 {RTD}{RTD}<http://>[n: ][e:20000101][8A41]{CR}
00:00:12:29 _{CR}
CHANNEL 1
00:00:13:09 {RCL}{RCL}{1400}{1400}AND FOUND A BUNCH OF YOUR STUFF_{1500}{1500}{ }{ }{ }{ }{ }{ }THAT HE SAVED,{EDM}{EDM}{EOC}{EOC}
CHANNEL 2
00:00:14:18 {RTD}{RTD}<http://>[n: ][e:20000101][8A41]{CR}
00:00:15:07 _{CR}

McPoodle
27th May 2005, 05:50
First of all, I have seen no consistency in how the header is generated by different capture cards. I need some kind of header to be able to tell if the file is a capture card and not a text file or some other format, so I went with the header created by my ATI All in Wonder card. There are various tools to put the right header on the file; I've got a simple tool at http://www.geocities.com/mcpoodle43/SCC_TOOLS/header.exe. To use it, type the header you want in hexidecimal after "header -h" and before the names of the input and output file (the output file name is optional and is assumed to be infile_2.bin, where infile.bin was the name of the input file). For example, "header -hffff capture.bin" would take your capture.bin file, stick two "FF" bytes in front, and output capture_2.bin.

For the field question, you're right that none of my tools addresses that problem (unless you use CCASDI -s -cCC1 to convert to SubRip format and SUBRIP2SCC to convert back to SCC, but that is an unacceptable solution). I'll get to work on a solution (probably using RAW2SCC) and will post an update when that is ready.

slk001
27th May 2005, 14:28
I just use NOTEPAD to add the additional "FF FF" to my files (copy and paste the first two characters). It's just that there are some people who wouldn't know what to do if they had captured an hour's worth of CC.RAW, then find out that they couldn't convert them.

How about a comment in RAW2SCC that says "MAKE SURE THAT YOUR .RAW FILE BEGINS WITH 'FF FF FF FF'" when it outputs the error "File type of not recognized, stopped at D:\...\raw2scc.exe line 184."

McPoodle
28th May 2005, 20:36
I've got a new tool for you to use. It's called RAWPROC, and it's located at http://www.geocities.com/mcpoodle43/SCC_TOOLS/rawproc.exe. You can use this tool to process raw closed caption files in two ways: to fix the header and to remove stuff.

First, run RAWPROC with the name of the raw file (let's say it's caption.bin):rawproc caption.bin
If the file is in DVD raw closed caption format, you don't need this program, and it will tell you so. Next, an output file will be created. If you didn't provide the output file name as an argument after the input file name, the name will be derived from the input file name. In this case, the message "Writing to file caption_2.bin." would appear.

Then, it will look at the first four bytes and figure out how many FF bytes need to be added to create the correct header--the message "Fixed header." will tell you that this needed to be done.

The file will be copied from input to output, and them a series of messages will tell you what kind of data it found. For slk001's file, the messages would beFound Pop-On captions on Channel 1.
Found Roll-Over captions on Channel 1.
Found ITV service on Channel 2.
If you're making a DVD, the only kind of data you want is pop-on captions on channel 1. To exclude data, re-run RAWPROC, inserting one or more "-c" arguments between "RAWPROC" and the input file name. Running RAWPROC without arguments will give you an idea of what kind of "-c" arguments you can use. For example, rawproc -cPO1 caption1.bin
will keep pop-on captions on channel 1 and exclude everything else. "-cCC" will keep all three kinds of captions (pop-on, paint-on and roll-over), "-c1" will keep everything on channel 1, "-cITV -cXDS" will keep ITV and XDS only. No matter what you exclude, the timing will be retained.

This time when you run the program, the messages at the end will tell you what it excluded: Found Pop-On captions on Channel 1.
Found and excluded Roll-Over captions on Channel 1.
Found and excluded ITV service on Channel 2.
I also modified RAW2SCC (http://www.geocities.com/mcpoodle43/SCC_TOOLS/raw2scc.exe), but all I did was add in a message telling you to use RAWPROC if the header is not correct.

I'll update my site with all of these instructions in a week or two, in case any users have suggestions or bugs to report.

slk001
31st May 2005, 15:19
Thanks. I'll check the new program out.