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

Thread Tools Search this Thread Display Modes
Old 24th September 2011, 18:17   #1  |  Link
Registered User
Join Date: Sep 2011
Posts: 7
2D to 3D stereo, AVS + Displace plugin


The following packages enables you to convert 2d to 3d stereo with bidirectional pulfrich effect + add depth to stationary objects.

To make it short:

I use MVTools V2 to get positive and negative X movements, build a mask and replace current frame with previous one according the mask. This way I get bidirectional covarage for the movement.

Next, I compute motion mask, add chrominance mask and greyscalemask and get a final mask for the displace.dll plugin.
This plugin will simply shift foreground rgb according the mask luminance to the right or to the left.

I really hope someone could help to finalize this Displace.dll plugin, as it's buggy and I don't have any skills with C++.



Comments are welcome !

Attached Files
File Type: rar Displace v0.1.rar (13.9 KB, 291 views)
File Type: rar McM_2D_to_3D_v0.2.rar (3.4 KB, 292 views)
Mcmount is offline   Reply With Quote
Old 16th November 2011, 11:44   #2  |  Link
Registered User
Join Date: Sep 2011
Posts: 7
New versions of Displace-plugin and 2D>3D stereo

Here are the new versions of the tools which converts 2D video to 3D stereo video.

Depthmap is created with multiple methods; luminance, chrominance, motion and gradient mask.

As a base I've used Pulfrich method, where previous frame is layered to different eye according the movement direction. This is done with motion mask.

Next the displacement mask (depthmap) is built. Pulfrich modified frames + masks are the fed to displacement plugin and the final result is in side-by-side format.

The avs script is heavily optimized and therefore might be bit difficult to understand.

Comments are welcome !

Attached Files
File Type: rar Displace v0.2.rar (14.3 KB, 524 views)
File Type: rar McM_2D_to_3D_v0.3.rar (6.8 KB, 530 views)
Mcmount is offline   Reply With Quote
Old 18th November 2011, 08:40   #3  |  Link
Sparktank's Avatar
Join Date: Mar 2011
Posts: 940
I remember this thread.
Downloaded the first set and completely forgot about it lol.

Going to check this out.
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 8th December 2011, 13:02   #4  |  Link
Registered User
Join Date: Dec 2001
Location: UK
Posts: 17
Hiya, ive tried your script etc but all i get if i try and play the script is a grey screen .. and if i try and reencode with it, it crashes any encoder i try. any ideas? im trying to convert a 720p mkv btw
Deathman is offline   Reply With Quote

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 01:47.

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