add header for working memleak check
[enigma2.git] / doc / FILEFORMAT
1 == TS FILES ==
2
3 TS files are plain recordings, including PMT and PAT.
4
5 They don't have a private header. 
6
7 == .meta FILES ==
8
9 .meta files have currently 4 lines:
10
11 <service reference>
12 <name>
13 <description>
14 <recording time>
15
16
17 == .ap FILES ==
18
19 Stored offsets and PTS values. They are collected while recording. Only 
20 GOP starts are stored.
21
22 File format is network-ordered (i.e. big endian), each entry contains
23 two 64 bit values (PTS, offset).
24
25 PTS values are not corrected (i.e. they aren't zero-based), offsets are
26 relative to the beginning of the file (or first file, when we implement
27 splitting)
28
29 == .cut FILES ==
30
31 Also network ordered, they contain a 64bit value (PTS) and 32bit value
32 (type) for each cut. (If you want file offsets, use the .ap file to look up
33 the PTS values.)
34
35 Type is:
36
37 0 - 'in' point
38 1 - 'out' point
39 2 - mark
40
41 If the first 'out'-point is not preceeded by an 'in'-point, there is an 
42 implicit 'in' point at zero.
43
44 If the there is no final 'out' point, the end-of-file is an implicit
45 'out'-point.
46