Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th January 2021, 16:59   #1  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Compiling with Microsoft Visual Studio 2019 community edition

Is there a guide somewhere to compile avisynth plugins with Microsoft Visual Studio 2019 community edition? I tried (not sure what I'm doing) but I get random errors, fix one and 10 show up.
Ceppo is offline   Reply With Quote
Old 18th January 2021, 18:21   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
A guide is unlikely to help you with compile errors. Can you post a link to your project zipped up? I'll get it compiling for you. There were a number of things I had to do to migrate VS 2013 builds to VS 2019.
videoh is offline   Reply With Quote
Old 18th January 2021, 18:45   #3  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
The fact is that I want to learn how to do it. I'm studying C++ and I'm at a good point so I thought to make some basic plugin (maybe I didn't specify it) so I started with the basic InvertNeg but I can't compile it so I can't get started.
Ceppo is offline   Reply With Quote
Old 18th January 2021, 20:41   #4  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Fair enough. Try this:

http://rationalqm.us/misc/InvertNeg.rar

Just double click on the solution (.sln) file and away you go.
videoh is offline   Reply With Quote
Old 18th January 2021, 21:03   #5  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Nice magic you were of great help.

I don't want to disturb you further but could you please tell me which template did you chose to make the project?
Ceppo is offline   Reply With Quote
Old 18th January 2021, 23:29   #6  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Happy it was useful to you.

You don't need a template or anything. You just create a new bare (empty) DLL project (basic VS 2019 usage), because Avisynth plugins are DLLs. Add your source code and you're done. That includes proper Avisynth/Vapoursynth headers. Most people look for a sample full project like I sent you. The problem is that your InvertNeg link just gives the filter source code and not the full project. Pretty soon you'll be whipping these things out like...confetti?

Last edited by videoh; 18th January 2021 at 23:35.
videoh is offline   Reply With Quote
Old 19th January 2021, 00:04   #7  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
I see how it works now, didn't occur to me. If I may ask another thing then I promise I'm on my own

I tried compiling Non-clip sample and all of them don't compile giving me errors and warnings while nothing of this happens with InvertNeg and simple-sample. I tried fixing minor mistakes but not much is changed. All the warnings are about avisynth.h that is strange since it gives no problems with the other filters.

Can you help me on this? pretty please
Ceppo is offline   Reply With Quote
Old 19th January 2021, 03:59   #8  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
You have to use AvisynthPluginInit3() as shown in my sample. Your linked code is for older Avisynth versions.

Generally, you need to show your actual code and the compiler errors if you want help. We cannot read your mind.
videoh is offline   Reply With Quote
Old 19th January 2021, 20:07   #9  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
I see, thank you very much for all your help.
Ceppo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.