PDA

View Full Version : TY/TMF chunk offset change?



wsewell
08-12-2005, 12:20 AM
I'm posting this in the dev forum 'cause I'm not really sure if it's an mfs_ftp issue or a new Tivo development. If it turns out to be a "support request", I'll be glad to move it :)

Recently (this week) I've had odd results with the TY/TMF files downloaded with mfs_ftp. The first non-master chunk seems to start in the wrong place. It was my understanding that the chunks were always 0x20000 bytes long; or at least always that long as long as the header chunk said so, and it does:

00000000 f5 46 7a bd 00 00 00 02 00 02 00 00 00 00 8e 04 |.Fz.............|

But recently, the next chunk seems to be starting at 0x0001fff8. At first I thought it was just completely different, then I tried putting a TMF back on the Tivo (w/ tivoserver) and then downloading it again. Here are the results:

Original
*
00020000 66 00 2a 80 86 82 0e 01 00 00 00 00 00 00 00 00 |f.*.............|
00020010 00 00 00 00 8f 2e 5e 01 00 00 00 00 00 00 00 00 |......^.........|

Inserted Then Downloaded Again
*
0001fff0 00 00 00 00 00 00 00 00 00 66 00 2a 80 86 82 0e |.........f.*....|
00020000 01 00 00 00 00 00 00 00 00 00 00 00 00 8f 2e 5e |...............^|

I was just beginning to sort-of understand the TY structure (adding TY support to tivoserver) when this hit. Is there really something wrong here, or am I misunderstanding something?


EDIT

So after hours of debugging, I realized that this was all b/c of not setting binary mode before downloading :mad:

rc3105
01-05-2006, 07:06 AM
EDIT

So after hours of debugging, I realized that this was all b/c of not setting binary mode before downloading :mad:
ouch, that has bit me in the butt a few times... ;)