View Single Post
Old 1st February 2007, 15:01   #10  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by emmel View Post
In a 'classical' sup-file, there is a 64-bit PTS right after the start code 'SP'. Then comes the packet_size, data_size,... etc. The duration is in the control sequence.
I'll try what happen if I put into my .sup file start 'SP' chars and PTS.

OK. I'm a little bit further now.
The structure of HD DVD's subpicture stream:
Code:
------------------------------------
00000000: SPUH
0000000A: PXD [006F24]
          ----
00006F2E: SP_DCSQ_STM: 0000
00006F30: SP_NXT_DCSQ_SA: 00007348
00006F34: STA_DSP 
00006F35: SET_COLOR2 
00007236: SET_CONTR2 
00007337: SET_DAREA2 (630, 844) - (1303, 911)
0000733E: SET_DSPXA2 top: 0000000A, bottom: 000037B8
00007347: CMD_END 
          ----
00007348: SP_DCSQ_STM: 0151
0000734A: SP_NXT_DCSQ_SA: 00007348
0000734E: STP_DSP 
0000734F: CMD_END 
------------------------------------
00007350: SPUH
0000735A: PXD [006762]
          ----
0000DABC: SP_DCSQ_STM: 0000
0000DABE: SP_NXT_DCSQ_SA: 0000DED6
0000DAC2: STA_DSP 
0000DAC3: SET_COLOR2 
0000DDC4: SET_CONTR2 
0000DEC5: SET_DAREA2 (682, 806) - (1247, 911)
0000DECC: SET_DSPXA2 top: 0000000A, bottom: 0000338A
0000DED5: CMD_END 
          ----
0000DED6: SP_DCSQ_STM: 0102
0000DED8: SP_NXT_DCSQ_SA: 0000DED6
0000DEDC: STP_DSP 
0000DEDD: CMD_END 
------------------------------------
0000DEDE: SPUH
0000DEE8: PXD [005BAC]
          ----
00013A94: SP_DCSQ_STM: 0000
00013A96: SP_NXT_DCSQ_SA: 00013EAE
00013A9A: STA_DSP 
00013A9B: SET_COLOR2 
00013D9C: SET_CONTR2 
00013E9D: SET_DAREA2 (654, 846) - (1275, 911)
00013EA4: SET_DSPXA2 top: 0000000A, bottom: 00002DDE
00013EAD: CMD_END 
          ----
00013EAE: SP_DCSQ_STM: 00F3
00013EB0: SP_NXT_DCSQ_SA: 00013EAE
00013EB4: STP_DSP 
00013EB5: CMD_END 
------------------------------------
SPUH: Subpixel Unit Header
PXD: Pixel data 8 bit RLE

Only the SP_PKT header in the EVO file contains the PTS information which I need (not the stream itself), so I have to write to somewhere this data during demuxing the original EVO...
Because only one PTS at the start is not enough, every SP_DCSQ need one.

Last edited by Pelican9; 2nd February 2007 at 01:30.
Pelican9 is offline   Reply With Quote