-
Openfx plug-in development
Posted by Frederic Baumann on October 29, 2010 at 1:47 pmHi,
I am trying to develop an Openfx video plug-in with Vegas 10 Pro.
I have compiled one of the samples provided by Openfx as a 32 bit DLL, put the DLL file in the “OFX Video Plug-ins” folder of Vegas, with the right directory structure, and renamed the .dll to .ofx.
Unfortunately I can’t see my plug-in in the list of effects in Vegas.
I am afraid this is because I compiled it as a 32 bit DLL, and I have the 64 bit version of Vegas.
Would you confirm?
If yes, my problem is that Visual Studio C++ Express (the free version) only allows for 32 bit generation, and apparently does not propose to generate 64 bit apps/dlls.
Any clue to work this around?
Thanks in advance,
Frédéric—
Want to learn on Sony Vegas Event Pan/Crop tool? Watch my video tutorial:
https://library.creativecow.net/baumann_frederic/Sony-Vegas_event-pan-crop-tool/1Or about Keyframes? https://library.creativecow.net/articles/baumann_frederic/Animating-with-Keyframes-in-Sony-Vegas.php
French version: https://geo.creativecow.net/fr/a/12999
Jonathan Thomas replied 15 years, 6 months ago 3 Members · 10 Replies -
10 Replies
-
Frederic Baumann
October 29, 2010 at 1:51 pmconfirmation that VC++ Express 2010 only does 32 bit:
https://msdn.microsoft.com/en-us/library/hs24szh9.aspx
So any suggestion to make 32-bit OFX plug-ins work in Vegas 64 bit much much appreciated!!
Thanks,
Frédéric—
Want to learn on Sony Vegas Event Pan/Crop tool? Watch my video tutorial:
https://library.creativecow.net/baumann_frederic/Sony-Vegas_event-pan-crop-tool/1Or about Keyframes? https://library.creativecow.net/articles/baumann_frederic/Animating-with-Keyframes-in-Sony-Vegas.php
French version: https://geo.creativecow.net/fr/a/12999
-
John Rofrano
October 29, 2010 at 3:36 pm[Frederic Baumann] “I am afraid this is because I compiled it as a 32 bit DLL, and I have the 64 bit version of Vegas.
Would you confirm?”
Confirmed! 32-bit plug-ins will not with with 64-bit Vegas.
~jr
http://www.johnrofrano.com
http://www.vasst.com -
John Rofrano
October 29, 2010 at 3:40 pm[Frederic Baumann] “So any suggestion to make 32-bit OFX plug-ins work in Vegas 64 bit much much appreciated!!”
Buy the full version of Visual Studio C++. Software development is not cheap. Most people can’t appreciate that; they think we create it for free.
~jr
http://www.johnrofrano.com
http://www.vasst.com -
John Rofrano
October 29, 2010 at 3:43 pmNow that I think of it… you could try compiling with GCC (the open source C++ compiler) I have no idea how to use it… I use Visual Studio that I bought.
~jr
http://www.johnrofrano.com
http://www.vasst.com -
Frederic Baumann
October 29, 2010 at 4:18 pmThanks John for your answers!
Visual Studio Professional is approx. 900 euros, which is way too expensive for me and what I want to do (but I agree this is definitely a great tool). It’s too bad because most of my developments needs are fully covered by the free Express, except for this 64-bit stuff.
GCC works pretty fine on Linux, I have never used it on Windows. I should give it a try, you are right. However it will not have the cool debugging facilities provided by VS – but still better than nothing. Thanks! will let you know if it is not too nightmare to install it.
Frédéric
-
John Rofrano
October 29, 2010 at 7:25 pmI think today is your lucky day! I found an article in the MSDN library on how to configure Visual Studio C++ for 64-bit!!! Here is the link:
How to: Configure Visual C++ Projects to Target 64-Bit Platforms
It says:
Note 64-bit tools are not available on Visual C++ Express Edition by default. To enable 64-bit tools on Visual C++ Express Edition, install the .NET Framework SDK in addition to Visual C++ Express Edition. Otherwise, an error occurs when you attempt to configure a project to target a 64-bit platform using Visual C++ Express Edition.
I hope this means it works for you (let me know).
~jr
http://www.johnrofrano.com
http://www.vasst.com -
Frederic Baumann
October 29, 2010 at 8:43 pmThat’s really cool! Many thanks once more 🙂
Meanwhile, I have downloaded an eval of the VS Pro 2010, at least to check I could make the samples work.
I could compile the ‘basic’ ofx sample, could make it recognized by Vegas in the video effects list, but it crashes when I simply clic on it in the list.
I did not investigate more (I switched back to my script/extension other stuff…). But since these samples are not devoted to Vegas, they appear to be built in 32-bit by default, presumably for other OFX containers in 32-bit mode.
According to the error message I got on the crash, I suspect a problem of struct fields alignment when the project is switched to 64bits. I have read here and there that even though OFX was standardized, it was not working perfectly with all containers (too nice to be true, as frequently in computers). Maybe I will have to tweak some compilation settings like byte alignment or so. As a matter of fact, the standard is at the C source level, not at the binary level. So data type definitions or not guaranteed to interoperate between the various providers and consumers of plug-ins.
To be followed, but now I am no more constrained to the 30-day eval period to investigate this, thanks to your post 🙂
As usual, if you have any insight on this, I will be interested to read you!
Frédéric
—
Want to learn on Sony Vegas Event Pan/Crop tool? Watch my video tutorial:
https://library.creativecow.net/baumann_frederic/Sony-Vegas_event-pan-crop-tool/1Or about Keyframes? https://library.creativecow.net/articles/baumann_frederic/Animating-with-Keyframes-in-Sony-Vegas.php
French version: https://geo.creativecow.net/fr/a/12999
-
John Rofrano
October 30, 2010 at 2:25 pm[Frederic Baumann] “As usual, if you have any insight on this, I will be interested to read you! “
My only suggestion is that you wait for the new Vegas OFX SDK to be released. The one on the Sony site is still the old DirectX SDK. I doubt you will get the standard OFX samples to work in Vegas without the Vegas OFX SDK. I could be wrong but the SDK is probably there for a reason. 😉
~jr
http://www.johnrofrano.com
http://www.vasst.com -
Frederic Baumann
October 30, 2010 at 3:39 pmHi,
Actually, I managed today to make the sample work. The problem was due to the fact that the code was trying to retrieve a boolean parameter. The storage was as big as a bool, but the API was retrieving an int. I guess in 64 bits (unlike in 32 bits), bool and int do not have the same footprint, so the memory was corrupted.
I have indeed managed to write my own OFX plug-in, I am testing it right now, and will hopefully publish it if some readers here are interested by the offering. It seems to have everything working fine so far, with graphical parameters adjustment, keyframing/animation, appropriate rendering, persistence of settings into the .veg project file.
—
Want to learn on Sony Vegas Event Pan/Crop tool? Watch my video tutorial:
https://library.creativecow.net/baumann_frederic/Sony-Vegas_event-pan-crop-tool/1Or about Keyframes? https://library.creativecow.net/articles/baumann_frederic/Animating-with-Keyframes-in-Sony-Vegas.php
French version: https://geo.creativecow.net/fr/a/12999
Reply to this Discussion! Login or Sign Up