All times are UTC + 2 hours



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: My contribution
PostPosted: 21 Apr 2012, 02:30 

Joined:
21 Apr 2012, 02:25
Posts: 6
It has been a lot of days reading reading and reading from a lot of sites about colorcode3d

Finally, i think i have an algorith its very same of colorcode3d ...

This is ...
I take a sample side by side movie (LionKing), and then pass with an avs file (avisynth) by MeGuii
Please give a try and if you think it can be more accurated, please say me ...


Code:
video2d = DirectShowSource("ERLS.mkv")

video2d.AssumeFPS(24000,1001)

video2d = ConvertToRGB(video2d)

videoW = width(video2d)
videoH = height(video2d)

mitadW = videoW / 2

left = Crop(video2d, 0, 0, mitadW, -0)
left = Lanczos4Resize(left, 1920, 1080)

right = Crop(video2d, mitadW, 0, mitadW, -0)
right = ConvertToYV12(right)
right= Tweak(right, hue=0, sat=1, bright=16.5, cont=1.2, coring=false)
right = Tweak(right, sat=0)
right = ConvertToRGB(right)
right = RGBAdjust(right, 0.15, 0.15, 0.7)
right = Lanczos4Resize(right, 1920, 1080)

MergeRGB(left.ShowRed, left.ShowGreen, right)

ConvertToYV12()


 Profile  
 
 Post subject: Re: My contribution
PostPosted: 22 Apr 2012, 20:02 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
Thanks for sharing this Avisynth script.

So this is for converting a Side by Side 3D Video to ColorCode compatible anaglyph format.

It will work with 16:9 widescreen SbS videos in either full frame or squashed frame format and output 1080p for viewing with ColorCode glasses.


 Profile WWW  
 
 Post subject: Re: My contribution
PostPosted: 22 Apr 2012, 20:35 

Joined:
21 Apr 2012, 02:25
Posts: 6
Bloody wrote:
Thanks for sharing this Avisynth script.

So this is for converting a Side by Side 3D Video to ColorCode compatible anaglyph format.

It will work with 16:9 widescreen SbS videos in either full frame or squashed frame format and output 1080p for viewing with ColorCode glasses.



I think so.
I am been reading for a lot of sources and i have founded that this code is good to colorcode glasses.
I think maybe it could be improved ... So I share with you to get a better code.


 Profile  
 
 Post subject: Re: My contribution
PostPosted: 23 Apr 2012, 20:23 

Joined:
21 Apr 2012, 02:25
Posts: 6
jlopezvl wrote:
It has been a lot of days reading reading and reading from a lot of sites about colorcode3d

Finally, i think i have an algorith its very same of colorcode3d ...

This is ...
I take a sample side by side movie (LionKing), and then pass with an avs file (avisynth) by MeGuii
Please give a try and if you think it can be more accurated, please say me ...


Code:
video2d = DirectShowSource("ERLS.mkv")

video2d.AssumeFPS(24000,1001)

video2d = ConvertToRGB(video2d)

videoW = width(video2d)
videoH = height(video2d)

mitadW = videoW / 2

left = Crop(video2d, 0, 0, mitadW, -0)
left = Lanczos4Resize(left, 1920, 1080)

right = Crop(video2d, mitadW, 0, mitadW, -0)
right = ConvertToYV12(right)
right= Tweak(right, hue=0, sat=1, bright=16.5, cont=1.2, coring=false)
right = Tweak(right, sat=0)
right = ConvertToRGB(right)
right = RGBAdjust(right, 0.15, 0.15, 0.7)
right = Lanczos4Resize(right, 1920, 1080)

MergeRGB(left.ShowRed, left.ShowGreen, right)

ConvertToYV12()





Hello. With the code shown im getting a 4-6 FPS conversion speed.
I think it could be faster but i dont know how can speed it. Its slower by calling RGBMerge and COnverts a lot ...

It will be possible do it faster?


 Profile  
 
 Post subject: Re: My contribution
PostPosted: 25 Apr 2012, 23:13 

Joined:
21 Apr 2012, 02:25
Posts: 6
Enhaced Code :

video2d = DirectShowSource("ERLS.mkv")
video2d.AssumeFPS(24000,1001)

video2d = ConvertToRGB(video2d)

videoW = width(video2d)
videoH = height(video2d)

mitadW = videoW / 2

izquierda = Crop(video2d, 0, 0, mitadW, -0)
izquierda=Lanczos4Resize(izquierda, 1920, 1080)

derecha = Crop(video2d, mitadW, 0, mitadW, -0)
derecha = ConvertToYV24(derecha)
derecha = Tweak(derecha, sat=0)
derecha = ConvertToRGB(derecha)
#Official ColorCode3d right rgb settings
#derecha = RGBAdjust(derecha, 0.15, 0.15, 0.7)
#Optoma adapted rgb settings
derecha = RGBAdjust(derecha, 0.144, 0.144, 0.5)

derecha = Lanczos4Resize(derecha, 1920, 1080)

MergeRGB(izquierda.ShowRed, izquierda.ShowGreen, derecha)

ConvertToYV24()


 Profile  
 
 Post subject: Re: My contribution
PostPosted: 25 Apr 2012, 23:15 

Joined:
21 Apr 2012, 02:25
Posts: 6
And same code using neuros2 dgenc


#64 bits
LoadPlugin("E:\jdownloader\downloads\3D\dgdecnv2042\x64 binaries\DGDecodeNV.dll")

#32 bits
#LoadPlugin("E:\jdownloader\downloads\3D\dgdecnv2042\DGDecodeNV.dll")

videoW = 1920
videoH = 1080
fichero = "File.dgi"

videoLeft = DGSource(fichero, i420=false, crop_r=videoW/2, resize_w=videoW, resize_h=videoH).ConvertToRGB()

videoRight = DGSource(fichero, i420=false, crop_l=videoW/2, resize_w=videoW, resize_h=videoH)

videoRight = Tweak(videoRight, sat=0)
videoRight = ConvertToRGB(videoRight)
#ColorCode3d official rgb settings
#videoRight = RGBAdjust(videoRight, 0.15, 0.15, 0.7)
#Optoma rgb settings
videoRight = RGBAdjust(videoRight, 0.144, 0.144, 0.5)

videofinal = MergeRGB(videoLeft.ShowRed, videoLeft.ShowGreen, videoRight)
ConvertToYV12(videofinal)


 Profile  
 
 Post subject: Re: My contribution
PostPosted: 26 Apr 2012, 09:47 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
What sis the performance increase you get with the new code?

You can try using Avisynth MT as well: http://avisynth.org/mediawiki/MT


 Profile WWW  
 
 Post subject: Re: My contribution
PostPosted: 26 Apr 2012, 11:11 

Joined:
21 Apr 2012, 02:25
Posts: 6
Bloody wrote:
What sis the performance increase you get with the new code?

You can try using Avisynth MT as well: http://avisynth.org/mediawiki/MT



New DirectShow code only increases in 1 FPS

Neuron2 DgEnc code (second one), increases over double the FPS speed.

DirectShows code it takes over 6 FPS and Neurons its over 11.5-12 FPS


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 2 hours


Who is online

Registered users: Bing [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: