Files
ccextractor/docs
Colin Cogle b08c5faa74 Fix compile-time issue involving implicit declaration of mapclut_paletee() (#1648)
* Fix implicit declaration error on some systems.

This commit fixes a compile-time error regarding an implicit declaration
of mapclut_paletee() on some compilers and compiler versions.  Notably,
Arch Linux and Ubuntu 24.10 seem to be affected.

The error resolved is:

```
../src/lib_ccx/ocr.c: In function 'ocr_rect':
../src/lib_ccx/ocr.c:922:9: error: implicit declaration of function 'mapclut_paletee' [-Wimplicit-function-declaration]
  922 |         mapclut_paletee(palette, alpha, (uint32_t *)rect->data1, rect->nb_colors);
      |         ^~~~~~~~~~~~~~~
```

This was resolved by `#include`-ing "ccx_encoders_spupng.h" in the file
src/lib_ccx/ocr.c.  Thanks to GitHub user @steel-bucket for sharing the
fix in this issue's comments.

Fixes: #1646

* Update CHANGES.TXT.

Mention the fix for #1646.

Fixes: #1646
2024-11-27 11:47:41 -08:00
..
2023-05-29 18:34:15 +00:00
2014-04-12 12:41:27 +02:00
2014-04-12 12:41:27 +02:00
2024-08-10 12:55:21 +02:00
2018-01-09 10:24:06 -08:00
2016-12-02 13:33:36 +05:30
2024-08-10 12:55:21 +02:00

CCExtractor

check AUTHORS.TXT for history and developers

License

GPL 2.0.

Description

Since the original port, the whole code has been rewritten (more than once, one might add) and support for most subtitle formats around the world has been added (teletext, DVB, CEA-708, ISDB...)

Basic Usage

(please run ccextractor with no parameters for the complete manual - this is for your convenience, really).

ccextractor reads a video stream looking for closed captions (subtitles). It can do two things:

  • Save the data to a "raw", unprocessed file which you can later use as input for other tools, such as McPoodle's excellent suite.
  • Generate a subtitles file (.srt,.smi, or .txt) which you can directly use with your favourite player.

Running ccextractor without parameters shows the help screen. Usage is trivial - you just need to pass the input file and (optionally) some details about the input and output files.

Languages

Usually English captions are transmitted in line 21 field 1 data, using channel 1, so the default values are correct so you don't need to do anything and you don't need to understand what it all means.

If you want the Spanish captions, you may need to play a bit with the parameters. From what I've been, Spanish captions are usually sent in field 2, and sometimes in channel 2.

So try adding these parameter combinations to your other parameters.

-2 -cc2 -2 -cc2

If there are Spanish subtitles, one of them should work.

McPoodle's page

http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_TOOLS.HTML

Essential CC related information and free (with source) tools.

Encoding

This version, in both its Linux and Windows builds generates by default Unicode files. You can use -latin1 and -utf8 if you prefer these encodings (usually it just depends on what your specific player likes).

Future work

  • Please check www.ccextractor.org for news and future work.