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 26th August 2019, 21:54   #3581  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,146
Quote:
Originally Posted by Myrsloik View Post
It's not included in the installer so maybe you don't have it...
What package is it in now? The vs documentation still listed it as included plugin from the installer.
lansing is offline   Reply With Quote
Old 27th August 2019, 10:19   #3582  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 965
Quote:
Originally Posted by Stephen R. Savage View Post
Optimised VSynth build for Expr: https://www.sendspace.com/file/xleugj

Benefits of Exprt build:
  • Higher framerate in Exprt-intensive scripts
  • Higher framerate in MaskTools-intensive scripts
  • Lower electricity bill
  • Lower CPU temperature
Here are some numbers:
Tested like this
PS D:\> vspipe.exe -p -e 5000 D:\del.vpy .
on a Ryzen 2600, 16GB ram, DVD 720x480 clip

Vinverse seems to consist only of Expr+MakeDiff and therefore has the biggest speedup of ~22%
https://github.com/HomeOfVapourSynth...sfunc.py#L2375

Code:
import havsfunc as haf
clip=haf.DeHalo_alpha(clip)
clip=haf.FineDehalo(clip)
# new build
Output 5001 frames in 16.87 seconds (296.39 fps)
Output 5001 frames in 16.73 seconds (298.98 fps)
Output 5001 frames in 16.84 seconds (296.98 fps)
# old build
Output 5001 frames in 17.04 seconds (293.43 fps)
Output 5001 frames in 17.07 seconds (292.99 fps)
Output 5001 frames in 17.04 seconds (293.51 fps)

clip=haf.srestore(clip)
# new build
Output 5001 frames in 35.41 seconds (141.24 fps)
Output 5001 frames in 35.12 seconds (142.42 fps)
Output 5001 frames in 35.74 seconds (139.94 fps)
# old build
Output 5001 frames in 35.20 seconds (142.07 fps)
Output 5001 frames in 35.24 seconds (141.91 fps)
Output 5001 frames in 35.09 seconds (142.53 fps)

clip=haf.SmoothLevels(clip)
# new build
Output 5001 frames in 10.41 seconds (480.28 fps)
Output 5001 frames in 10.34 seconds (483.86 fps)
Output 5001 frames in 10.33 seconds (484.30 fps)
# old build
Output 5001 frames in 10.66 seconds (469.29 fps)
Output 5001 frames in 10.64 seconds (469.96 fps)
Output 5001 frames in 10.66 seconds (468.97 fps)

clip=haf.Vinverse2(clip)
# new build
Output 5001 frames in 5.12 seconds (977.57 fps)
Output 5001 frames in 5.17 seconds (967.26 fps)
Output 5001 frames in 5.13 seconds (974.39 fps)
# old build
Output 5001 frames in 5.85 seconds (855.08 fps)
Output 5001 frames in 5.86 seconds (853.31 fps)
Output 5001 frames in 5.86 seconds (853.19 fps)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository

Last edited by ChaosKing; 27th August 2019 at 10:25.
ChaosKing is offline   Reply With Quote
Old 27th August 2019, 17:13   #3583  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,146
I have notice a new problem with Python 3.7.4 installer that's affecting vs installer. When I'm doing a clean install, if I choose "install now" in python installer, the default installation path would be something like "users\username\appdata\roaming\...", and the default installation path for the vs installer would be "users\username\appdata\local\programs\vapoursynth". But if I choose "custom installation" in python installer, its installation path would be changed to "c:\program files\python37", and the vs installer would also be changed to "c:\program files\vapoursynth".
lansing is offline   Reply With Quote
Old 31st August 2019, 06:23   #3584  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,848
Is there an alternative to AutoAdjust for Vapoursynth?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 31st August 2019, 17:52   #3585  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,989
Quote:
Originally Posted by Selur View Post
Is there an alternative to AutoAdjust for Vapoursynth?
Not that I know of. Avisynth compatiblity should work though.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 31st August 2019, 18:21   #3586  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,848
Quote:
Not that I know of. Avisynth compatiblity should work though.
Only on Windows, or should this also work on Linux and I simply don't know how to get it working?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 6th September 2019, 19:59   #3587  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: Los Angeles, California
Posts: 2,124
why is vsscript.dll required to be placed in the same folder with vspipe.exe for the new release?
__________________
If I got new ideas, will post here: https://github.com/IFeelBloated
feisty2 is offline   Reply With Quote
Old 6th September 2019, 20:17   #3588  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,989
Quote:
Originally Posted by feisty2 View Post
why is vsscript.dll required to be placed in the same folder with vspipe.exe for the new release?
I stopped putting a copy of vsscript.dll in the system directory in R46. Putting things into the system directory is bad.

Changing the vsscript api to match the style of the rest of vs so importing it becomes trivial is on my todo list and will fix it. Some day.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 10th September 2019, 15:56   #3589  |  Link
Jukus
Registered User
 
Join Date: Jul 2019
Posts: 8
Is there a detailed user guide? Of course, I am happy to use QTGMC and other plugins, but there is very little knowledge and information.
Jukus is offline   Reply With Quote
Old 10th September 2019, 18:53   #3590  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 721
Quote:
Originally Posted by Jukus View Post
Is there a detailed user guide? Of course, I am happy to use QTGMC and other plugins, but there is very little knowledge and information.
There is some documentation: http://www.vapoursynth.com/doc/
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 10th September 2019, 19:39   #3591  |  Link
Jukus
Registered User
 
Join Date: Jul 2019
Posts: 8
Quote:
Originally Posted by jackoneill View Post
There is some documentation: http://www.vapoursynth.com/doc/
Thank you, I know. But I'm interested, for example, the sequence of applications of filters, I think it is not always obvious. Changing the brightness and color need before QTGMC or after, maybe there is no difference? And other nuances of video processing that I don't know about.
Jukus is offline   Reply With Quote
Old 10th September 2019, 23:18   #3592  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 600
That sounds a bit more than a guide, but more of lesson(s) (of being an encoder).

QTGMC is a deinterlacer so it always comes at early stage (probably after delogo, but that depends also.)

And to us, we never change brightness and color of a mastered work (e.g. when backing up bluray discs). But if it's your own recording, things can be a lot different.
MeteorRain is offline   Reply With Quote
Old 12th September 2019, 04:09   #3593  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Germany
Posts: 5,721
I've been studying some tutorials at realpython.com and noticed the tutorial and vs code format code like so:

Code:
def foo(a=1, b=1):

foo(a=1, b=1)
In staxrip there is much avs/vs code that use spaces:

Code:
def foo(a = 1, b = 1):

foo(a = 1, b = 1)
What is more common? Is both OK or is one officially discouraged and what about AviSynth?
stax76 is offline   Reply With Quote
Old 12th September 2019, 08:29   #3594  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 965
This looks like the official style guide https://www.python.org/dev/peps/pep-0008/

Seems like def foo(a=1, b=1, ...) is recommended.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 12th September 2019, 08:51   #3595  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,989
Quote:
Originally Posted by stax76 View Post
I've been studying some tutorials at realpython.com and noticed the tutorial and vs code format code like so:

Code:
def foo(a=1, b=1):

foo(a=1, b=1)
In staxrip there is much avs/vs code that use spaces:

Code:
def foo(a = 1, b = 1):

foo(a = 1, b = 1)
What is more common? Is both OK or is one officially discouraged and what about AviSynth?
Use whatever you like as long as you're consistent.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 13th September 2019, 15:58   #3596  |  Link
aegisofrime
Registered User
 
Join Date: Apr 2009
Posts: 459
Gonna post this here as I don't think it deserves it's own thread, but what happen to Stephen R. Savage's post about his optimized MVTools?
aegisofrime is offline   Reply With Quote
Old 13th September 2019, 16:16   #3597  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,989
Quote:
Originally Posted by aegisofrime View Post
Gonna post this here as I don't think it deserves it's own thread, but what happen to Stephen R. Savage's post about his optimized MVTools?
It got merged into normal mvtools and will be in the next release.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 18th September 2019, 13:20   #3598  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 965
Does get_read_array() return only "video data" without "meta data or something"?

I was comparing different source filters (ffms2, d2vsource, lsmash, dgdecnv) and noticed something strange with VOB files. I save every hash in a list. If the video file passes the "seek-test" the hashes of every source filters should the same. This was the case with many files.
But for vob files the hashes differ with every source filter. Is there something special with VOB files? I mean they can only be decoded in "one correct" way, right? They look all ok in vsedit...

example log
Code:
Seek linear order (hash, PicType, n-Frame)
d653d648d8e6407e507c6eaa0116ebe5 I 0
30ad6c41b89dfd8880a12bde6952e7b2 B 1
5e0cb8bad4ba2ec37b4f4db0d4a65691 P 2
...
Code:
#from seek-test.py
def hash_frame(frame):
    md5 = hashlib.md5()
    for plane in range(frame.format.num_planes):
        for line in frame.get_read_array(plane):
            md5.update(line)
    return md5.hexdigest()
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 18th September 2019, 13:47   #3599  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,989
Quote:
Originally Posted by ChaosKing View Post
Does get_read_array() return only "video data" without "meta data or something"?

I was comparing different source filters (ffms2, d2vsource, lsmash, dgdecnv) and noticed something strange with VOB files. I save every hash in a list. If the video file passes the "seek-test" the hashes of every source filters should the same. This was the case with many files.
But for vob files the hashes differ with every source filter. Is there something special with VOB files? I mean they can only be decoded in "one correct" way, right? They look all ok in vsedit...

example log
Code:
Seek linear order (hash, PicType, n-Frame)
d653d648d8e6407e507c6eaa0116ebe5 I 0
30ad6c41b89dfd8880a12bde6952e7b2 B 1
5e0cb8bad4ba2ec37b4f4db0d4a65691 P 2
...
Code:
#from seek-test.py
def hash_frame(frame):
    md5 = hashlib.md5()
    for plane in range(frame.format.num_planes):
        for line in frame.get_read_array(plane):
            md5.update(line)
    return md5.hexdigest()
It's not strange at all. It wasn't until h.264 the standard required (or even specified for that matter) how the DCT transforms should be done in a bit exact manner.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 18th September 2019, 13:54   #3600  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 965
Quote:
Originally Posted by Myrsloik View Post
It's not strange at all. It wasn't until h.264 the standard required (or even specified for that matter) how the DCT transforms should be done in a bit exact manner.
Aha, ok good to know.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing 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 13:23.


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