Free the mouse Replay GuideSnapshotHeader
Home | Changes | Index | Search | Go

About GuideSnapshotHeader

The first section of a GuideSnapshot.

4.1,4.3,4.5

"Version 1"

Offset Size Name Notes
0 2 version Minor version number of ReplayTV operating system (eg. 3 for 4.3, 5 for 4.5, 0 for 5.0)
2 2 snapshotversion Revision number of the guide snapshot. Always 1 for this version
4 4 struct_size Right now, 32. The meaning is a guess; treated as a magic number by the RTV code
8 4 num_channels_1 The number of ReplayChannels in the GuideSnapshot file
12 4 num_channels_2 In a valid exported GuideSnapshot file, will always match num_channels_1. This copy is incremented while the ReplayShow records are being exported, to keep track of how far in the process the export is.
16 4 group_data_offset Offset in bytes from the beginning of the file for the start of the GroupData record. Should always be 32 for this version of the file format.
20 4 channel_offset Offset in bytes from the beginning of the file for the beginning of the first ReplayChannel record. Should always be 808 for this version of the file format.
24 4 show_offset Offset in bytes from the beginning of the file for the beginning of the first ReplayShow record. Should always be 808 + 624 (712 for 4.5) * num_channels_1 for this version of the file format.
28 4 GuideFlags This isn't initialized before being written; undefined bits should be ignored (for this version of the file format, at least)

5.0

"Version 2"

Offset Size Name Notes
0 2 version Minor version number of ReplayTV operating system (eg. 3 for 4.3, 5 for 4.5, 0 for 5.0)
2 2 snapshotversion Revision number of the guide snapshot. Always 2 for this version
4 4 struct_size 64 for this version of the structure.
8 4 unknown1 Must be 0x02
12 4 unknown2 Must be 0x05
16 4 num_channels_1 The number of ReplayChannels in the GuideSnapshot file
20 4 num_channels_2 In a valid exported GuideSnapshot file, will always match num_channels_1. This copy is incremented while the ReplayShow records are being exported, to keep track of how far in the process the export is.
24 4 unknown3 Seems to be zero
28 4 group_data_offset Offset in bytes from the beginning of the file for the start of the GroupData record. Should always be 64 for this version of the file format.
32 4 channel_offset Offset in bytes from the beginning of the file for the beginning of the first ReplayChannel record. Should always be 840 for this version of the file format.
36 4 show_offset Offset in bytes from the beginning of the file for the beginning of the first ReplayShow record. Should always be 840 + 712 * num_channels_1 for this version of the file format.
40 4 snapshotsize Total size in bytes of the snapshot.
44 4 GuideFlags This isn't initialized before being written; undefined bits should be ignored (for this version of the file format, at least)
48 8 freebytes Total size in bytes free on the ReplayTV
56 4 quality The default recording QualitySetting
60 4 unknown7 Seems to be zero

-- LeeThompson - 11 Mar 2004 (Updated by HenryDonzis 29 Jun 2013)



Few notes on the 5.0 GuideSnapshot structure:

unknown1 & unknown2 have to be 2 & 5 respectively or the ReplayTV will not parse the guide. unknown4 & 5 are really a long 8 byte indicator of the number of free bytes on the ReplayTV

-- GerryDuprey - 06 Mar 2004


Your post will appear before this form in chronological order (newest at bottom)

Topic GuideSnapshotHeader . { Edit | Attach | Ref-By | Printable | Diffs | r1.10 | > | r1.9 | > | r1.8 | More }
Revision r1.10 - 01 Jun 2003 - 01:00 GMT - LeeThompson
Parents: GuideSnapshot
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.