DeckLink output --enable-decklink

Website, builds, or other suggestions.
iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 8:41 am

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!

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 8:46 am

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!

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 8:47 am

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!

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Wed Dec 03, 2014 8:50 am

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... ;)

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 8:57 am

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 ) {

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Wed Dec 03, 2014 9:35 am

Thank you! Is in line 51 the same?

Code: Select all

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

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 9:37 am

jbalvarado wrote:Thank you! Is in line 51 the same?

Code: Select all

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

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 11:47 am

Oops! I think I misread your question, but it doesn't hurt to have the change on line 51 too.

jbalvarado
Posts: 50
Joined: Thu Oct 03, 2013 3:47 pm

Re: DeckLink output --enable-decklink

Post by jbalvarado » Wed Dec 03, 2014 6:26 pm

Yes I was to fast with that. But it is corrected now and both patches are already applied in the ffmpeg git source.

iotzo
Posts: 35
Joined: Thu Jan 24, 2013 4:49 pm

Re: DeckLink output --enable-decklink

Post by iotzo » Wed Dec 03, 2014 6:29 pm

Thank you people! :)
Jbalvarado - for Your dedication and Ramiro for Your patience:)

Post Reply
'