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. |
23rd July 2021, 22:07 | #1 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
VapourSynth - AUDIO SUPPORT AND NEW API BETA
It's finally happened!
Biggest changes:
I'll provide a longer post later but things have now reached a state I'm happy with in general. Basically full backwards compatibility is provided with only a few minor caveats:
Note that none of the previously compiled plugins for api4 will work so use the provided versions in this release. If you want to do speed comparisons I'd recommend using the linked FFMS2 binary which supports both old and new VS APIs. The alpha plane is now attached to the main frame and has to be extracted with PropToClip(). https://github.com/vapoursynth/vapou...g/R55-API4-RC2 https://github.com/vapoursynth/vapou...R54-API4-test1 <- get filter binaries from this release
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 7th September 2021 at 08:53. |
24th July 2021, 13:27 | #2 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Apparently removing COMPAT stuff broke existing script previewers
Failed to convert to RGB: The VSVideoInfo structure passed by Spline16 is invalid. Couldn't create preview node for output number 0.
__________________
Me on GitHub PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070 Notebbok: Ryzen 7945HX, 32 GB RAM, RTX 4060, 17'' @ 240Hz @ 1440p |
24th July 2021, 13:34 | #3 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Anything VFW/AVFS based still works. Also, compat formats needed to die sooner or later
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th July 2021, 14:52 | #4 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
Can't test ffms2 v4 in vdub. I always get this error if click on "run video analysis pass":
Code:
An out-of-bounds memory access (access violation) occurred in module 'VirtualDub64'... ...reading address 0000000000000290. Old ffms2 is ok. Tested on Win 10 x64, Ryzen 3600 CPU. Vdub2 44282 Video source mpeg2 dvd muxxed to mkv. EDIT And it seems that old ffms2 is very slow in this build. The dvd clip went from 220fps to like 6fps after 2000 frames. 1080p avc clip starts with 8fps. Something seems not right.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 24th July 2021 at 15:00. |
24th July 2021, 15:31 | #5 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
I'll see if I can figure out the crash
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
24th July 2021, 15:54 | #6 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
24th July 2021, 16:10 | #7 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
It happens with other videos as well.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th July 2021, 17:04 | #8 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Found the bug. The binaries have been sneakily updated.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th July 2021, 18:50 | #9 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
No more crashes now
But there's still something wrong when using v3 api ffms2. It is painfully slow. 190 fps (api v4) vs 6fps (api v3) I tried multiple ffms2 versions, same low fps. CPU usage seems similar to v4. EDIT Quote:
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 24th July 2021 at 19:13. |
|
24th July 2021, 19:34 | #10 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
If relevant source filters aren't updated by the time this branch is stable and tested maybe I'll add some kind of additional workaround.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
24th July 2021, 19:49 | #11 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
My results (vdub - run analysis pass)
Code:
R54_test1: ffms2 v4 + qtgmc() = 170fps R54: ffms2 v3 + qtgmc() = 185fps More reliable results with vspipe (run 3 times each): Code:
R54 ffms2 v3 1080p source - 264.8 fps R54 ffms2 v3 + qtgmc 480p source - 182.05 fps R54_test1 ffms2 v4 1080p source - 264.3 fps R54_test1 ffms2 v4 + qtgmc 480p source - 204.12 fps
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 24th July 2021 at 20:07. |
24th July 2021, 20:28 | #12 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
Very heavy filtering test:
haf.MCTemporalDenoise + knlm.KNLMeansCL + haf.ContraSharpening + haf.FineDehalo + nnedi3_rpow2 + MfTurd + haf.FineDehalo + haf.LSFmod + f3kdb.Deband Code:
R54: 11.3 fps R54: 12.11 fps (max_cache_size = 15000) (I have 64gb ram) R54_test1: 12.5 fps
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th July 2021, 20:35 | #13 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
25th July 2021, 14:37 | #15 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
You can find mostly complete notes here: https://github.com/vapoursynth/vapou...%20changes.txt
For plain video filters it's mostly a question of renamed things and you should be able to convert just by looking at the filter samples.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 25th July 2021 at 14:43. |
25th July 2021, 19:54 | #16 | Link |
Registered User
Join Date: May 2011
Posts: 349
|
vsedit would need to be updated, it uses COMPATBGR32 for RGB conversion then using QT's QImage.Format_RGB32 to convert it to QPixmap. In Python (not C ) it uses something along like this:
Code:
img = QImage(compatbgr.get_frame(f).get_read_array(0), w, h, stride, QImage.Format_RGB32).mirrored() pix = QPixmap.fromImage(img).scaled(scale_w, scale_h, **modes) Last edited by _Al_; 25th July 2021 at 20:06. |
25th July 2021, 21:25 | #17 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
25th July 2021, 22:13 | #18 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Afaik, https://github.com/Endilll/vapoursynth-preview and https://bitbucket.org/mystery_keeper...or/src/master/ broken, both relies on Qt and Format_RGB32 (0xffRRGGBB).
__________________
Me on GitHub PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070 Notebbok: Ryzen 7945HX, 32 GB RAM, RTX 4060, 17'' @ 240Hz @ 1440p |
1st August 2021, 20:08 | #19 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Test2 is released. Has fixes for crashes that could occur with certain filters but otherwise no real changes.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
Thread Tools | Search this Thread |
Display Modes | |
|
|