libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
main.c File Reference

Usage example for libclosedcaption: lists the PIDs of an MPEG-TS file (ISDB-T/SBTVD) or shows the captions of a PID. More...

Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  Context_t
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

Usage example for libclosedcaption: lists the PIDs of an MPEG-TS file (ISDB-T/SBTVD) or shows the captions of a PID.

Author
Jorge Pereira jpere.nosp@m.iran.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Usage:

./example/example video.ts # lists the PIDs and points out the caption one
./example/example video.ts <pid> # shows the captions of <pid>
./example/example video.ts <pid> --units # also shows the DRCS, bitmap, geometric, sound
# and superimpose data units of <pid>

Definition in file main.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Without the PID, lists the PIDs of the file; with the PID, shows its captions.

Parameters
argcNumber of arguments (2 or 3).
argvProgram name, .ts file and, optionally, the PID.
Returns
EXIT_SUCCESS, or EXIT_FAILURE on error or if no caption is found.

Definition at line 224 of file main.c.