Dehaze plug-in for SVP? Alternative method?

Len Kaufman wrote on 10/24/2016, 11:44 AM

Hi all,

Just back from a trip on the Yangtze River in China, with LOTS of extremely hazy/smoggy clips. The "dehaze" filter in Adobe PS and Lightroom works incredibly well for still photos. I tried it on a video file (mts), and it enhanced the first frame, but when you go to play the enhanced video (still in PS), it plays as the original.

I saw one post online that says to covert the video file to a TIFF. I did that, and it opened and allowed the dehaze filter to work, BUT, when it came time to play the TIFF file, it doesn't work as a video. (No surprise). Is there a way to bring the TIFF file back to something that will work in video? Better yet, is there a plug-in that will work with SVP?

Comments

Grazie wrote on 10/24/2016, 8:01 PM

Len, go to the Front End of this Forum. Use the Search box and write insert TIFF Sequence. This much to help you. BTW, great approach on the Dehaze! Had you tried increasing VP FX Contrast or any of the Compositing in VP?

Tell you what, would you post here a single "hazy" frame sample I'd like to have a go at it using the VP14 toolset. 

Len Kaufman wrote on 10/24/2016, 8:59 PM

Thank you for your response, Grazie. I've tried contrast in VP, and it does improve a bit, but quickly blows out the highlights. Adobe Dehaze has a very different algorithm and doesn't increase contrast in all area equally, which is a plus. Here is a frame grab from one of the clips. I will also post a "dehazed" frame grab, done in PS with Dehaze.

Len Kaufman wrote on 10/25/2016, 1:27 AM

Here is a "dehazed" clip, from the same series, shot minutes apart.

set wrote on 10/25/2016, 3:39 AM

This is what I can achieve: using Color Curve, Fill Light, and also NBFX ColorFast.

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

Grazie wrote on 10/25/2016, 4:04 AM

Hi Ken. Well, I've assumed you want that sequence to marry to your next sequence which is your DeHaze thing - yes? In which case here are my attempts using NewBlue's ColorFast2:

It ultilizes the advanced Masking techniques to adjust those items in the distance and then I've used a Primary CF2 to adjust the overall saturation to the Highs, Mids and Shadows.

I like the details on the Bow of the ship and those details emerging of the rocks to the right and then on the far left the little town and the lower lying cloud base. I could add a further CF2 to pop that boat in the distance.

Here is a setup I just knocked-up using two Layers and DODGE:

Here's the result:

Last changed by Grazie on 10/25/2016, 4:05 AM, changed a total of 1 times.

Grazie

PC 10 64-bit 64gb * Intel Core i9 10900X s2066 * EVGA RTX 3080 XC3 Ultra 10GB - Studio Driver 551.23 * 4x16G CorsVengLPX DDR4 2666C16 * Asus TUF X299 MK 2


Cameras: Canon XF300 + PowerShot SX60HS Bridge

fr0sty wrote on 10/25/2016, 5:46 AM

If you don't find a Vegas based solution you like, export video as TIFF, import TIFFs into Lightroom, apply dehaze to one image, select all images and sync settings (make sure the dehazed image is selected first), export all tiff images to the folder of your choice. Go back to Vegas, select the first TIFF image from the file import menu, check the "import image sequence" check box at the bottom of the file import window. This will import all of the TIFF images back into Vegas as one clip. Don't expect smooth editing from that point, unless you render to an intermediate clip, but it works. I also use LR to remove vignetting and do other types of brightness and color correction on my timelapses. I wish Vegas could do all that, plus read RAW files, then I could do all my timelapse editing in one program.

Last changed by fr0sty on 10/25/2016, 5:48 AM, changed a total of 2 times.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

Len Kaufman wrote on 10/25/2016, 7:16 AM

Thank you all for your responses. Recently, CF2 has become my "new favorite" plug. It digs into the shadows like I've never been able to do before. The result obtained with LR or PS, I feel, is more effective, and I will go back to trying that, with the additional info provided above, on how to apply it to the entire clip, and not just the first frame. A bit tedious, as I have many such clips to deal with, but perhaps a game saver.

You just can't believe the level of smog in that entire region. I don't know how people can live in that, day to day (or how long they live like that). This is not an isolated incidence of smog, but a regular part of the landscape. Nothing like breathing air you can see!

Len Kaufman wrote on 10/25/2016, 7:18 AM

If someone came up with a plugin that did all of the above, I think they could make quite a bit of money. NewBlue...are you out there?

NormanPCN wrote on 10/25/2016, 11:09 AM

One possible problem with using an per image adaptive algorithm like the Dehaze in the still image apps is pixel shimmer or crawl in a video file.

Those algorithms are adapative to the specific pixels in a given image. This is fine for stills. Only one image. In a video, each frame/image will likely get slightly different settings/adjustments due to the image adaptive nature of the algorithm. When played back in rapid sequence you can get pixel shimmering/crawling because a pixel in successive frames can be ever so slightly different. Comparing two successive stills you may not see the difference but played back in rapid succession you can easily notice such small diffs.

So generating an image sequence and then editing each frame and then recombining the video may get this shimmer result.

A video version of such an adaptive algorithm like Dehaze has to temper these frame to frame differences. Potentially very non trivial even if the base still algorithm is trivial.

Len Kaufman wrote on 10/25/2016, 11:23 AM

Good points, Norman. Perhaps if it's a scene that doesn't change too much, it won't be too noticable. For example, distant, indistinct mountains, such as in the sample I uploaded. I'll be trying it later; will let ya'all know.

Grazie wrote on 10/25/2016, 11:05 PM

Len I agree. What did you end up doing?

ALO wrote on 10/26/2016, 10:12 PM

Using Vegas' existing (pitiful) color tools, you can probably do a credible de-haze by boosting per-channel contrast.  You can stack three levels plugins, each targeting a separate color, or use the color curves and change each color in sequence.  Basically, just use your three-channel histogram in scopes and then optimize each channel (in the same way you'd do a normal levels correction) individually.  


That should help get rid of the hazy look.  Option two is to just do it in photoshop, and then export back to Vegas.

fr0sty wrote on 10/27/2016, 5:30 AM

For what it's worth, I haven't noticed any pixel crawl when using dehaze on my timelapses.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

Always Learning wrote on 10/27/2016, 9:40 AM

If you don't find a Vegas based solution you like, export video as TIFF, import TIFFs into Lightroom, apply dehaze to one image, select all images and sync settings (make sure the dehazed image is selected first), export all tiff images to the folder of your choice. Go back to Vegas, select the first TIFF image from the file import menu, check the "import image sequence" check box at the bottom of the file import window. This will import all of the TIFF images back into Vegas as one clip. Don't expect smooth editing from that point, unless you render to an intermediate clip, but it works. I also use LR to remove vignetting and do other types of brightness and color correction on my timelapses. I wish Vegas could do all that, plus read RAW files, then I could do all my timelapse editing in one program.


fr0sty - I have sent you a pm.

Len Kaufman wrote on 10/27/2016, 11:10 AM

Thank you, frOsty. I glad to have those very specific instructions, and I'll give it a try, today.

Len

Len Kaufman wrote on 10/27/2016, 2:32 PM

frOsty...When you synch settings in LR, which attributes/ items do you check in your synch? Exposure? Contrast? etc...

ALO wrote on 10/28/2016, 5:37 PM

Also, when in PS, you have to convert video clips so that PS will work with them correctly.  Import/open the clip in photoshop, go to the filters menu, then select "convert for smart filters."  Now PS will apply effects to the entire clip, not just the frame currently active.  Fair warning: when you learn to do this, you'll find it tempting to do a lot of stuff using PS's tools...

Len Kaufman wrote on 4/11/2017, 9:01 AM

I still need to do some work with the smoggy clips from the Yangtze River. The methods suggested above were too labor intensive, and also produced strange artifacts, as the vessel I was on was moving most of the time.

I see that Adobe Premiere Elements has the de-haze filter built in. I may do a trial version of Elements, process the necessary clips in there, and finish in Vegas 14. And Elements is on sale now ($69), so not much more than some plug-ins. Should wish NewBlue or someone would come up with the comparable filter for Vegas.

http://www.adobe.com/products/premiere-elements/features.html#dehaze

Marco. wrote on 4/11/2017, 9:08 AM

There is a "Defog" fx in the Tiffen DFX filter collection which works fine as OFX plug-in in Vegas Pro, but you can't buy single fx out of this collection.

Len Kaufman wrote on 4/11/2017, 9:19 AM

Thank you Marco. Which version do you have? I see a stand-alone, but would prefer to operate within Vegas 14. The description from Tiffen for DFX4 seems to imply it works with these programs (Vegas not mentioned): Tech Specs / Requirements
Host Applications
Adobe Photoshop CS5 and up
Adobe Photoshop Elements 9 and up (Non-app store version)
Adobe Photoshop Lightroom 3 and up
Apple Aperture 3 and up 

Marco. wrote on 4/11/2017, 9:24 AM

What works in Vegas Pro is "Tiffen DFX V4 OFX Standard Plug-in".

Len Kaufman wrote on 4/11/2017, 9:25 AM

OK...from a press release by Tiffen: The feature-rich Tiffen Dfx 4 upgrade also includes support for Sony Vegas NLEs as well as 12 new visual effects filters, 93 new historical photographic processes.

Marco. wrote on 4/11/2017, 9:29 AM

You could use the demo without watermark for 14 days and I think the watermarked demo mode (which overlays a grid) runs without time limit.

Len Kaufman wrote on 4/11/2017, 9:42 AM

Definitely gonna' try it this morning, Marco. Thank you again. This could be just the solution I'm looking for. It would be interesting to compare the effectiveness of the Tiffen version to the Adobe Premiere Elements version. Though the Tiffen package has so many other filters to consider. I'll shop it around to see if anyone is offering a discount on it. I was looking at the wrong version. $500 is pretty steep for me.