21 May '13 - 12:49 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 121 122 [123] 124 125 ... 135
  Reply  |  Print  
Author Topic: BASS_DSHOW Video Library  (Read 271329 times)
smoodilo
Guest
« Reply #2440 on: 4 May '12 - 13:13 »
Reply with quoteQuote

Ionut,

I made a small demo application for you. Can I send it to you somehow?

Logged
Ionut Cristea
Posts: 1374


« Reply #2441 on: 4 May '12 - 13:49 »
Reply with quoteQuote

  Yes, sure
Logged
Ryota
Posts: 12


« Reply #2442 on: 4 May '12 - 14:48 »
Reply with quoteQuote

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);
Logged
Ionut Cristea
Posts: 1374


« Reply #2443 on: 4 May '12 - 15:14 »
Reply with quoteQuote

 WHen creating decode streams you must save the value returned first by creating stream function;

Example:

Quote
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);
xVideo_ChannelResizeWindow(vidStream, 0, 0, 0, 100, 100);
BASS_ChannelSetAttribute(m_hStream, BASS_ATTRIB_TEMPO, 200.0f);
BASS_ChannelPlay(m_hStream,false);
Logged
Ryota
Posts: 12


« Reply #2444 on: 4 May '12 - 15:29 »
Reply with quoteQuote

Quote
WHen creating decode streams you must save the value returned first by creating stream function;
Thanks a lot Smiley
Logged
Ryota
Posts: 12


« Reply #2445 on: 6 May '12 - 15:56 »
Reply with quoteQuote

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);
}
Logged
smoodilo
Guest
« Reply #2446 on: 7 May '12 - 16:55 »
Reply with quoteQuote

Ionut,

Please take a closer look at your implementation of Bass_ChannelPause. I narrowed my problem down to it. If I replace it with Dshow_ChannelPause everything works as expected. So there's something wrong with the plugin-part.

Thanks!
Logged
Ionut Cristea
Posts: 1374


« Reply #2447 on: 7 May '12 - 17:17 »
Reply with quoteQuote

  PLease try with this update

* BASS_DSHOW.zip (112.73 KB - downloaded 28 times.)
Logged
smodilo
Posts: 46


« Reply #2448 on: 7 May '12 - 20:54 »
Reply with quoteQuote

  PLease try with this update

SOLVED!!!!  Thank you!

Logged
quickmic
Posts: 248


« Reply #2449 on: 9 May '12 - 07:25 »
Reply with quoteQuote

Is it already possible to change the DVD audio language?

thx
Logged
smoodilo
Guest
« Reply #2450 on: 9 May '12 - 07:52 »
Reply with quoteQuote


When using Bass_ChannelSetPosition, what is passed to DShow_ChannelSetPosition? Frames? Milliseconds? Bytes? Seconds? ....
Logged
Ionut Cristea
Posts: 1374


« Reply #2451 on: 9 May '12 - 08:47 »
Reply with quoteQuote

 When using BASS_ChannelSetPosition is passed bytes that are converted to miliseconds and pass to BASS_DSHOW.


Quote
Insert Quote
Is it already possible to change the DVD audio language?

thx

I will see what i can do about this Smiley
Logged
smoodilo
Guest
« Reply #2452 on: 9 May '12 - 21:09 »
Reply with quoteQuote

When trying to use ChannelAddWindows I get this error:

First-chance exception at 0x7c812aeb : Microsoft C++ exception: long at memory location 0x00127c00..

Any idea what it means?
Logged
smoodilo
Guest
« Reply #2453 on: 10 May '12 - 10:01 »
Reply with quoteQuote

When trying to use ChannelAddWindows I get this error:

First-chance exception at 0x7c812aeb : Microsoft C++ exception: long at memory location 0x00127c00..

Any idea what it means?


Edit: This only happens when I add a window on a secondary screen.
If I drag the same window from the secondary screen to the main screen and call this function everything works.

Logged
quickmic
Posts: 248


« Reply #2454 on: 10 May '12 - 11:41 »
Reply with quoteQuote

Does dshow still overwrite the audio-buffer-settings?
Logged
Ionut Cristea
Posts: 1374


« Reply #2455 on: 10 May '12 - 14:43 »
Reply with quoteQuote

Quote
When trying to use ChannelAddWindows I get this error:

First-chance exception at 0x7c812aeb : Microsoft C++ exception: long at memory location 0x00127c00..

Any idea what it means?

This happen with all video renderers?

Quote
Does dshow still overwrite the audio-buffer-settings?

Yep
Logged
quickmic
Posts: 248


« Reply #2456 on: 10 May '12 - 15:39 »
Reply with quoteQuote


Quote
Does dshow still overwrite the audio-buffer-settings?

Yep

Please make this (optional?... if you need it) disable.
Logged
smoodilo
Guest
« Reply #2457 on: 10 May '12 - 16:03 »
Reply with quoteQuote


First-chance exception at 0x7c812aeb : Microsoft C++ exception: long at memory location 0x00127c00..


This happen with all video renderers?


Yes tried EVR, VMR, Default. If I drag the same form to my normal screen and start a video I have no problem. But I need the video to be on the secondary screen (and a preview window on the main screen).

Also another question: In SetWindow, what is the second integer used for?



Logged
smoodilo
Guest
« Reply #2458 on: 11 May '12 - 07:38 »
Reply with quoteQuote


First-chance exception at 0x7c812aeb : Microsoft C++ exception: long at memory location 0x00127c00..

This happen with all video renderers?


Yes tried EVR, VMR, Default. If I drag the same form to my normal screen and start a video I have no problem. But I need the video to be on the secondary screen (and a preview window on the main screen).

Also another question: In SetWindow, what is the second integer used for?


Edit: After a night of searching I found out what's wrong: Bass_ChannelGetState of a video stream is inconsistent.
E.g. After creating a stream, "3" (stalled) is returned for a long time.




Logged
Ionut Cristea
Posts: 1374


« Reply #2459 on: 11 May '12 - 18:21 »
Reply with quoteQuote

  Try with this update. and with this update set the videorenderer to 7

* BASS_DSHOW.zip (131.17 KB - downloaded 29 times.)
Logged
Pages: 1 ... 121 122 [123] 124 125 ... 135
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines