Page 4 of 6

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 8:41 am
by iotzo
jbalvarado wrote:I have send now two patches to the malling list.

The widl command is not complete I think. It must be like this:
widl -I/mingw32/i686-w64-mingw32/include -h -u -o DeckLinkAPI.h DeckLinkAPI.idl
I see, thanks!

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 8:46 am
by iotzo
ramiro wrote:To get the proper files with widl, I compiled mingw-w64 from source. You can use Zeranoe's build script for this. *but* you have to patch widl with this patch http://pastebin.com/7z2vYNNq

Then, remove references to stdole2.tlb and generate the files:

Code: Select all

$ sed s/'importlib("stdole2.tlb");'// -i *
$ widl DeckLinkAPI.idl
Thank you! I will test it!

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 8:47 am
by iotzo
jbalvarado wrote:The second patch they can not use. I was getting this message:
This code is Copyright (c) Blackmagic Design. Try just changing the check for CoInitialize(NULL) from "!= S_OK" to "< 0".
Just tested it and it works!
Thank You people!

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 8:50 am
by jbalvarado
Nice! Can you please write me here the correct line?

Normally I'm the wrong person for posting patches, because I am not a programmer... ;)

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 8:57 am
by iotzo
jbalvarado wrote:Nice! Can you please write me here the correct line?

Normally I'm the wrong person for posting patches, because I am not a programmer... ;)

Code: Select all

    if (CoInitialize(NULL) < 0 ) {

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 9:35 am
by jbalvarado
Thank you! Is in line 51 the same?

Code: Select all

IID_IDeckLinkIterator, (void**) &iter) != S_OK)

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 9:37 am
by iotzo
jbalvarado wrote:Thank you! Is in line 51 the same?

Code: Select all

IID_IDeckLinkIterator, (void**) &iter) != S_OK)
Yes!

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 11:47 am
by iotzo
Oops! I think I misread your question, but it doesn't hurt to have the change on line 51 too.

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 6:26 pm
by jbalvarado
Yes I was to fast with that. But it is corrected now and both patches are already applied in the ffmpeg git source.

Re: DeckLink output --enable-decklink

Posted: Wed Dec 03, 2014 6:29 pm
by iotzo
Thank you people! :)
Jbalvarado - for Your dedication and Ramiro for Your patience:)