![]() |
Re: How to convert anaglyph to side by side?
1 Attachment(s)
Finally i got it with DG.
http://img25.imageshack.us/img25/961/dgfinal.png Attached you will find working AnaExtract_DG.avs. |
Re: How to convert anaglyph to side by side?
This is the copy of the same thread on doom9.
Hi, after lots of work i think i'm ready to re-introduce Tony Asch's tool. This is based on Tony's "Dump Those Silly Colored 3D Glasses!" Dump Those Silly Colored 3D Glasses! How-To; Teardowns; Tutorials V-Rtifacts You will find an educational movie on the same link as well. And most of the quotes from Tony have been taken from DV Info Net forum. Tony says : Quote:
You will find detailed explanation on how to use it on given scripts. But i want to make a basic summary: Quote:
The anaglyph movie you have has to be shot as real stereoscopic. You should have a 2D copy of the same movie. (i insist it is an obligation.) The best results have been taken in case of using original anaglyph blus and DVDs. How to use: The best way is to use VirtualDubMod to change the parameter script and see immediately what has been changed. Hit F5 in the script editor to automatically save the script and reload it in VirtualDubMod, thus revealing the newly processed images. And after being sure you're ready to fully process the movie, just encode it to 264 using x264; internally or externally. I always prefer to encode it externally. Then what we need? DirectX End-User Runtime DirectShowSpy.dll Proppage.dll AviSynth VirtualDubMod AC3ACM Codec ffmpeg Haali Splitter (latest version: 03.03.2011) FfdShow GraphStudio TSMuxer MKVMerge Gui x264 (or MeGui) AnyDVD/AnyDVD HD (commercial) eac3to Video ReDo (for mpeg2 frame accurately cutting) (commercial) Video ReDo TV Suite (for mpeg2 or h264 frame accurately cutting) (commercial) Stereoscopic Player or TMT5 (commercial) (for playing resulting SBS files.) Lets start: Step by step: 1) Decrypt anaglyph BD or DVD via AnyDVD. 2) Analize decrypted DVD or BD (you may use BD Info for BDs) and find what videos are 3D or 2D. 3) Demux 2D and 3D videos with eac3to and remux to m2ts via TSMuxer. 4) Cut -if needed- to syncronize 2D and 3D videos with VideoReDo/Video ReDo TV Suite. (if the source file is VC1 cut and demux with TS Muxer and remux to mkv with MKVMerge Gui.) 5) Find the video is RC or GM. 6) Explore the 2D video is left or right. 7) Input the parameters to xx-De-Ana.avs. 8) Re-encode with x264 to SBS or TB. After decripting and analizing files, the extraction is very important. Tony says: Quote:
And i recommend you to use eac3to to demux and remux to mkv with MKV MergeGui. (if you will need to cut to synch videos, you should remux to m2ts with TSMuxer first.) After extracting non-re-encoded 2D and 3D videos you may need to make them cut if your Anaglyph source has not a matching (time synced) 2D version which is either the left or right eye view. This cutting must be frame accurately and i use Video ReDo Tv Suite for this. And after cutting we have to make sure both videos have the same frame number. The best way is to write basic scripts to check it on VirtualDubMod: Code:
DirectShowSource("C:\bloody\2D-cut.m2ts", fps=23.976, audio=false, convertfps=true) Code:
DirectShowSource("C:\bloody\3D-cut.m2ts", fps=23.976, audio=false, convertfps=true) And we should test both videos whether they were really synchronized: (I use GraphStudio to open both videos at the same time.) http://img5.imageshack.us/img5/1939/synch.png Or you may find more handy to see them as SBS on VirtualDubMod if they are 1920*1080. (just right click on the screen and select 50%.) Or just open the same script with GraphStudio. Code:
VidR = DirectShowSource("C:\bloody\test\2D.mkv", fps=23.976, audio=false, convertfps=true) Now lets have a look at our parameter avs: Step by step: Code:
# Setup our input files Code:
# Anaglyph input format, either RC or GM, i.e red/cyan or green/magenta Easy to understand: RC: http://img696.imageshack.us/img696/534/38115001.png GM: http://img829.imageshack.us/img829/676/22904237.png Code:
# Maybe we already have one eye's version in 2D already, And how do we know 2D video is right or left? Lets have a look before we decide. Perspective look: Left Angle: http://img858.imageshack.us/img858/9807/leftangle.jpg Right Angle: http://img24.imageshack.us/img24/8176/rightangle.jpg Left eye means what our left eye sees only when our right eye is closed and the reverse is true. And compare what our left or right eyes see when the video is shot as right or left angle. Hidden Stuff: Quote:
And finally the best way i found is to open both anaglyph and 2D videos at the same time with GraphStudio and to find which is matching to left or right. You may use the above script as well. OK, here are some samples: http://img842.imageshack.us/img842/6781/leftdvd.png Put your Red-Cyan glasses on and close your left and right eyes and find out what eye matches to 2D video? When your right eye is closed down, you can see both videos (as red) matches to each other, right; which means 2D is left. (have you noticed hidden stuff here?) http://img198.imageshack.us/img198/9527/001ed.png Put your Green-Magenta glasses on and close your left and right eyes and find out what eye matches to 2D video? When your left eye is closed down , you can see both videos (as magenta) matches to each other, right; which means 2d is right. (have you noticed hidden stuff here?) Resulting files just to compare: http://img193.imageshack.us/img193/9786/finaldvd.png http://img405.imageshack.us/img405/6593/rightbd.png Code:
# Swap eyes: either Yes or No Code:
# Output formatting: Code:
# Resize the output video? Either Yes or No Code:
# In case one anaglyph eye has leaked into the other Code:
# How much to blur the color information (Int or Float) Trial and error. Remember: Quote:
Code:
# Option to horizontally blur the left and right videos, Code:
# Common code to do the conversion OK, we finished to input parameters and check whether it works on VirtualDubMod. And the final stage: encoding. I prefer to encode to 264 externally via x264. I put all related files under one folder including x264.exe. A very basic encoding code: (selecting the detailed encoding parameters is up to you.) Code:
C:\bloody>x264 --fps 24000/1001 --level 4.1 --sar 1:1 -o test.264 XX-deana.avs Thanks for reading. EDIT: Test files (raw) for whom interested in: 2D.mkv 3D.mkv _ _ _ _ __ _ |
Re: How to convert anaglyph to side by side?
1 Attachment(s)
Now i'm adding a general purpose AnaExtract.avs.
You may select DirectShowSource, FFVideoSource or DGSource on xx-deana.avs. XX-DeAna.avs: DG: Code:
Code:
inputMethod = "FF" Code:
SetMemoryMax (64) Tony, please have a look at this attachment. Thanks. |
Re: How to convert anaglyph to side by side?
Hi Tony.
Anaglyph (!!!!) 3D DVD coming with Jakass 3 BD is not a real 3D shot. (at least this anaglyph is fake 3D.) Please put your green-magenta glasses on and tell me do you see any difference betwwen left and right eye? http://img51.imageshack.us/img51/8489/56250423.png Or am i missing something? Thanks. |
Re: How to convert anaglyph to side by side?
2 Attachment(s)
Much of JackAss 3D doesn't seem to be 3D, but there are parts that have some 3D. See the attached images - side-by-side and RC anaglyph. I didn't have the patience to actually watch the movie to see how much is 3D and how much is not.
|
Re: How to convert anaglyph to side by side?
Tony,
This is the first time that i can't find any differences between left and right using silly anaglyph eye-wear. Bizarre shot and i agrre i don't have patience to finish this rubbish stuff. Anyway when somebody from avsforum insisted it's not fake 3D, i seperated left and right videos using Adam's tool and the source was only anaglyph itself: AVS Forum - View Single Post - The Official AVS 3D Blu-ray Topic! And here is a close-up: http://img508.imageshack.us/img508/623/leftrightd.png _ _ _ _ |
Re: How to convert anaglyph to side by side?
Last night i tried to convert "Night of the Living Dead" anaglyph movie.
Anaglyph is "Red-Cyan": http://img571.imageshack.us/img571/415/20238943.png But this time "cyan" is on the left instead of "red". So you will find non-standard glasses besides anaglyph DVD; "Cyan" is put on the left eye and "Red" is put on the right eye. Code:
# Swap eyes: either Yes or No I bought a 2D version as well to get the best true color. So as to be sure 2D is "left" or "right", i extracted "left" and "right" videos from the anaglyph version first. Left-Right SBS: (Check out aviscript, it works:Left on the left side, right on the right side.) http://img52.imageshack.us/img52/414...hsource001.png Left only: http://img580.imageshack.us/img580/8052/lefto.png Right only: http://img269.imageshack.us/img269/3640/rightf.png OK, lets have a look at to the "2D" video. It is obviously "Left" and this is the reference view. So we should select "isMono = "monoLeft" http://img812.imageshack.us/img812/2946/2dleft.png But if we use below script we can not get stereoscopic result: http://img96.imageshack.us/img96/273...ereoscopic.png Interstingly if i select "monoRight", i get sterescopic: http://img804.imageshack.us/img804/4...ereoscopic.png Or instead if i select "GM" with "monoLeft" together, i get stereoscopic too: http://img8.imageshack.us/img8/2379/gmstereoscopic.png Tony could you have a look at that issue some time? Thanks in advance. Here are the sample videos. (2D and 3D) 2D.mkv 3D.mkv _ _ _ _ _ _ |
Re: How to convert anaglyph to side by side?
Actually, everything is correct:
isMono = "Right" inputFormat = "RC" swapAnaglyph = "Yes" The script does the swap as the very last step. The rest of the processing is done before the swap. Thus, the final left side is processed as if it were on the right. This explains why you need to declare the mono file as Right, because at the end Right is swapped with Left. Internally the script doesn't really know much about left and right, it operates purely on color filters. In this case when you say isMono="Right", what you really are saying is: "please don't bother to extract the cyan video because I already have a better version in my 2D file....and although cyan is normally a right side video, and I know you're going only process the red as if it were on the left, and then swap left and right when everything is finished.... and I understand that while you are processing the colors, right and left are reversed, so even though my mono video represents the left view, I need to process it on the right side (cyan) before reversing the left and right as the last step." Sorry to make this complicated... it's just related to the ordering of how the parameters are executed. I guess I could change the syntax to isMono="R", "C", "G", or "M" and that would make things clearer. |
Re: How to convert anaglyph to side by side?
Thanks Tony for the detailled explanation.
|
Re: How to convert anaglyph to side by side?
Quote:
|
Re: How to convert anaglyph to side by side?
Hi Tony.
Please have a look at to the post 63 and post 70. Still no response. And here is what SP does on settings: http://img228.imageshack.us/img228/8403/tonyiz.png Tony, please do us a favor. You know i'm not a coder. Thanks. |
Re: How to convert anaglyph to side by side?
We need the final avs which has been improved.
|
All times are GMT -6. The time now is 09:33 PM. |
DV Info Net -- Real Names, Real People, Real Info!
1998-2025 The Digital Video Information Network