File: FRONTEND_COMMUNICATIONS.TXT

package info (click to toggle)
ccextractor 0.87+ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,064 kB
  • sloc: ansic: 172,772; makefile: 777; sh: 622; python: 319
file content (120 lines) | stat: -rw-r--r-- 3,294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Starting with version 0.51, CCExtractor has a mode
that allows frontends and other programs know what
the current progress is as well as get information
on interesting events, such as a file being open 
or video information (resolution, frame rate and
so on) being found.

The Windows GUI source code is good reference
implementation.

Usage:

Add --gui_mode_reports 

to the command line as the first parameter (this
is not essential but because the mode is enabled
after this option is parsed, if there is any
event regarding the previous parameters you
would miss them).

When this option is used, ccextractor reports
progress and other information to stderr. 

This does not disable stdout (the regular stuff)
reporting. 

Information it sent to stderr, one line at a time.
Information lines that are supposed to be parsed
by programs starts with ###. All other lines, if
any, must be discarded. stderr is not guaranteed
to have only information lines - so do check.

After ### the data starts. Tokens are also
separated by #. The first token specified the 
data type, and the rest, if any, are parameters.

The following data types are currently defined:

VERSION - Get CCExtractor version
       Program
       Version

	Example: ###VERSION#CCExtractor#0.51

PROGRESS - Get processed percentage and current
           timing
       Percentage (or -1 for streaming mode)
       Minutes
       Seconds

        Example: ###PROGRESS#45#12#34
                 (for 45%, 12:34)

INPUTFILECLOSED - CCExtractor closed whatever
           input file it had open (which had
           been reported before). 
       No parameters.

INPUTFILEOPEN - A new file was successfully 
           open for reading.
       Filename

       Note that the filename CAN contain
       #, so don't split the line after the
       first token and treat the remainder
       as the filename.

        Example: ###INPUTFILEOPEN#/tmp/This is # a file.mpg

MESSAGE - Something interesting happened. 
       Message text.

       This can be anything from a fatal
       error message to something merely
       informative. 
      
        Example: ###MESSAGE#Timing broken in this file

VIDEOINFO - New video information found
	Horizontal resolution
        Vertical resolution
        Aspect ratio
        Frame rate

        Example: ###VIDEOINFO#1980#1080#16:9#29.97

SUBTITLE - New subtitle screen
        Start time
        End time
        Line

        Time is empty if it's the same of the previous 
        line (i.e. they're supposed to appear together).

        Example: ###SUBTITLE#10:23#10:25#This is 1
                 ###SUBTITLE###This is 2

        Note that time is in MM:SS format. No milliseconds
        since this is for a preview window. 
        Text is trimmed and there is no color or font
        information, to save space.

TSPROGRAMNUMBER - A multiprogram TS was detected, but 
        no program was manually selected. CCExtractor will
        send a list of programs so the GUI can show it to
        the user for selection.


	Example: ###TSPROGRAMNUMBER#3

XDSPROGRAMNAME - Program Name as received from XDS is 
        available. 

        Example:

	###XDSPROGRAMNAME#Star Trek

        You may receive this more than once per stream.

*** TODO : Add the rest of XDS stuff ****