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 > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th June 2022, 19:28   #1  |  Link
RGMOfficial
Registered User
 
RGMOfficial's Avatar
 
Join Date: May 2022
Location: Brazil
Posts: 38
DotCrawl++: A modernization of DotCrawlPlus, an analog video simulator.



https://github.com/rgm89git/DotCrawl...eleases/latest

A modernization of DotCrawlPlus, an filter that emulates analog artifacts.
Original by @raffriff42 (original thread)

Demos

Colorbars w/ Overscan Borders



Code:
ColorBars(pixel_type="YV12")
Amplify(0)

Spline64Resize(640,480)
AddBorders(6,0,6,0)
Spline64Resize(640,480)

sharpen(.5)
blur(1)

dcpp_preset("betacam",threads=4)
Test Charts w/ Overscan Borders (credits to belle-nuit.com)



Code:
ImageSource("testchartntsc.tif")
ConvertToYV12()

Spline64Resize(640,480)
AddBorders(6,0,6,0)
Spline64Resize(640,480)

sharpen(.5)
blur(1)

dcpp_preset("betacam",threads=4)
Requisites

Plugins needed:
Improvements
  • (Version 0.2.0 - 07/09/2022)
  • First license (GPL-3.0)
  • New HALO simulation function. Thanks again to @SaurusX. Credits to @Dogway for the LumaMask function.
  • Update to rainbow: the new rb_strength value (for altering the rainbow mask strength).
  • (Version 0.1.0 - 06/10/2022)
  • Better rainbowing, thanks to @SaurusX and @Zarxrax on Doom9.

Usage

Code:
dcpp_preset(clip C, string "preset", float "dots", float "rainbow", bool "showpreset", bool "showargs", float "threads")
@ preset - choices:
           "mild"     - minimal effect
           "medium"   - softer chroma; a little added noise
           "heavy"    - very soft & noisy
           "strong"   - like medium but more so
           "bigdot1"  - larger dots #1
           "bigdot2"  - larger dots #2
           "bigdot3"  - larger dots #3
           "betacam"  - Analog formats - Betacam
           empty string ("") defaults to "medium";
           unrecognized values raise an error.
@ dots     - dotcrawl effect amount
                (default depends on preset)
@ rainbow   - rainbow effect amount
                (default depends on preset)
@ rb_strength  - rainbow effect mask strength
                (default 17)
@ cblur    - chroma blur amount
                (default depends on preset)
@ lblur    - luma blur amount
                (default depends on preset)
@ showpreset - if true, show the preset name as a Subtitle
                (default false)
@ showargs  - if true, show the arguments as a Subtitle
                (default false)
@ threads   - cpu threads you want to use
                (default 4)

dotcrawlplusplus(clip C, int "dotstyle", float "dotblend", float "dotscale", int "dotleak", int "csub", float "cblur", float "lblur", int "lnoise", int "cnoise", float "streaking", float "rainbow", bool "showargs", float "threads")
@ dotstyle  - dots style (0..2; default 0)
@ dotblend  - dots opacity (default 1.0)
@ dotscale  - scale of dot crawl (1..4; default 1; >2 is ugly)
@ dotleak   - allow some dot crawl everywhere 
                (0-255; default 0; 32 is just visble; >64 is extreme)
@ csub      - default 2 (1=betacam; 2=VHS)
@ cblur     - default 0.3 (0.0=no added blur; 0.5=VHS)
@ lblur     - default 0.3
@ lnoise    - default 4 (0=bypass; 2=subliminal; 22-33=VHS)
@ cnoise    - default 4 (0=bypass; 2=subliminal; 33=VHS)
@ streaking - default 0.0 (1.0=extreme horizontal streaking)
@ rainbow   - rainbow effect opacity (default 0.2)
@ rb_strength - rainbow effect mask strength (default 17)
@ showargs  - if true, show the arguments as a Subtitle
@ threads   - cpu threads you want to use (default 4)

dcpp_halo(clip C, float "bright_halo", float "dark_halo")
@ bright_halo - bright halo intensity (default 0.4)
@ dark_halo   - dark halo intensity (default 0.5)
Any feedback and user contributions is greatly appreciated.

From the original script's thread:

Quote:
Inspired by recently reading the Avisynth gone wrong thread here, and spurred on by a question on another forum (Betacam/betacam Sp Effect For Virtualdub?), I give you dotcrawlplus, an Avisynth dot crawl effect. For convenience, it can blur the chroma and add noise at the same time. There's a wrapper function with a few named presets, or you can set all the options directly.

It's not terribly elegant. I'm sure the effect could be refined. It's intended for use as a quick special effect for a music video or whatnot; it's not a very good composite video emulator. You are not going to fool an expert with it. (I suggest a hardware solution for a perfect emulation)
Source Code

Last edited by RGMOfficial; 9th July 2022 at 19:18. Reason: Add other changes, just forgot
RGMOfficial is offline   Reply With Quote
Reply

Tags
analog, dot crawl, rainbow, simulation

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 04:23.


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