This has been discussed again and again on forums but there are a lot of naive users who are unable to get the conversion done. But my question is not just limited to SBS 3D to Anaglyph (Red-Cyan 3D) Conversion.
I have a 3D SBS Video(.mkv), which I generally play using KM Player and use the 3D options of the player to view it as Anaglyph (Red-Cyan 3D) video. I have a pair of glasses and this setup really works fine to watch 3D movies on my PC.
The issue is I want to watch the same videos on my TV. But my TV is not a 3D tv (Panasonic Viera Th-P42V20 with DLNA). I generally stream movies from my PC to TV using Mezzmo Media server software connected through Ethernet cable. When I tried to play the same 3D video on TV, I see the video being played side by side. I want to see the video as Anaglyph video.
Kindly please suggest me a way out for this.
1. Is it right to convert SBS 3D to Anaglyph (Red-Cyan)? Will it degrade the quality ?
2. Is there any GUI based converter to convert this video ?
> I have tried Avisynth and tried to do with it but I always filed. I wonder if did even understand the procedure.
Also tried >> I have K lite codec installed on my pc. I have opened ffdshow Video Decoder (x64) and selected Avisynth and updated this script
c = ConvertToRGB32()
w = c.width()/2
h = c.height()/2
Have done everything I could but was never able to convert the video. I tired xilisoft 3d video converter as well. But it was slow and the output was not all what I wanted.
3. What are the alternates we have for this. Is there any other way I can play the same file on my TV without a need of conversion ?
At the end I want watch the video on my non 3D TV ... be it based on conversion: 1 is the original sample.mkv (SBS) file and 2 is the conversion to Anaglyph or even without conversion.
Please suggest your ideas on this. It would be of great help.
Once I m through with this, I will be posting a tutorial on how to use/script Avisynth. Seriously, I still did not understand how to use it, may my tutorial will help others.
Thanks In Advance. Should you require more details, please let me know.
+ Reply to Thread
Results 1 to 7 of 7
So it sounds like KMplayer won't do the conversion while you're outputting to your TV? Weird...Oh, now I get it, you aren't using KMplayer for that, but Mezzmo (which doesn't do S3D conversions on-the-fly).
So, yes, you will have to Pre-Render a copy of your SbS file as R/C Anaglyph.
1. Is it Right (correct) to do it this way? For now, until your HW situation changes.
Will it degrade quality? Sure. Once for compression generational loss and once for loss of color fidelity. But in your current situation, that can't be avoided.
2. Is there a GUI available to do this? Yes, for Windows, there is Stereo Movie Maker. Not the most elegantly-written software, but thoroughly does the job. IIRC, up to v1.3 now. There are a number of other GUI possibilities, though. Just google "SBS to Anaglyph" to find more.
3. Alternatives? Within the confines of keeping & using only your current HW, there are none that I know of: you MUST convert, as there is no General Purpose DNLA-serving Media Player software that can auto-convert SbS to Anaglyph. Stereoscopic Player is the most versatile of the S3D-aware players, but it is not a DLNA server. Personally, I think you are doing yourself a disservice by avoiding getting a true 3DTV, but I understand that it's your money and you've already invested in a decent TV otherwise, so...
4. Your AVISynth Script is missing a few things ("DirectshowSource", Pantarheon AVSI linkup). Would be much better if you documented your code w/ Comments.
Whenever you have trouble with AVISynth, it will give you error messages, with the line# for the 1st offending error in the message. Always work directly in response to those messages. Probably best to post them here so they can be commented on.
Doing a google search on this site or Doom9 for "avisynth script sbs to anaglyph" will give you a number of example scripts to start from.
I would say that, if you're having this much trouble starting to USE Avisynth, you wouldn't carry much weight when providing a tute, until you have greatly improved your scripting skills.
Scott"When will the rhetorical questions end?!" - George Carlin
At the outset I want to thank you for taking time to reply to my query. I agree to what you have said... It wasnt the right decision of not choosing a 3D TV. Nevertheless I can still make use of the technology(like AVISYNTH etc) and shall try to sustain for a while
Coming to AviSynth, let me first tell you that I know coding(I code in Jquery) and its really embarrassing to say that I could not do it myself in this case. Coding is not a issue. The problem is I never understood how to use AviSynth. I somehow found a Video tutorial that explains how to used Avisynth. Before I list out the things I treid so far let me tell you I couldn't do something as simple as being able to play an AVI file using AviSource("file.avi", pixel_type="RGB32") function.
1. I have Avisynth 2.5 installed
2. virtualDubMod 18.104.22.168
I will share the other piece of code as soon as I get the basics right. I guess I m missing something very basic and if I get through that, rest will work automatically.
Also tried this.
#ASYNTHER DirectShowSource LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DirectShowSource.dll") DirectShowSource("D:\test-3d-mp4.mp4") ConvertToRGB() # extract left and right views as separate videos left=Crop(0,0,width/2,-0) right=Crop(width/2,0,width/2,-0) # merge color channels to make an anaglyph image r=ShowRed(left) g=ShowGreen(right) b=ShowBlue(right) MergeRGB(r,g,b) LanczosResize(1280,720)
Error I got
(Dammit, lost my first draft of this to an errant mouse click!)
Error#1 should be an easy fix.
It said right there in the message: Can't find the Xvid codec! Do you have that installed? Not sure? Well, here's a way to find out using a tool that you already have shown you have at your disposal: VirtualdubMod.
- Load up in Vdm a file that you already know is viewable/playable.
- Go to menuitem |Video|Compression| (aka Ctrl+P)
- Look near the end of the list: you should see "Xvid Mpeg4" listed among the codecs
If it isn't listed, download & install the Xvid codec (there are links from here).
If it IS listed, uninstall & then properly reinstall it.
That should take care of Error#1.
Note that for AVISynth to properly use a media file/stream, it must have 2 things properly installed: a "Source" filter and a Codec (one that is compatible with the source filter's API). Each source filter has its quirks and none work with all codecs. The ffmpegSource, which includes its own codecs, is probably the most all-encompassing.
Sounds to me like you've got a problem with your DirectshowSource filter (or you *.MP4 files).
Working on the filter first:
If you installed a recent copy of AVISynth correctly, you should not even need to explicitly load/link DirectshowSource, as it is a standard internal filter existing in the standard, expected plugins folder.
WAIT! Are you running Win7/8 x64? You may have some compatibility problems between bit-depth variations in code. IOW, when working in Virtualdub or AVISynth, all the code needs to be 32bit or 64bit. You cannot mix & match. This often crops up when attempting to use certain plugins (ones which only exist at one bit depth). I'm thinking that this might be a major factor in what's going on.
If the problem were non-compliant MP4 files, we could probably find out using MediaInfo readouts.
Let us know more,
<edit>I noticed on the AVISynth wiki page this documentation:
Windows 7 forces its own DirectShow filters for decoding several audio and video formats. Changing their merits or physically removing those filters doesn't help. clsid made the tool "Win7DSFilterTweaker" to change the preferred filters. However new decoders need to be added each time so it's not the perfect solution.
Last edited by Cornucopia; 27th Feb 2014 at 17:05."When will the rhetorical questions end?!" - George Carlin
You know a filter using optimized (Dubois) anaglyph method.
the advanced Dubois algorithm, which is able to reduce the ghosting effect that is possible in the conversion.
I found this link
but it is broken
I had no trouble using that link (even the link that you provided). Even downloaded the newest zip file from it.
Personally, I wouldn't put too much faith in the Dubois method. Yes, there are elements to it that lessen the crosstalk (aka Ghosting), but this comes at the expense of giving you false coloring (even as-seen through the filters). Also, it is adjusting the luminance on some elements (mainly to lessen the contrast), so there is false overall contrast as well. Good for some people (those who are FORCED to only view 3D as Anaglyph, I guess, and aren't color-conscious), but not for me.
Note that Dubios' own website gives links to other softwares that use his method: http://www.site.uottawa.ca/~edubois/anaglyph/ (beyond the AVISynth script you already referred to.
Is there ANOTHER AVISynth script out there that already uses this method? I doubt it, although you could create your own if you followed the "Least Squares" projection method as documented by his thesis.
Scott"When will the rhetorical questions end?!" - George Carlin
Latest version: AviSynth_Anaglyph_plugin_V1.0.zip (503.6 kilobytes)
Wayback Machine doesn't have that page archived.
I do not understand why?
you know another link?