Page 1 of 1

create a module ot Directshow filter to create a buffer

Posted: Fri Nov 03, 2006 6:31 am
by xenon628
Hi, I need to create a buffer for introducing a timeshift for all TS.
NOTE: not a single ES but all the TS.

Can I do it with modules api or directshow filter?

Thank You very much.

Regards.

Posted: Fri Nov 03, 2006 9:46 am
by rel
You can buffer whole TS by using ModuleAPI. (but device should support sending whole TS e.g.. b2c2, twinhan)

About timeshift, DD v1.3 supports it. (in beta stage)

Posted: Fri Nov 03, 2006 1:02 pm
by xenon628
Thank you very much vor replay :D

Does DVBDream timeshifts all TS sources or postprocessed data as Progdvb?

If it supports timeshift of TS can I download it? where? :D

If it doesn't it where I can find a Doc of modules SDK?(The doc in the SDK is very poor ;))

Regards.

Posted: Sun Nov 05, 2006 1:38 pm
by xenon628
Hi, I did capture TS packets

ZeroMemory(&sft,sizeof(sft));
sft.dwSize=sizeof(sft);
sft.wFilterType=FT_TSFULL;
sft.wPID=0x2000;
sft.dwHookProc=(DWORD)cb;
strcpy(sft.Description,"Timeshift");
SendMessage(hwndDD,WM_MODULE_MSG,DDMODAPI_START_FILTER,LPARAM(&sft));

The callback funcion:

bool __stdcall cb (unsigned char *buf,long lung,DWORD hFilter)
{

ZeroMemory(buf,lung);


return true;
}

Why dvbdream continue to work?
I think that *buf is a copy of original stream.
How I can modify the original stream :( ??????
It is very important to create a timeshift buffer.

Thank you very much.