hadardasim
Posts: 7
Joined: Sun Dec 06, 2015 9:36 pm

fail to record using BCAP_MODE_D3D9_SWAPCHAIN

Mon Oct 23, 2017 9:22 pm

Hi,
I have this d3d9 app in which I need to record a specific swap chain (index 1).
when calling IBandiCapture::Start with the pointer of the swap chain (and BCAP_MODE_D3D9_SWAPCHAIN) it returns 0.
The following IBandiCapture::work fails with return code BCERR_FILE_WRITE=87771014.

I tried going back to more basic. Using another app with only one (default) swap chain which I was able to record by using BCAP_MODE_D3D9 and a pointer to IDirect3DDevice9. Changing the start call to BCAP_MODE_D3D9_SWAPCHAIN and the pointer of the default swap chain was BC_OK_ONLY_VIDEO. However, the following call to work (with that same pointer), generated an error BCERR_VIDEO_CAPTURE=87771011.

In all the above case, I call the start and work, just before the first present (IDirect3DSwapChain9::Present).

Long story short I am unable to use the BCAP_MODE_D3D9_SWAPCHAIN mode.

Thanks,

Hadar
Last edited by hadardasim on Mon Oct 23, 2017 11:39 pm, edited 1 time in total.

hadardasim
Posts: 7
Joined: Sun Dec 06, 2015 9:36 pm

Re: fail to record using BCAP_MODE_D3D9_SWAPCHAIN

Mon Oct 23, 2017 10:00 pm

Here are the settings for BCAP_CONFIG:

BCAP_CONFIG {FileType=0 VideoSizeW=1920 VideoSizeH=1080 ...} BCAP_CONFIG
FileType 0 int
VideoSizeW 1920 int
VideoSizeH 1080 int
VideoFPS 25.000000 float
VideoCodec 875967048 unsigned long
VideoRateControl 0 int
VideoKBitrate 2048 int
VideoQuality 80 int
VideoKeyframeInterval 50 int
AudioChannels 2 int
AudioSampleRate 24000 int
AudioCodec 0 int
AudioRateControl 0 int
AudioKBitrate 192 int
AudioQuality 30 int
LogoPath 0x00a872c4 "\0" wchar_t [260]
LogoAlpha 0 int
LogoPosX 50 int
LogoPosY 100 int
LogoSizeW 100 int
LogoSizeH 100 int
AutoCompleteType 1 int
AutoCompleteValue 7200 int
CaptureRect {top=0 bottom=0 left=0 right=0} tagRECT
IncludeCursor 0 int
AdjustAudioMixer 1 int
SaveAudioTracksAsWav 0 int

User avatar
Bandicam Company
Site Admin
Posts: 7802
Joined: Mon Dec 20, 2010 12:19 pm

Re: fail to record using BCAP_MODE_D3D9_SWAPCHAIN

Tue Oct 24, 2017 10:27 am

Hi Hadar,

This is Zun from Bandicam Company.

It seems that you're using the Bandicam SDK incorrectly.
Is it possible for you to send your program source code to my personal email address?

If you can record the recording target through Bandicam, you should be able to capture it through the Bandicam SDK.

Return to “Bandicam - General Discussion”

Who is online

Users browsing this forum: No registered users and 98 guests