VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Hi there! I hope I posted in the correct section,,

    I have a 720p avi file that's in 3d and I want to convert it into 2d in the same size and format. I did some research but all I see are avisynth scripts that convert 2d to 3d and not the other way around. I have no idea what kind of 3d format the video is (i.e stereoscopic..etc) but it's in regular blue and red if that counts.

    Is there anyone here who capable of making an avisynth script for me? I have Megui installed too if that helps.
    Thanks in advance!!
    Quote Quote  
  2. Filter out either the red (left) or blue (right) image.

    WhateverSource()
    ConvertToRGB() #if necessary
    ShowRed() #left eye view
    or

    WhateverSource()
    ConvertToRGB() #if necessary
    ShowBlue() #right eye view
    If the image is red/cyan you can also use green:

    WhateverSource()
    ConvertToRGB() #if necessary
    ShowGreen() #right eye view
    Quote Quote  
  3. ^Thanks for the quick reply! I seriously have no experience using avisynth scripts. How should I modify this?
    Quote Quote  
  4. Most video editors will let you do RGB adjusments. Just turn the color(s) you don't want all the way down, then use a grayscale filter to convert the remaining color to grayscale. You may need to adjust the brightness afterward.

    In VirtualDub you can use Donald Graft's RGB Adjust filter. For example, to keep the red channel (left eye view) turn Green and Blue down to 0. Then apply the Grayscale filter. Red to Grayscale is pretty dark so apply the Brightness/Contrast filter to brighten up the picture again.

    If you want to use AviSynth... install AviSynth. Then create a text file (in the same folder as your AVI file) with .AVS as the extension (Use Notepad and "Save As" for example) Paste the following text into the script:

    AviSource("filename.avi") #replace filename.avi with the name of your avi file.
    ConvertToRGB() #if necessary
    ShowRed() #left eye view
    Then open that AVS script in your editor or media player as if it was a video.

    http://avisynth.org/mediawiki/Main_Page#New_to_AviSynth_-_start_here
    Last edited by jagabo; 1st Mar 2011 at 10:28.
    Quote Quote  
  5. Thanks for the explanation~ I really appreciate the help,,

    The script works nicely but would there be anyway for me to keep the colors from the video (i.e. not turn it Grayscale)? And is that even possible with converting 3d to 2d videos?

    I also noticed that even with the script, I could still see traces of the other channel in it. Would there be any possible ways to remove that or is that somehow like part of the video itself already?
    Quote Quote  
  6. Originally Posted by evile1690 View Post
    The script works nicely but would there be anyway for me to keep the colors from the video (i.e. not turn it Grayscale)?
    You mean keep the red channel as red? That's possible. You can use RGBAdjust() to zero out the colors you don't want -- eg RGBAdjust(g=-255, b=-255). Or are you looking for a full color video from an anaglyph? That's not really possible.

    If you have a color anaglyph (where the left channel is the original color image minus green and blue, and the right channel is the original color image minus red) you can keep both green and blue from the right channel (ie, RGBAdjust(r=-255)). There may be some way of writing a script which analyzes both channels and retains all colors where the two images match exactly. Or even a more sophisticated script that analyzes the depth of each object then uses the colors from both images on each object. Even that won't always work on moving objects.

    Originally Posted by evile1690 View Post
    I also noticed that even with the script, I could still see traces of the other channel in it. Would there be any possible ways to remove that or is that somehow like part of the video itself already?
    There's probably some bleeding of colors due to compression artifacts. Or possibly the original video didn't have good separation. You could try using the other color channels: ShowGreen() or ShowBlue() intead of ShowRed(). They might be "cleaner".
    Last edited by jagabo; 1st Mar 2011 at 11:49.
    Quote Quote  
  7. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    There's no real way for this to be done exactly, since the information is lost for good. However, you could try an app or script called, "De-Anaglyph". IIRC, it takes the Cyan stream (usually the Right eye-view) and makes guesses about the missing Red channel from luminance levels on the Red stream vs. pixel placement on the Cyan's Green & Blue channels.
    Still, it won't be perfect. The output will be 2 separate full-color streams/files.
    The best results have been done taking the anaglyph plus a full-color 2D version in order to get the 2 full-color views. But if you could do that, you'd already have a 2D version and wouldn't need this help!

    Scott
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!