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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th July 2019, 13:46   #3461  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
It seems that r46 just copies the dll instead of linking it. A reinstall does not help? You could try the diagnose function in vsrepogui to see which plugin folder is used and if it shows any problems.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 13th July 2019, 17:56   #3462  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by ChaosKing View Post
It seems that r46 just copies the dll instead of linking it. A reinstall does not help? You could try the diagnose function in vsrepogui to see which plugin folder is used and if it shows any problems.
I stopped linking because:
1. You need elevated privileges to create links
2. The Python bits are now installed as a normal package using pip and it doesn't really do links either
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 13th July 2019, 17:58   #3463  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Boulder View Post
Is there any way to make the 64-bit R46 installation work properly? R45 also seems to create a symlink to that Python directory and installs a .pyd file there as well. Installation of R46 didn't do either of those things.
You should never have put things in the vapoursynth subdir. That was reserved for VS and nothing else. Make your own directory if you want to do things that way or simply let VSRepo stuff everything into the right place...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 13th July 2019, 19:32   #3464  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,731
Quote:
Originally Posted by Myrsloik View Post
You should never have put things in the vapoursynth subdir. That was reserved for VS and nothing else. Make your own directory if you want to do things that way or simply let VSRepo stuff everything into the right place...
I think that once it was required to put your .py files containing your own VS functions under site-packages to get them to autoload so you could just import them in your script. It has worked perfectly fine until R46, hence the confusion.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th July 2019, 14:36   #3465  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Anyone maintaining some build script for all the plugins for Linux (Debian based systems)?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th July 2019, 18:48   #3466  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
There was a ppa by djcj but it seem to be gone. See here (and sublinks) https://github.com/vapoursynth/vapoursynth/issues/455

EDIT his git repo: https://github.com/darealshinji/vapoursynth-plugins
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 16th July 2019, 04:10   #3467  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
@ChaosKing: I know about djcjs repository problem is it doesn't get updated any more (even the repository is 'archived'), I spoke with him and he's trying to make a 'build' script for all the filters, but I was wondering if somebody already did that and may be shared it with others.

---
For those interested in the issue: https://github.com/darealshinji/scri.../master/Hybrid (currently not 'finished' or 'well tested', but probably helpful)
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 17th July 2019 at 18:45.
Selur is offline   Reply With Quote
Old 24th July 2019, 03:50   #3468  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Got an issue on Linux, regarding:all of them seem to be Windows only. Does anyone know how and if theses can be compiled on Linux?

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 24th July 2019, 09:48   #3469  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by Selur View Post
Got an issue on Linux, regarding:all of them seem to be Windows only. Does anyone know how and if theses can be compiled on Linux?

Cu Selur
VSFilter will always be windows only due to how it's coded. Use Subtext which is included or any other libass based alternative (if there is one).
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 24th July 2019, 18:15   #3470  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
okay, thanks for the info.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 26th July 2019, 20:18   #3471  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Is there a max speed limit set in vapoursynth? I'm testing out my new cpu with source filter like ffms2 on my dvd source, and the max speed I got is 1800 fps, while the same ffms2 in avisynth reaches 5200 fps.
lansing is offline   Reply With Quote
Old 26th July 2019, 21:15   #3472  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
Is there a max speed limit set in vapoursynth? I'm testing out my new cpu with source filter like ffms2 on my dvd source, and the max speed I got is 1800 fps, while the same ffms2 in avisynth reaches 5200 fps.
How did you test the speed?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 26th July 2019, 21:41   #3473  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by Myrsloik View Post
How did you test the speed?
I open the script in vs editor and run the benchmark function, for avs+ I use avsmeter.
lansing is offline   Reply With Quote
Old 26th July 2019, 22:17   #3474  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
I open the script in vs editor and run the benchmark function, for avs+ I use avsmeter.
"vspipe script.vpy ." <- try that

If it's still slow lower the number of threads. You're effectively creating a worst possible scenario if you throw a lot of threads at only one source filter with no processing.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 27th July 2019, 01:16   #3475  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by Myrsloik View Post
"vspipe script.vpy ." <- try that

If it's still slow lower the number of threads. You're effectively creating a worst possible scenario if you throw a lot of threads at only one source filter with no processing.
Using vspipe gives 4200 fps, though it is still 25% slower than avs+.

Then I ran another test on a longer sd video (2 hours), avs+ got 4700 fps and vs got 4400 fps, the difference is much closer, while both took less than 25% cpu usage.
lansing is offline   Reply With Quote
Old 27th July 2019, 10:45   #3476  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by HolyWu View Post
Using different tools (avsmeter and vspipe) for performance comparison won't give you very precise result, since the mechanism for measuring the speed in each application is not the same. You can't really conclude your result unless the mechanism in each application is identical.
I can confirm it. It just tested via vspipe, vsedit, avsmeter and vdub2 with a 1h h264 DV res video.

vsedit is the "slowest" (always ~220fps slower). avsmeter always wins by a couple of sec (3-5sec) or 1586fps vs 1404fps in vspipe. This is also confirmed with a stopwatch in powershell.

In vdub2 on the other hand, avsiynth takes 58sec while vapoursynth is done in 54sec.

Conclusion: ffms2 is more or less equally fast in VS and AVS+ and the tools to measure the speed can have a significant impact on the speed and/or the results.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 27th July 2019, 23:53   #3477  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
Using vspipe gives 4200 fps, though it is still 25% slower than avs+.

Then I ran another test on a longer sd video (2 hours), avs+ got 4700 fps and vs got 4400 fps, the difference is much closer, while both took less than 25% cpu usage.
Go back a few years and you'll see similar questions to this. Anyway...

The 25% cpu usage is because you reach the multithreading limit of ffmpeg. This is a very artificial experiment.

The remaining speed difference is due to differences in how memory allocation works. You're basically benchmarking the respective memory pools in the most artificial way possible. This is an extremely artificial experiment.

Actually I think the ffmpeg binary would win this competition if you just find the right options. I'm generally not interested in benchmarks like these since people rarely even get the options right. See my first answer.

Go benchmark something meaningful next time.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 28th July 2019, 21:36   #3478  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Something weird I just noticed after more testings, in the beginning of my benchmarks, task manager shows all drives at 0% read/write activity while the cpu was running. But some 30 seconds in, the drive that contains the source video began to have some read activities for no reason. And this had effectively bottlenecked my speed. In my script here, it was running at 100+ fps with 100% cpu load for the first 30 seconds, then it had dropped to 70 fps when the drive started to have some 40% reading.

Code:
clip = core.ffms2.Source(file)
clip = core.dfttest.DFTTest(clip)
I have tested on both vs and avs+, same behavior.

Can anyone reproduce it?
lansing is offline   Reply With Quote
Old 28th July 2019, 21:42   #3479  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by lansing View Post
Something weird I just noticed after more testings, in the beginning of my benchmarks, task manager shows all drives at 0% read/write activity while the cpu was running. But some 30 seconds in, the drive that contains the source video began to have some read activities for no reason. And this had effectively bottlenecked my speed. In my script here, it was running at 100+ fps with 100% cpu load for the first 30 seconds, then it had dropped to 70 fps when the drive started to have some 40% reading.

Code:
clip = core.ffms2.Source(file)
clip = core.dfttest.DFTTest(clip)
I have tested on both vs and avs+, same behavior.

Can anyone reproduce it?
Sound like (os) caching...
Need more info: ram size, file size, ssd or hdd?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 28th July 2019, 22:21   #3480  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by ChaosKing View Post
Sound like (os) caching...
Need more info: ram size, file size, ssd or hdd?
ram is 32GB, source video is 6.5G and I tested on both 5400rpm and 7200rpm hdd.
lansing is offline   Reply With Quote
Reply

Tags
speed, vaporware, vapoursynth

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 08:28.


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