create a module ot Directshow filter to create a buffer

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

xenon628
Just popping in
Posts: 3
Joined: Fri Nov 03, 2006 6:24 am

create a module ot Directshow filter to create a buffer

Postby xenon628 » Fri Nov 03, 2006 6:31 am

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.

User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Fri Nov 03, 2006 9:46 am

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)
DVB Dream - because I have to dream about having time to code it
xenon628
Just popping in
Posts: 3
Joined: Fri Nov 03, 2006 6:24 am

Postby xenon628 » Fri Nov 03, 2006 1:02 pm

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.
xenon628
Just popping in
Posts: 3
Joined: Fri Nov 03, 2006 6:24 am

Postby xenon628 » Sun Nov 05, 2006 1:38 pm

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.

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest