slyfox1186 / ffmpeg-build-script

The FFmpeg build script build's the most up to date version of FFmpeg by using API calls to download the latest source code available.
GNU General Public License v3.0
50 stars 10 forks source link

Decklink support #5

Closed Sadoharu closed 11 months ago

Sadoharu commented 1 year ago

is there a way to add decklink support to ffmpeg?

slyfox1186 commented 1 year ago

Can you link me the ( git repo / source code URL) for this? Any other info will help me add it faster.

Sadoharu commented 1 year ago

The compilation files can be downloaded from here Decklink drivers image_2023-10-14_08-51-49

I also already have downloads available at the link Decklink SDK 12.7

there is also a short compilation guide

slyfox1186 commented 1 year ago

So compiling this from source produced a plethora of errors. It interacted with multiple libraries so I tried doing it on another OS using Ubuntu Jammy and it still threw similar errors albeit different. Not sure what my best path forward on this is at this time. I will continue to work on it however it looks bleak at the moment. Why don't you try to build it and report back to me on how you did.

slyfox1186 commented 1 year ago

If you have success let me know otherwise I will close this.

ma-blip commented 1 year ago

unpack SDK zip and copy contents of Linux folder to ffmpeg-build-script/workspace/include/BMD_SDK

Add --enable-decklink \ to the script. line 2888 or forward

add on line 154 at the end -I${workspace}/include/BMD_SDK/include or if you want to link it from somewhere else makle sure to change the dir

CFLAGS="-I${workspace}/include -I/usr/local/include -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I${workspace}/include/BMD_SDK/include"

Compiles ok for me Ubuntu 22.04 lts. Dont have any card right now and have not installed any drivers so cant confirm more then the compile.

slyfox1186 commented 1 year ago

Ok I will attempt to add this and if it works I will update the script. Thanks!

ma-blip commented 1 year ago

You should be able to automate the process by using these available Decklink headers: https://gitlab.com/m-ab-s/decklink-headers Regards

slyfox1186 commented 11 months ago

I have created the code required to download and install the declink-headers that you posted earlier.

However, it throws an error saying it is missing the file windows.h.

I found a copy of that file and put it into the $workspace/include folder which is where the decklink header files are also located and it still throws the same error.

Gonna keep trying as I have the time.

As ALWAYS if you have more advice it can only help speed things up.

slyfox1186 commented 11 months ago

OK I spoke too soon. I downloaded the official SDK off of decklinks website and it build ffmped with decklink enabled. I will update the script soon.