19 Jun '13 - 05:44 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  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);
}
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: BASS_DSHOW Video Library on: 4 May '12 - 15:29
Quote
WHen creating decode streams you must save the value returned first by creating stream function;
Thanks a lot Smiley
ReplyReply Reply with quoteQuote
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);
ReplyReply Reply with quoteQuote
4  Developments / BASS / Re: BASS_DSHOW Video Library on: 29 Apr '12 - 12:26
Quote
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.
ReplyReply Reply with quoteQuote
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 Smiley

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);
ReplyReply Reply with quoteQuote
6  Developments / BASS / Re: BASS_DSHOW Video Library on: 28 Apr '12 - 16:38
  What bass error it give?
Oh, I'm sorry. I was able to change the speed in the previous code Smiley

By the way, the audio timing is delayed to the video screen.
Ways to improve it is Nothing?
ReplyReply Reply with quoteQuote
7  Developments / BASS / Re: BASS_DSHOW Video Library on: 28 Apr '12 - 14:59
Quote
Try like this:

Quote
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 Cry
ReplyReply Reply with quoteQuote
8  Developments / BASS / Re: BASS_DSHOW Video Library on: 28 Apr '12 - 14:43
Quote
First code will not play, you only can extract audio data.

2nd code, do you have any error code?
Error code '1' ( xVideo_INVALIDCHAN ) is returned.
ReplyReply Reply with quoteQuote
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);
ReplyReply Reply with quoteQuote
10  Developments / BASS / Re: BASS_DSHOW Video Library on: 28 Apr '12 - 08:06
Quote
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);
ReplyReply Reply with quoteQuote
11  Developments / BASS / Re: BASS_DSHOW Video Library on: 26 Apr '12 - 15:58
Quote
Nope is not available , but you can use BASS_FX addon for that.

Thanks, Ionut.
For using BASS_FX addon with BASS_DSHOW, use xVideo_LoadPlugin?
ReplyReply Reply with quoteQuote
12  Developments / BASS / Re: BASS_DSHOW Video Library on: 25 Apr '12 - 14:27
Hi, Ionut.

I want to change pitch, tempo using BASS_DSHOW in my C++ windows program.
But is xVideo_FX_PITCHTEMPO flag not available on BASS_DSHOW?
ReplyReply Reply with quoteQuote
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines