Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
A 50's Tv Effect, achieving that "black halo" look
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Kenneth Kinsey
Posted: Jan 15 2014, 09:15 PM


Newbie


Group: Members
Posts: 1
Member No.: 37652
Joined: 15-January 14



Hello,

I'm trying to get an image-orthicon effect on a clip, but not having much success. In fact, no success. In other platforms, you can achieve it by turning up the brightness slightly, cutting down the contrast by half, and applying unsharp masking at full saturation; in VirtualDub, that procedure causes a crash. Is there a easier way? A better way? Or is there no way?
 
     Top
raffriff42
Posted: Jan 15 2014, 09:54 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Unsharp is banished from my Plugins32 folder because it crashed so often. Here are some possible (untested) workarounds:
1. Prior to Unsharp, crop the frame to "mod16" (height & width evenly divisible by 16)
(most easily done with resize filter)
2. Try converting to YV12 (4:2:0) if it's not already
3. Try converting to RGB...
4. Use half-size unsharp radius on half-size image (for the same apparent unsharp radius)
5. Remove any unused filters from Plugins32.

This post has been edited by raffriff42 on Jan 16 2014, 09:01 AM
 
     Top
raffriff42
Posted: Jan 16 2014, 02:33 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



The Kagayaki filter can be tuned to create nice blooming highlights, but I don't know if this can be made to work for you.


Avisynth can certainly do a halo effect; the demo script below will need refining, as I'm not sure of the look you are going for:
CODE
AviSource("path\to\your\video.avi")
ConvertToYV12(matrix="PC.709", chromaresample="spline16")
NonlinUSM(str=1.0, rad=16.0)
Tweak(sat=0.5)

##################################
### enhance contrast - like unsharp
## by Didée
## http://forum.doom9.org/showthread.php?p=1555234#post1555234
## REQUIRES MASKTOOLS: http://manao4.free.fr/mt_masktools.html
##
function NonlinUSM(clip o, float "z", float "pow", float "str",
\                 float "rad", float "ldmp", bool "debug")
{
   z     = Float(Default(z,   6.0))    ## zero point
   pow   = Float(Default(pow, 1.6))    ## power
   str   = Float(Default(str, 0.7))    ## strength
   rad   = Float(Default(rad, 9.0))    ## radius for "gauss"
   ldmp  = Float(Default(ldmp, 0.001)) ## damping for very small differences
   debug = Default(debug, false)

   g = o.BicubicResize(Round(o.Width / rad / 4) * 4, Round(o.Height / rad / 4) * 4)
   \    .BicubicResize(o.Width, o.Height, 1, 0)

   mt_lutxy(o, g, "x x y - abs " + String(z) + " / 1 " + String(pow) +
   \               " / ^ " + String(z) + " * " + String(str) +
   \              " * x y - 2 ^ x y - 2 ^ " + String(ldmp) +
   \              " + / * x y - x y - abs 0.001 + / * +",
   \       U=2, V=2)

   Overlay(o, Last, opacity=str)
   (debug) ? Interleave(o, Last) : Nop
   ## just for visualisation (step mode), you don't want the function to do this
   return Last
}
 
     Top
dloneranger
Posted: Jan 18 2014, 03:59 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Bit of a late addition

If that's the unsharp filter from http://neuron2.net/unsharp/unsharp.html
Then the 1.3 version seems to work fine
(looking at the sources, I can't see how the 'optimized' version could NOT crash - it's awful coding)

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
dloneranger
Posted: Jan 20 2014, 07:54 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



If anyone's interested, I fixed UnSharp and gave it a 50% speedup from v1.3
https://dl.dropboxusercontent.com/u/1702491.../UnSharp13a.zip


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
raffriff42
Posted: Jan 20 2014, 10:47 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Thanks for looking at this. Unfortunately I ran into a problem:
- Win XP
- download UnSharp13a.zip, copy Unsharp.vdf to Plugins32
- open Vdub 1.10.4
- don't see Unsharp in Add filter dialog
- attempt to Load manually; got Virtualdub error and the following log output:
CODE
[!] Plugins: Failed to load "C:\Program
   Files\VirtualDub\VirtualDub_1-10-04\plugins32\Unsharp.vdf": Cannot load
   plugin module "C:\Program
   Files\VirtualDub\VirtualDub_1-10-04\plugins32\Unsharp.vdf": The specified
   module could not be found.

[E] Error: Cannot load plugin module "C:\Program
   Files\VirtualDub\VirtualDub_1-10-04\plugins32\Unsharp.vdf": The specified
   module could not be found.

 
     Top
dloneranger
Posted: Jan 20 2014, 11:00 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Ach that's VS2013 not compiling for xp by default, I know there's a setting in there somewhere and I'll try and find it

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
dloneranger
Posted: Jan 20 2014, 11:06 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



OK, it's Platform Toolset

Try https://dl.dropboxusercontent.com/u/1702491.../UnSharp13a.zip

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
raffriff42
Posted: Jan 21 2014, 01:00 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Trying again in a fresh VM, I get the error message "MSVCR120.dll was not found..." Okay, which runtime do I need?
 
     Top
dloneranger
Posted: Jan 21 2014, 01:48 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



VS 2013 c++ runtimes from http://www.microsoft.com/en-gb/download/de...s.aspx?id=40784
But you don't need to, I just had to change an option
Can you tell I'm still getting to grips with vs2013? sad.gif

It's getting to be a pain migrating from old files, you have to convert them using a few previous versions of VS and the settings don't always stay the same when you do
Doesn't help that I'm not a real programmer, my language of choice is Delphi and I hate c++ with a passion


(lets hope this one works...)
Same link as before
https://dl.dropboxusercontent.com/u/1702491.../UnSharp13a.zip

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
raffriff42
Posted: Jan 21 2014, 01:56 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



user posted image Works great!

(I feel your pain)
 
     Top
dloneranger
Posted: Jan 21 2014, 01:59 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Phew, thank gawd for that, beginning to think I'd never get it right
wink.gif

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
11 replies since Jan 15 2014, 09:15 PM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing