13 #define RECORDERBUFSIZE (MEGABYTE(20) / TS_SIZE * TS_SIZE) // multiple of TS_SIZE
17 #define MAXBROKENTIMEOUT 30 // seconds
19 #define MINFREEDISKSPACE (512) // MB
20 #define DISKCHECKINTERVAL 100 // seconds
38 int Pid = Channel->
Vpid();
39 int Type = Channel->
Vtype();
40 if (!Pid && Channel->
Apid(0)) {
41 Pid = Channel->
Apid(0);
44 if (!Pid && Channel->
Dpid(0)) {
45 Pid = Channel->
Dpid(0);
53 int PatVersion, PmtVersion;
63 esyslog(
"ERROR: can't allocate index");
120 time_t t = time(NULL);
121 bool InfoWritten =
false;
122 bool FirstIframeSeen =
false;
134 if (RecordingInfo.
Read()) {
137 RecordingInfo.
Write();
144 FirstIframeSeen =
true;
170 esyslog(
"ERROR: video data stream broken");