All times are UTC + 2 hours



Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Side by Side to anaglyph
PostPosted: 28 Oct 2010, 09:36 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
Do you have the FFDshow codec installed?

If you are not able to decode the video there is no way the script can know what is the width and height of the frame and thus cannot do the conversion, if the video can be opened but the script still can't get the right dimensions, they you can set them in the script manually.


 Profile WWW  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 28 Oct 2010, 11:06 

Joined:
28 Oct 2010, 02:07
Posts: 5
Bloody wrote:
Do you have the FFDshow codec installed?

If you are not able to decode the video there is no way the script can know what is the width and height of the frame and thus cannot do the conversion, if the video can be opened but the script still can't get the right dimensions, they you can set them in the script manually.


Well, it's installed. But the problem is the video is mkv. Maybe that's the reason I can't make the program open the video. (btw I have matroska codec, vlc can play it). Last thing I can do is to conver mkv to avi or sth else, then try it again.


 Profile  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 28 Oct 2010, 13:40 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
You can also try replacing the FFVideoSource with DirectShowSource or manually setting the videoW and VideoH to the width and height of the video frame.


 Profile WWW  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 28 Oct 2010, 14:41 

Joined:
28 Oct 2010, 02:07
Posts: 5
Now it works for both MKV and FLV files. I still can't use FF~code, but as you said, I use directshowsource. Well, it works! Great!

Also, I edited code a bit to convert over-under 3D videos to anaglyph. Here it is.

Code:
video=DirectShowSource ("overunder.avi")
audio=DirectShowSource ("overunder.avi")
video2d = AudioDub(video,audio)

video2d = ConvertToRGB32(video2d)

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

halfH = videoH / 2

f1 = Crop(video2d, 0, 0, videoW, halfH)
f2 = Crop(video2d, 0, halfH, videoW, halfH)

f1 = Lanczos4Resize(f1, videoW, videoH)
f2 = Lanczos4Resize(f2, videoW, videoH)

MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)


 Profile  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 09 Nov 2010, 18:29 

Joined:
09 Nov 2010, 18:24
Posts: 1
What should in/exclude to make this colorcode format??
Thanks in advance.


 Profile  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 09 Nov 2010, 22:13 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
For ColorCode check this topic: http://3dvision-blog.com/forum/viewtopic.php?f=7&t=399


 Profile WWW  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 20 Dec 2010, 14:59 

Joined:
20 Dec 2010, 14:48
Posts: 2
What's the better option?

Code:
f1 = Lanczos4Resize(f1, videoW, videoH)
f2 = Lanczos4Resize(f2, videoW, videoH)

MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)


or

Code:
MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)

Lanczos4Resize(videoW, videoH)


?


 Profile  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 20 Dec 2010, 16:19 
Site Admin
User avatar

Joined:
29 Apr 2010, 17:51
Posts: 3148
Location: Sofia, Bulgaria
Resizing before merging into anaglyph mode should be better in general...


 Profile WWW  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 20 Dec 2010, 17:33 

Joined:
20 Dec 2010, 14:48
Posts: 2
Ok, thanks... Thought it could save a few CPU cycles to perform the only resize.


 Profile  
 
 Post subject: Re: Side by Side to anaglyph
PostPosted: 17 Feb 2011, 22:11 

Joined:
17 Feb 2011, 22:04
Posts: 1
So this problem seems to be solved - and whats about the other way - is there a possibility to convert red/cyan to sbs? :?:
( :arrow: the next question will be about conversion from over-and-under to side-by-side)
:idea: If you have any idea - thanx in advance

LAS


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 2 hours


Who is online

Registered users: Baidu [Spider], Google [Bot], jumpjack, patallsip07, pitbeelug87


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: