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 11th September 2023, 18:58   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Things missing in Vapoursynth,....

Here are a few things I miss in Vapoursynth:
  • RemoveDirt port where RestoreMotionBlocks works (without this, a bunch of script using RemoveDirt can't really be ported); seems to work for some resolutions mods (https://forum.doom9.org/showthread.php?t=185121)
  • DeSpot filter (lostfuncs DeSpot simple isn't the same and lacks tons of options)
  • sRestore port as a filter (since the script doesn't work as intended, unless you limit the thread count of Vapoursynth to 1 )
  • AnimeIVTC port
  • ColorYUV, SmoothTweak, SmoothCurve, AutoAdjust, HDRAGC port
  • amDCT port
  • Waveform filter to see audio wave
  • Exblend port
  • An option to disable autoloading for a script.
  • Waveform port
  • TDecimate which works with mode=2 (https://github.com/dubhater/vapoursynth-tivtc/issues/4)
  • InpaintDelogo port


Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum

Last edited by Selur; 21st August 2024 at 15:46.
Selur is offline   Reply With Quote
Old 11th September 2023, 22:10   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,822
Cdeblend suffers from the same problem as srestore (linear cache)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 11th September 2023 at 22:12.
ChaosKing is offline   Reply With Quote
Old 23rd October 2023, 17:49   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Added DeScratch which I really like.
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 23rd October 2023, 18:24   #4  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Quote:
Originally Posted by Selur View Post
Added DeScratch which I really like.
Is this the most recent version of the source code? Should be a quick port
http://www.avisynth.nl/index.php/DeScratch
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 23rd October 2023, 18:30   #5  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
I think so, at least that is the latest version I know of.
A port would be nice.

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 24th October 2023, 15:34   #6  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Quote:
Originally Posted by Selur View Post
I think so, at least that is the latest version I know of.
A port would be nice.

Cu Selur
Would you happen to have a small test clip and some reasonable settings so I can verify that my port works?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 24th October 2023, 18:00   #7  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Not so small clip example: https://forum.videohelp.com/threads/...if-possible%29
usually, I takes multiple calls:
Code:
f = f.DeScratch(maxgap=5,minlen=30,maxangle=55)
f = f.DeScratch(maxgap=25,minlen=25,maxangle=30)
to remove static scratches, but it's really helpful with scratches in old captures.
(+ you often use it scene by scene)

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 24th October 2023, 21:22   #8  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Please test and report your findings before I make a proper release. See it as the one true successor fork since I support both avs and vs and cleaned up the code quite a bit.
https://github.com/vapoursynth/descr...ases/tag/Test1
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 25th October 2023, 00:01   #9  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,614
Thanks, DeScratch appears to work ok (same results as v1.1.0 avs version). Is it possible to support other pixel formats than YV12 ?
poisondeathray is offline   Reply With Quote
Old 25th October 2023, 04:24   #10  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Will do some test later today and report back.
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 25th October 2023, 13:12   #11  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Quote:
Originally Posted by poisondeathray View Post
Thanks, DeScratch appears to work ok (same results as v1.1.0 avs version). Is it possible to support other pixel formats than YV12 ?
Sure, YV16 and YV24 added and appear to work since the planes are separately processed anyway.

Higher bitdepths is probably just a waste of time anyway. It's also somewhat annoying since the code mixes up row size and width.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 25th October 2023, 16:52   #12  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Works fine here too. YV16 and YV24 would be nice. I agree, high bit depth should not be really needed since I have never used this on anything but old tape scans or similar.
Thanks for porting this!

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 25th October 2023, 22:23   #13  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Quote:
Originally Posted by Selur View Post
Works fine here too. YV16 and YV24 would be nice. I agree, high bit depth should not be really needed since I have never used this on anything but old tape scans or similar.
Thanks for porting this!

Cu Selur
First and probably only release is up. Would be great if someone edits the avisynth wiki so more people can find it.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 26th October 2023, 00:00   #14  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,675
Quote:
Originally Posted by Myrsloik View Post
First and probably only release is up. Would be great if someone edits the avisynth wiki so more people can find it.
Will do. Thanks for the update!
Reel.Deel is offline   Reply With Quote
Old 26th October 2023, 08:38   #15  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
This is the most recent source and the correct despot version?
http://avisynth.nl/index.php/DeSpot

Looks like YV24 support and YV16 is easily doable as improvement (only has the ancient YUY2 planar hack and nobody likes that).
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 26th October 2023, 14:53   #16  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Yes, v3.6.3.1 is the latest version.
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 6th December 2023, 21:16   #17  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
@myrsloik: seeing that you started to do a proper port of Despot over at https://github.com/vapoursynth/despot I just wanted to know if there is hope for a release?
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 6th December 2023, 21:39   #18  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,606
Quote:
Originally Posted by Selur View Post
@myrsloik: seeing that you started to do a proper port of Despot over at https://github.com/vapoursynth/despot I just wanted to know if there is hope for a release?
My time ran out before I could add VS support. At the moment it's just a cleaned up avs+ version if you bother to compile it.

The main problem is that the code uses convoluted ways to avoid memory allocation and is by modern standards quite insane. Except in some modes where it forgets all about it and allocates like crazy. Maybe I'll have time to poke it again in a few weeks. Code archeology at its finest...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 7th December 2023, 05:48   #19  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,583
Thanks for the info!
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 25th April 2024, 07:08   #20  |  Link
juanitogan
Long-time Reader
 
juanitogan's Avatar
 
Join Date: Jan 2017
Location: New Mexico
Posts: 15
Quote:
Originally Posted by Myrsloik View Post
Please test and report your findings before I make a proper release. See it as the one true successor fork since I support both avs and vs and cleaned up the code quite a bit.
https://github.com/vapoursynth/descr...ases/tag/Test1
Has anyone completed filtering a full-length HD film with DeScratch V2.0 in VS?

I've tried several times with Hybrid and it keeps failing after a few minutes. Never on the same frame. Have tried two different films with the same results. The older AS version of this filter in Hybrid works fine on the same content.

To me, it looks like a memory leak. I start the job with about 5GB of mem full, out of 12GB. It creeps up to 12GB, bounces around up there for a few minutes, until, presumably, DeScratch steals it all and crashes. It encodes about 2-3 minutes of HD material before it quits. I can get it to go a bit longer if I turn off Hybrid's built-in feature and add DeScratch as a custom command with YUV422P8 color instead of YUV444P8. And another bit longer with YUV420P8.

Another observation is that this new VS version of DeScratch is better at avoiding false positives between the characters in overlay text (or the text itself), versus the AS version (with the same settings, of course). With the AS version, I have to set the minlen 2 or 3 times taller than the text (red text, btw). This version simply ignores the text regardless of how low I set minlen. I had a hunch this was due to YUV444P8 and, sure enough, when I set it to YUV420P8, the VS version runs just like the AS version on this front. Thus, it would be extra nice to run on YUV444P8, assuming that's not a glitch.
juanitogan is offline   Reply With Quote
Reply

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 11:33.


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