Show Posts
|
|
Pages: [1]
|
|
1
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 6 May '12 - 15:56
|
When using ChannelSetSync function, the application freeze occurs. Would my code be wrong? The code: m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); vidStream = m_hStream; m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); ChannelSetSync(BASS_SYNC_END, 0, LoopSyncProc, (DWORD *)&vidStream); BASS_ChannelPlay(m_hStream,false);
void CALLBACK LoopSyncProc(HSYNC handle, DWORD channel, DWORD data, void *user) { HSTREAM* pStream = (HSTREAM*)user; xVideo_StreamFree(*pStream); m_hStream = xVideo_StreamCreateFile((PVOID)TEXT("test.avi"), 0, 0, BASS_STREAM_DECODE | xVideo_UNICODE); }
|
Reply
Quote
|
|
|
3
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 4 May '12 - 14:48
|
Hi, Ionut. When calling xVideo_ChannelResizeWindow function, may not work depending on the calling timing. 1st code, xVideo_ChannelResizeWindow function works correctly. m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); xVideo_ChannelResizeWindow(m_hStream, 0, 0, 0, 100, 100); m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); BASS_ChannelPlay(m_hStream,false); 2nd code, xVideo_ChannelResizeWindow function does not work correctly. m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); xVideo_ChannelResizeWindow(m_hStream, 0, 0, 0, 100, 100); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); BASS_ChannelPlay(m_hStream,false);
|
Reply
Quote
|
|
|
4
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 29 Apr '12 - 12:26
|
Have you tried latest version also?(note you'll need bassmix also )
Yes, I use BASS_DSHOW.DLL(102KB) version 1.2.2.0 with bassmix.dll version 2.4.6.0. And I tried using BASS_DSHOW.DLL(275KB) you have uploaded, but 0xC0000005 Access Violation error occurs when calling xVideo_StreamCreateFile function.
|
Reply
Quote
|
|
|
5
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 28 Apr '12 - 22:54
|
Good morning, Ionut. Current time is AM 6:54 in Japan  Even if setting the speed to 0%(no change), the audio timing is delayed to the video screen. Test code: m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 0.0f); BASS_ChannelPlay(m_hStream,false);
|
Reply
Quote
|
|
|
7
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 28 Apr '12 - 14:59
|
Try like this: m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); BASS_ChannelPlay(m_hStream,false); It can play the video, but can not change the speed 
|
Reply
Quote
|
|
|
9
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 28 Apr '12 - 10:47
|
Thanks, Ionut. But the code does not work well. First, when adding BASS_STREAM_DECODE flag, the video is played very slowly. m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); xVideo_ChannelPlay(m_hStream); Next, I tried the code below. But the video is not played. Something wrong? m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd,BASS_STREAM_DECODE | xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); m_hStream = BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); xVideo_ChannelPlay(m_hStream);
|
Reply
Quote
|
|
|
10
|
Developments / BASS / Re: BASS_DSHOW Video Library
|
on: 28 Apr '12 - 08:06
|
Nope,
Just use BASS_PluginLoad("BASS_DSHOW.dll",0) and fallow bass_fx samples.
Thanks, Ionut. I tried the code below, it can playing a video but can not change the speed of the video. My code is wrong? ---- m_hStream = xVideo_StreamCreateFile((PVOID)lpFilePath, 0, hWnd, xVideo_UNICODE); xVideo_ChannelSetWindow(m_hStream, 0, hVideoScreen); BASS_FX_TempoCreate(m_hStream, BASS_FX_FREESOURCE); BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f); xVideo_ChannelPlay(m_hStream);
|
Reply
Quote
|
|
|