Jump to content

Request to Save in .REC format


LisaJ

Recommended Posts

Please could we have the option to save (and play back) recordings in .REC format?

 

This is used by the old Topfield TF5800PVR.

It is basically the same as a transport stream (.TS) except for the fact that it has a Header at the start of the file containing information about the recording such as Programme Name and Description (Event_Text).

This is nice because no matter where you move the file later, the information is always there.

And VideoRedo handles these files and retains the header.

 

Although it would be nice to have all the relevant information filled in by DVBViewer (or the EPG information part), it is mostly the Programme Name and Description (Event_Text + Event_Name_Length) that I would like to have ("This is a null terminated string. The first Event_Name_Length characters are the programme name and the remainder are the short programme description.")

 

 

Some basic info about .REC files:

They have a custom header containing information at the start of the file, with the actual TS starting at 0x00000E80 and the first sync bytes are at 0x00000EB0.
Note the first 3 bytes = "TFr".

 

If have attached a truncated sample file (remove the ".txt" - had to add to upload). If you need more samples, I can provide plenty.

 

 

Topfield TF5800 Header:
0x0000 - 0x0003 Id : ARRAY 4 OF CHAR; (* Note 1 *)
0x0004 - 0x0005 Version : CARD16; (* Note 2 *)
0x0006 - 0x0007 resv : CARD16; (* Note 3 *)
0x0008 - 0x0009 Duration : CARD16; (* Note 4 *)
0x000a - 0x000b Service_Number : CARD16; (* Note 5 *)
0x000c - 0x000d Service_Type : CARD16; (* Note 6 *)
0x000e - 0x0011 Tuner_Info : SET32; (* Note 7 *)
(* Service information *)
0x0012 - 0x0013 Service_Id : CARD16;
0x0014 - 0x0015 PMT_PID : CARD16;
0x0016 - 0x0017 PCR_PID : CARD16;
0x0018 - 0x0019 VIDEO_PID : CARD16;
0x001a - 0x001b AUDIO_PID : CARD16; (* Note 8 *)
0x001c - 0x0033 Service_Name : ARRAY 24 OF CHAR;
0x0034 - 0x0038 unk3 : ARRAY 5 OF CARD8; (* Note 9 *)
(* Transmission information *)
0x0039 - 0x0039 UHFChannel : CARD8;
0x003a - 0x003a Bandwidth : CARD8; (* Note 10 *)
0x003b - 0x003b unk4 : CARD8; (* Note 11 *)
0x003c - 0x003f Frequency : CARD32 (* Note 12 *)
0x0040 - 0x0041 TransportStream_ID: CARD16;
0x0042 - 0x0043 unk5 : CARD16; (* Note 13 *)
0x0044 - 0x0045 OrgNet_ID : CARD16; (* Note 14 *)
(* EPG information *)
0x0046 - 0x0049 unk6 : CARD32; (* Note 15 *)
0x004a - 0x004a Duration_Hour : CARD8;
0x004b - 0x004b Duration_Min : CARD8;
0x004c - 0x004f Event_Id : CARD32;
0x0050 - 0x0051 Start_Time_MJD : CARD16; (* Note 16 *)
0x0052 - 0x0052 Start_Time_Hour : CARD8;
0x0053 - 0x0053 Start_Time_Min : CARD8;
0x0054 - 0x0055 End_Time_MJD : CARD16;
0x0056 - 0x0056 End_Time_Hour : CARD8;
0x0057 - 0x0057 End_Time_Min : CARD8;
0x0058 - 0x0058 unk7 : CARD8; (* Note 17 *)
0x0059 - 0x0059 Event_Name_Length : CARD8;
0x005a - 0x005a Parental_Rating : CARD8; (* Note 18 *)
0x005b - 0x015b Event_Text : ARRAY 257 OF CHAR; (* Note 19 *)
0x015c - 0x016d unk8 : ARRAY 18 OF CARD8; (* Note 20 *)
(* Extended event information *)
0x016e - 0x016f ExText_Length : CARD16;
0x0170 - 0x0173 ExEvent_Id : CARD32;
0x0174 - 0x0573 ExEvent_Text : ARRAY 1024 OF CHAR; (* Note 21 *)

0x0574 - 0x057b unk9 : ARRAY 8 OF CARD8; (* Note 22 *)
0x057c - 0x067b bookmark : ARRAY 64 OF CARD32; (* Note 23 *)
0x067c - 0x067f resume : CARD32; (* Note 24 *)
0x0680 - 0x0e7f unk10 : ARRAY 2048 OF CARD8; (* Note 25 *)
END;
0x0e80
(* Note 26 *)

Specific Notes for the RecHeader RECORD
=======================================
1) always "TFrc"
2) for TF5800 firmware version 5.12.25 is 5010H, previous versions use 5000H
3) always 0
4) actual recording duration in minutes
5) 0 based position in the PVR channel lists. There are two lists, TV and radio.
6) 0 = TV, 1 = Radio
7) Topfield simply refer to bits 4 and 5 as tuner information when recording is
started. Without elaboration of "tuner information" this is fairly meaningless.

The PVR5800 always sets these bits so they cannot refer to the tuner used to
record the service. They remain set when the system is rescanned with no
aerial to one tuner so do not indicate availability of tuners.
These bits may indicate that the PVR5800 has two tuners installed or
possibly may not be related to the tuners at all.

Bit 2 is set if the service is encrypted. My system does not have a CAM so
I do not know if bit 2 indicates the encryption state of the service or of the
recording.

Other bits are set but these vary between transport streams. Within a
transport stream all services display the same bit pattern with the exception
of the encryption status bit.

8) bitwise AND with 07FFFH to get true value. MSBit = Auto?(see Toppy forum "Audio delay on playback" [Ra])
9) always 0
10) In Megahertz
11) always 0
12) In Kilohertz
13) always 0
14) Original network id, always 0233AH in the UK
15) contains hex bytes 00 00 80 00H
16) MJD: Modified Julian Date
17) This value of this field is always 4. It may be the running status of the
service from the EPG as event running = 4.
(ref. ETSI EN 300 468 v1.6.1)
18) 0 indicates that the programme is unrated.
If 1 to 15 then add 3 to get the recommended minimum audience age.
If over 15 the meaning is defined by the broadcaster.
(ref. ETSI EN 300 468 v1.6.1)
19) This is a null terminated string. The first Event_Name_Length characters
are the programme name and the remainder are the short programme description.
20) Some bytes non zero, meaning unknown.
21) Extended event information is not broadcast in the UK but the PVR5800 will
display any text inserted here.
22) always 0
23) The bookmarks are stored in a 64 element array and the values refer to block
positions within the file. The block size is 94KB and it would appear that
valid files contain an integral number of 94KB blocks.
24) Special bookmark used by 5.12.25 firmware to resume playback from the given file block
25) always 0
26) The TS information proper starts at offset 0E80H, 3712 decimal.

 

The Big Bang Theory-Truncated_AA010.rec.txt

Link to comment

Well that was a very disappointing reply to see - totally dismissed in the blink of an eye.

 

If not that format, then could you please give us the option of a format/container (don't care which) that contains the Programme Name and Description in the file (all self-contained).

 

I am new to DVBViewer, so is there a way (using plugins, SDK or whatever) that I could add the header myself?

Edited by LisaJ
Link to comment

the key is "Save EPG as File Info" look in the link from Derrick

 

and with "File Property Copier" from the Members-Area you can transfer all infos to any file you want

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...