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.
create a module ot Directshow filter to create a buffer
Moderators: Dreamer, FredB, X05
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.
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