Comments (16)
It looks like a registration issue. Try regsvr32 vapoursynth_filter_64.ax
. It should give you an error. One possible cause is that you didn't have VapourSynth directory in your PATH, more specificallyVSScript.dll
.
from avisynth_filter.
I tried regsvr32 vapoursynth_filter_64.ax and it succeeded with no error. How do I add VapourSynth directory in your PATH, more specifically VSScript.dll?
from avisynth_filter.
How do I add VapourSynth directory in your PATH, more specifically VSScript.dll?
If you used VapourSynth installer, that option should already be checked by default. How did you install VapourSynth? Portable?
from avisynth_filter.
Installed the x64 installer version, i believe the options was checked but i can try to install again
from avisynth_filter.
what options should i choose for python and vapoursynth when installing?
from avisynth_filter.
Python: First page, "Add Python 3.9 to PATH"
VapourSynth: "Add VSPipe and AVFS to PATH"
from avisynth_filter.
I got it to work now. I didn't see "Add Python 3.9 to PATH" but I did see something like "add python to environmental path" or something like that. I believe I already checked that before. I did check a few options more for python - pip and py launcher and associate files with python. For vapoursynth i checked also vsrepo package manager and add new vapousynth python script to shell context men and update vsrepo package list and add vsrepo to path as well.
Going to try that filter i mentioned above. Have you tried it yet, does it work with vapoursynth filter?
from avisynth_filter.
shell context menu
from avisynth_filter.
Not sure but how does one set a target framerate with this filter?
Here is my script,
Imports
import vapoursynth as vs
core = vs.get_core()
clip = VpsFilterSource
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="470bg", range_s="full")
clip = core.rife.RIFE(clip, model=0, gpu_thread=4, tta=False, uhd=False, sc=True, fp32=False, list_gpu=False)
from avisynth_filter.
First, according to the project, "Only planar RGB format with float sample type of 32 bit depth is supported." DirectShow does not support outputting planar RGB format, so we need to convert it back to YUV.
Second, your script is using sc=True
, but according to the project, "You must invoke misc.SCDetect
on YUV or Gray format of the input beforehand so as to set frame properties."
Third, according to the parent project, this thing "Input two frame images, output one interpolated frame image." So it can only double the fps.
Here is my script to get correct frames. However, the output rate is extremely low, making the video choppy. For example, with a 30fps video, normally AVSF deliver each frame per 33ms. Adding the RIFE() call increases that to 92ms. The renderer is forced to drop lots of frames. But my CPU and GPU are all pretty much idle. Maybe this filter is not designed for realtime use?
My script:
sc_clip = vapoursynth.core.misc.SCDetect(VpsFilterSource)
rgb_clip = vapoursynth.core.resize.Bicubic(sc_clip, format=vapoursynth.RGBS, matrix_in_s="470bg", range_s="full")
rife_clip = vapoursynth.core.rife.RIFE(rgb_clip, sc=True, fp32=True)
output_clip = vapoursynth.core.resize.Bicubic(rife_clip, format=vapoursynth.YUV420P8, matrix_s="709")
output_clip.set_output()
from avisynth_filter.
Right I see that it is only doubling the original framerate.
Although I cannot see any difference visibly in the video, just noticed the framerate going up.
I couldn't get your script to work for some reason.
I will ask if there is a way to increase the framerate more.
My updated script
import vapoursynth as vs
core = vs.get_core()
clip = VpsFilterSource
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="470bg", range_s="full")
clip = core.rife.RIFE(clip, model=1, gpu_id=0, list_gpu=True, gpu_thread=4, tta=True, uhd=False, sc=False, fp32=True)
output_clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="709")
output_clip.set_output()
from avisynth_filter.
I also noticed this:
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-RIFE-ncnn-Vulkan/issues/2
I don't know myself but is that script setting a custom framerate?
from avisynth_filter.
I'm pretty sure if you use list_gpu=True
, it won't do any interpolation. You can verify the theoretical output FPS in AVSF's Status page.
from avisynth_filter.
In the status page with my script unchanged the output fps is the same as input, but in mpc-be statistics page, it is doubled. When I took out list_gpu=True, video playback was choppy and slow and the framerate was like 3 fps?
from avisynth_filter.
You can see the source code that if list_gpu=True
, it just invoke Text and return. It doesn't load model and do anything real processing below.
from avisynth_filter.
So if it turns out there is no issue in AVSF, I'm closing this.
from avisynth_filter.
Related Issues (20)
- d3d11 direct-mode breaks when remote control is enabled HOT 13
- VapourSource-how to use with a capture card or live source? HOT 3
- DVD Video + LAV Filters + AVSF = green bar 16 pixel wide HOT 2
- PotPlayer / EVR / 10-bit HOT 60
- Video freezing while switching subtitles HOT 17
- Some videos are broken with avisynth_filter HOT 10
- Can't use VapourSynth or open the properties page without crashing HOT 16
- Aspect ratio HOT 12
- GetInputSourcePath HOT 7
- Force square pixels (DAR=SAR) HOT 7
- Frame counter resets to 0 on seek HOT 1
- AviSynthPlus-RIFE colorspace errors HOT 3
- Chroma is broken when using LWlibavVideoSource+MPC-HC+AVSF HOT 3
- _AbsoluteTime resets on seek HOT 2
- vs-rife "RIFE: cuda is not available" HOT 3
- Dolby Vision support HOT 2
- How to implement DirectShow filter graph and custom video renderer HOT 4
- CSynthFilter::TraverseFiltersInGraph() fails if audio-only file source is in filter graph HOT 4
- Feature request: Allow avisynth filter to be used system wide, like ffdshow HOT 5
- MPC-BE x64 when to vs.RGBS freeze HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avisynth_filter.