用mediaplayer做片断剪辑,用户要安装microsoft的activemovie,否则不能播放mpeg格式的电影, 1.创建捕获窗口(Creating a Capture Window) hWndC = capCreateCaptureWindow ( (LPSTR) "My Capture Window", // window name if pop-up WS_CHILD | WS_VISIBLE, // window style 0, 0, 160, 120, // window position and dimensions (HWND) hwndParent, (int) nID /* child ID */); 2.连接到捕获驱动(Connecting to a Capture Driver) 下面的例子是将MSVIDEO驱动连接到句柄为hWndC的捕获窗口, 然后调用capDriverDisco nnect宏来断接. fOK = SendMessage (hWndC, WM_CAP_DRIVER_CONNECT, 0, 0L); // // Or, use the macro to connect to the MSVIDEO driver: // fOK = capDriverConnect(hWndC, 0); // // Place code to set up and capture video here. // capDriverDisconnect (hWndC);
请大家帮帮忙,帮帮忙呀!
Paster:再连接点插入要连接的数据包,然后修改插入的数据和连接点后面的数据包的时间戳
Cut:类似Paster.具体还要知道编码的方式
好了!请贴原来程序吧!需要DELPHI6。0通过的哦!
[email protected]
[email protected]
1.创建捕获窗口(Creating a Capture Window) hWndC = capCreateCaptureWindow ( (LPSTR) "My Capture Window", // window name if pop-up WS_CHILD | WS_VISIBLE, // window style 0, 0, 160, 120, // window position and dimensions (HWND) hwndParent, (int) nID /* child ID */); 2.连接到捕获驱动(Connecting to a Capture Driver) 下面的例子是将MSVIDEO驱动连接到句柄为hWndC的捕获窗口, 然后调用capDriverDisco nnect宏来断接. fOK = SendMessage (hWndC, WM_CAP_DRIVER_CONNECT, 0, 0L); // // Or, use the macro to connect to the MSVIDEO driver: // fOK = capDriverConnect(hWndC, 0); // // Place code to set up and capture video here. // capDriverDisconnect (hWndC);