View Full Version : [HELP] How do I upscale and export a video with AviSynthAiUpscale
mcabel
8th May 2023, 05:03
https://github.com/Alexkral/AviSynthAiUpscale
I have aviSynth+ and avspmod but all I get is "invalid arguments" ...
the "instructions are as follow
" ----- Usage -----
AiUpscale(clip Input, int "Factor", string "Luma", string "Chroma", string "CResample", string "Mode", string "CPlace", int "OutDepth")"
idk how or where to use that command >_<, please help!
FranceBB
8th May 2023, 12:41
Welcome to the Avisynth community!
I hope you'll enjoy the use of this awesome frameserver. :)
Before you jump into using external functions, you may wanna take a look at the wiki (http://avisynth.nl/index.php/Main_Page) which explains lots of the basic stuff you need so that you can familiarize with them.
Anyway, to answer your question, try with something simple like:
ColorBars(848, 480, pixel_type="YV12")
AiUpscale(Factor=2, Luma="Medium")
https://i.imgur.com/B1N8yeA.png
your output should be colorbars upscaled from 848x480 to 1696x960.
If that one works, replace ColorBars() with any indexer like:
LWLibavVideoSource("my_video.mxf")
AiUpscale(Factor=2, Luma="Medium")
where "my_video" stands for your input source (path included).
The higher the factor, the more it will upscale, so factor 2 means it height times 2, width times 2, if you use 4 then it's times 4, so going back to the 848x480 example, factor=4 would be 3392x1920 and so on.
Make sure the plugin is in the Plugins64+ folder in your installation of Avisynth and make sure you have the C++ Redistributable (https://github.com/abbodi1406/vcredist/releases/) installed too.
If you're using an indexer like LWLibav (https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases/), also make sure that the x64 version is downloaded and copied in the Plugins64+ folder of Avisynth+.
Also make sure you're using the latest Avisynth+ 3.7.2 (https://github.com/AviSynth/AviSynthPlus/releases) and the latest AVSPmod mod (https://github.com/gispos/AvsPmod/releases) and not some older versions (I'm personally on Avisynth 3.7.3 Beta but it doesn't matter for what you have to do).
mcabel
9th May 2023, 03:22
Welcome to the Avisynth community!
I hope you'll enjoy the use of this awesome frameserver. :)
Before you jump into using external functions, you may wanna take a look at the wiki (http://avisynth.nl/index.php/Main_Page) which explains lots of the basic stuff you need so that you can familiarize with them.
Anyway, to answer your question, try with something simple like:
ColorBars(848, 480, pixel_type="YV12")
AiUpscale(Factor=2, Luma="Medium")
https://i.imgur.com/B1N8yeA.png
your output should be colorbars upscaled from 848x480 to 1696x960.
If that one works, replace ColorBars() with any indexer like:
LWLibavVideoSource("my_video.mxf")
AiUpscale(Factor=2, Luma="Medium")
where "my_video" stands for your input source (path included).
The higher the factor, the more it will upscale, so factor 2 means it height times 2, width times 2, if you use 4 then it's times 4, so going back to the 848x480 example, factor=4 would be 3392x1920 and so on.
Make sure the plugin is in the Plugins64+ folder in your installation of Avisynth and make sure you have the C++ Redistributable (https://github.com/abbodi1406/vcredist/releases/) installed too.
If you're using an indexer like LWLibav (https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases/), also make sure that the x64 version is downloaded and copied in the Plugins64+ folder of Avisynth+.
Also make sure you're using the latest Avisynth+ 3.7.2 (https://github.com/AviSynth/AviSynthPlus/releases) and the latest AVSPmod mod (https://github.com/gispos/AvsPmod/releases) and not some older versions (I'm personally on Avisynth 3.7.3 Beta but it doesn't matter for what you have to do).
Thanks for your reply :) ... I tried the Version() function (as shown in the first steps wiki) in a new script file and it worked fine. But when I add call the function to draw the bars, an error appears "There is no function named 'ConvertToShader'. I suspect that I'm missing a plugin, but I can't find anything related to that. Would you happen to know what I'm missing?
Thanks for your reply :) ... I tried the Version() function (as shown in the first steps wiki) in a new script file and it worked fine. But when I add call the function to draw the bars, an error appears "There is no function named 'ConvertToShader'. I suspect that I'm missing a plugin, but I can't find anything related to that. Would you happen to know what I'm missing?
I have tried this, and sorry to say I wasn't that impressed with the results...maybe I'm fussy.
Check to see if you have this where it needs to be :-
http://avisynth.nl/index.php/AviSynthShader
https://github.com/Alexkral/AviSynthAiUpscale
I have aviSynth+ and avspmod but all I get is "invalid arguments" ...
the "instructions are as follow
" ----- Usage -----
AiUpscale(clip Input, int "Factor", string "Luma", string "Chroma", string "CResample", string "Mode", string "CPlace", int "OutDepth")"
idk how or where to use that command >_<, please help!
Have you got the "Shaders" where they need to be ??
Installation
Copy AiUpscale.avsi and the Shaders folder to the AviSynth+ plugins folder.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.