 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Tue Jan 15, 2008 12:36 pm Post subject: showingBits list |
|
|
There was a list of these I thought in the wiki, but I can't seem to find it.
Does anyone have it that they would share? _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Tue Jan 15, 2008 1:38 pm Post subject: Re: showingBits list |
|
|
| MasterCephus wrote: | There was a list of these I thought in the wiki, but I can't seem to find it.
Does anyone have it that they would share? |
There's a list on the TCF thread, posted by philhu IIRC. It doesn't include the one I most want personally, the "HD" flag.
Edit: Here is philhu's post. _________________ My pyTivo fork |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 121
|
Posted: Tue Jan 15, 2008 3:06 pm Post subject: Re: showingBits list |
|
|
| wmcbrine wrote: | | MasterCephus wrote: | There was a list of these I thought in the wiki, but I can't seem to find it.
Does anyone have it that they would share? |
There's a list on the TCF thread, posted by philhu IIRC. It doesn't include the one I most want personally, the "HD" flag.
Edit: Here is philhu's post. |
I think the HD bit takes over for one of the unused bits I posted from 2001 in that post |
|
| Back to top |
|
 |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Mon Jan 28, 2008 10:53 am Post subject: |
|
|
I dug up thispage that ruttmeister created. It has a document that I used to create the MetaData page on the wiki.
If you look at the second page, there is a list of showing bits codes...are these correct?
1 = (CC)
2 = (Stereo)
3 = (CC, Stereo)
4 = (Sub)
5 = (CC, Sub)
6 = (Stereo, Sub)
7 = (CC, Stereo, Sub)
8 = (In Prog)
9 = (CC, In Prog)
10 = (Stereo, In Prog)
11 = (CC, Stereo, In Prog)
12 = (Sub, In Prog)
13 = (CC, Sub, In Prog)
14 = (Stereo, Sub, In Prog)
15 = (CC, Stereo, Sub, In Prog)
16 = (Class)
17 = (CC, Class)
18 = (Stereo, Class)
19 = (CC, Stereo, Class)
20 = (Sub, Class)
21 = (CC, Sub, Class)
22 = (Stereo, Sub, Class)
23 = (CC, Stereo, Sub, Class)
24 = (In Prog, Class)
25 = (CC, In Prog, Class)
26 = (Stereo, In Prog, Class)
27 = (CC, Stereo, In Prog, Class)
28 = (Sub, In Prog, Class)
29 = (CC, Sub, In Prog, Class)
30 = (Stereo, Sub, In Prog, Class)
31 = (CC, Stereo, Sub, In Prog, Class)
32 = (SAP)
33 = (CC, SAP)
34 = (Stereo, SAP)
35 = (CC, Stereo, SAP)
36 = (Sub, SAP)
37 = (CC, Sub, SAP)
38 = (Stereo, Sub, SAP)
39 = (CC, Stereo, Sub, SAP)
40 = (In Prog, SAP)
41 = (CC, In Prog, SAP)
42 = (Stereo, In Prog, SAP)
43 = (CC, Stereo, In Prog, SAP)
44 = (Sub, In Prog, SAP)
45 = (CC, Sub, In Prog, SAP)
46 = (Stereo, Sub, In Prog, SAP)
47 = (CC, Stereo, Sub, In Prog, SAP)
48 = (Class, SAP)
49 = (CC, Class, SAP)
50 = (Stereo, Class, SAP)
51 = (CC, Stereo, Class, SAP)
52 = (Sub, Class, SAP)
53 = (CC, Sub, Class, SAP)
If they are, I would like to put them in an update I am working on... _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 121
|
Posted: Mon Jan 28, 2008 5:40 pm Post subject: |
|
|
that list is only showing the bottom 6 bits of the word. You add the bits to get those numbers.
And other bits ARE being used to this day. Example, Intercast.
My list is from Tivo. Just an FYI.
The list I posted is being used to this day. I just don't know what bit they are using for HD. Too bad we can't get into god mode on a tivohd/S3. We could see the bit values for every program under 'Show info' and be able to figure out the HD bit nmber. |
|
| Back to top |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 148
|
Posted: Mon Jan 28, 2008 6:19 pm Post subject: |
|
|
From your post HERE, you've already gotten most of the work done, correct ?
| Code: | 'bits field definitions
Global Const BITS_CC = 1 'closed caption
Global Const BITS_Stereo = 2 'Stereo
Global Const BITS_Subtitle = 4 'Subtitle
Global Const BITS_JoinedInProgress = 8 'Joined In Progress
Global Const BITS_CableInClassroom = 16 '
Global Const BITS_SAP = 32 'Second Audio Program
Global Const BITS_Blackout = 64 '
Global Const BITS_Intercast = 128 '
Global Const BITS_ThreeD = 256 '
Global Const BITS_Repeat = 512 'Repeat
Global Const BITS_Letterbox = 1024 'Letterbox
'Global Const BITS_SexRating = 2048 'Rating Advisories S
'Global Const BITS_ViolenceRating = 4096 'AV
'Global Const BITS_LanguageRating = 8192 'AL
'Global Const BITS_DialogRating = 16334 'AD
'Global Const BITS_FvRating = 32768 'AF
Global Const BITS_SexRating = 65536 'Rating Advisories S
Global Const BITS_ViolenceRating = 131072 'AV
Global Const BITS_LanguageRating = 262144 'AL
Global Const BITS_DialogRating = 524288 'AD
Global Const BITS_FvRating = 1048576 'AF |
Works out to :
| Code: | 0x00000001 CC = 1 'closed caption
0x00000002 Stereo = 2 'Stereo
0x00000004 Subtitle = 4 'Subtitle
0x00000008 JoinedInProgress = 8 'Joined In Progress
0x00000010 CableInClassroom = 16 '
0x00000020 SAP = 32 'Second Audio Program
0x00000040 Blackout = 64 '
0x00000080 Intercast = 128 '
0x00000100 ThreeD = 256 '
0x00000200 Repeat = 512 'Repeat
0x00000400 Letterbox = 1024 'Letterbox
0x00000800 'SexRating = 2048 'Rating Advisories S
0x00001000 'ViolenceRating = 4096 'AV
0x00002000 'LanguageRating = 8192 'AL
0x00004000 'DialogRating = 16334 'AD
0x00008000 'FvRating = 32768 'AF
0x00010000 SexRating = 65536 'Rating Advisories S
0x00020000 ViolenceRating = 131072 'AV
0x00040000 LanguageRating = 262144 'AL
0x00080000 DialogRating = 524288 'AD
0x00100000 FvRating = 1048576 'AF |
They likely didn't change any of these values, so there's only 11 bits left to check assuming it's contained in 32-bit storage. The "HD" flag has to be one of those remaining bits. Correct ? |
|
| Back to top |
|
 |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Tue Jan 29, 2008 5:43 am Post subject: |
|
|
What I would like would be to have the list of bits so I can populate a drop down box for the user....
So I need the name, and the value to go with it.... _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 148
|
Posted: Tue Jan 29, 2008 11:02 am Post subject: |
|
|
| Isn't that exactly what I listed out above ? |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 121
|
Posted: Wed Jan 30, 2008 10:31 am Post subject: |
|
|
| PaulS wrote: | From your post HERE, you've already gotten most of the work done, correct ?
| Code: | 'bits field definitions
Global Const BITS_CC = 1 'closed caption
Global Const BITS_Stereo = 2 'Stereo
Global Const BITS_Subtitle = 4 'Subtitle
Global Const BITS_JoinedInProgress = 8 'Joined In Progress
Global Const BITS_CableInClassroom = 16 '
Global Const BITS_SAP = 32 'Second Audio Program
Global Const BITS_Blackout = 64 '
Global Const BITS_Intercast = 128 '
Global Const BITS_ThreeD = 256 '
Global Const BITS_Repeat = 512 'Repeat
Global Const BITS_Letterbox = 1024 'Letterbox
'Global Const BITS_SexRating = 2048 'Rating Advisories S
'Global Const BITS_ViolenceRating = 4096 'AV
'Global Const BITS_LanguageRating = 8192 'AL
'Global Const BITS_DialogRating = 16334 'AD
'Global Const BITS_FvRating = 32768 'AF
Global Const BITS_SexRating = 65536 'Rating Advisories S
Global Const BITS_ViolenceRating = 131072 'AV
Global Const BITS_LanguageRating = 262144 'AL
Global Const BITS_DialogRating = 524288 'AD
Global Const BITS_FvRating = 1048576 'AF |
Works out to :
| Code: | 0x00000001 CC = 1 'closed caption
0x00000002 Stereo = 2 'Stereo
0x00000004 Subtitle = 4 'Subtitle
0x00000008 JoinedInProgress = 8 'Joined In Progress
0x00000010 CableInClassroom = 16 '
0x00000020 SAP = 32 'Second Audio Program
0x00000040 Blackout = 64 '
0x00000080 Intercast = 128 '
0x00000100 ThreeD = 256 '
0x00000200 Repeat = 512 'Repeat
0x00000400 Letterbox = 1024 'Letterbox
0x00000800 'SexRating = 2048 'Rating Advisories S
0x00001000 'ViolenceRating = 4096 'AV
0x00002000 'LanguageRating = 8192 'AL
0x00004000 'DialogRating = 16334 'AD
0x00008000 'FvRating = 32768 'AF
0x00010000 SexRating = 65536 'Rating Advisories S
0x00020000 ViolenceRating = 131072 'AV
0x00040000 LanguageRating = 262144 'AL
0x00080000 DialogRating = 524288 'AD
0x00100000 FvRating = 1048576 'AF |
They likely didn't change any of these values, so there's only 11 bits left to check assuming it's contained in 32-bit storage. The "HD" flag has to be one of those remaining bits. Correct ? |
Yes, this is the exact list from TIVO. Valid and still used. Believe me, it is genuine. Mastercephus, this is the list you want to use, make them checkboxes if you want for the items you want to expose. |
|
| Back to top |
|
 |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Wed Jan 30, 2008 11:06 am Post subject: |
|
|
ok so for example,
| Code: | Global Const BITS_CC = 1 'closed caption |
Would have the text as "Closed Caption" and the value would be 1?
showingBits : 1
is this right? Can't their be multiple bits? _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 148
|
Posted: Wed Jan 30, 2008 11:39 am Post subject: |
|
|
You can form a bitmask by performing a logical OR on all of the desired bit flags from the list above.
So, for an example recording that had CC, SAP, and was letterboxed, you'd have :
0x00000001 (CC)
0x00000020 (SAP)
0x00000400 (Letterbox)
=========
0x00000421
Converting hex 0x421 to decimal would result in a value of 1057. |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 121
|
Posted: Wed Jan 30, 2008 12:02 pm Post subject: |
|
|
Yes, exactly.
Each items represents a bit in a computer word. Your 'OR' them together or if using decimal, just add them to obtain the number including all bits.
So if you used checkboxes, for each one checked, just add the appropriate number for it and when done, the number will represent all the items checked.
Like:
tot=0
if checkbox1=true then tot = tot+1
if checkbox2=true then tot=tot+2
if checkbox3=true then tot=tot+4
if checkbox4=true then tot=tot+8
and so forth.
When done, tot contains the bits encoded into decimal |
|
| Back to top |
|
 |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Wed Jan 30, 2008 1:06 pm Post subject: |
|
|
Checkboxes might not be a good idea for this....
Maybe a list box with the Add/Remove for each possible bit...
what do you think? _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 148
|
Posted: Wed Jan 30, 2008 1:20 pm Post subject: |
|
|
Sounds like having 32 checkboxes would be quite overwhelming.
I like the idea of an Add/Remove. Something like this ?
 |
|
| Back to top |
|
 |
MasterCephus

Joined: 04 Jan 2008 Posts: 173 Location: Hueytown, AL
|
Posted: Thu Jan 31, 2008 5:33 am Post subject: |
|
|
that's what I think I am going to do.
Of course, there won't be a "Restore Defaults" or a "Move up/down" button there. That's what I was talking about. _________________ MetaGenerator
pyTivo Manager |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|