Hi. Im using this script to play FULL SBS to Anaglyph:
It works great with Half SBS movies but with Full SBS it plays 3 times slower. Do I lack the necissary hardware? My CPU is at 60% when playing Full SBS with this script.Code:video2d = DirectshowSource("E:\FullSBS.mkv") c = ConvertToRGB32(video2d) w = c.width()/2 h = c.height()/2 LeftRight3DToRCAnaglyph(c).Lanczos4Resize(w, h)
I have AMD quad core 2.5 GHz and ATI Radeon HD 4850 1GB
+ Reply to Thread
Results 1 to 18 of 18
-
-
What frame size are you talking about? By the way, that script is wrong for full size SBS. Remove the Lanczos4Resize(). That may speed things up.
Last edited by jagabo; 8th Jan 2012 at 08:22.
-
If you're already using the Pantarheon Stereo3D scripts for Avisynth (which it seems you are), why not just make it easy on yourself:
Full SBS:
Code:video2d = DirectshowSource("E:\FullSBS.mkv") c = ConvertToRGB32(video2d) LeftRight3DToRCAnaglyph(c)
Half SBS:
Code:video2d = DirectshowSource("E:\FullSBS.mkv") c = ConvertToRGB32(video2d) LeftRight3DReducedToRCAnaglyph(c)
Scott -
Now I have to opposide problem. The Full SBS code you provided works great. But the Half SBS code plays 3 times slower
I do need ConvertToRGB32 otherwise the movie is on black and white -
just curious, when you mention play did you really mean encode? If you want a media player that will do what your asking (just playing) you can always try/use this free stereoscopic media player that will convert from one format to another on the fly (and does a decent job of it)
http://stereo.jpn.org/eng/stvply/index.html -
Stereoscopic player supports colorcode (different app from stereo movie player). Just choose: [Viewing Method | Anaglyph | Color Anaglyph Yellow - Blue] (or alternately, Blue - Yellow).
Avisynth does the FRAMESERVING to a separate encoder, NLE or file sink. Though you might be able to use twriteavi ().
There are other, longer scripts to convert SBS to Anaglyph, but they basically would do the same thing that the Pantarheon script listed above does. Probably not much difference in the time.
However, that big time difference you notice is on your end. Assuming a PC can handle the decoding/processing of Full vs. Half (full starts with double the filesize/bandwidth), the difference ought to be negligible.
Scott -
I am still haveing sometrouble playing full SBS to Anagylph with this code:
Code:video2d = DirectshowSource("E:\FullSBS.mkv") c = ConvertToRGB32(video2d) LeftRight3DToRCAnaglyph(c)
-
Try simplifying your script:
Code:DirectshowSource("E:\FullSBS.mkv", pixel_type="RGB32") LeftRight3DToRCAnaglyph()
-
Almost! Seems to work BUT the picture is upside down now! I tried to use FlipVertical() but then I got the speed problem again, audio out of sync and some pixelation.
-
What decoder are you using for the source? Ie, DirectShowSource() asks Windows' DirectShow to open and decompress the video. So an installed codec is decompressing the video. I would look in that codecs settings for an option to invert the image. Or switch to a different decoder.
Instead of using DirectShowSource() you can try installing the ffmpegsource plugin and using ffmpegsource2(). That way you won't be at the mercy of whatever DirectShow filters are installed on your system.
http://code.google.com/p/ffmpegsource/Last edited by jagabo; 23rd Jan 2012 at 11:47.
-
I am using Core AVC and Haali Media Splitter for all my videos in WMPC HC. ffmpegsource2() does not have pixel_type="RGB32" option or does it? Maybe I have installed it wrong. Anyway video does not open nor error is shown...
-
Yes. CoreAVC icon is displayd in system tray while playing. I do not have DXVA option but I do have "Prefer CUDA acceleratin" checkbox wich is not checked and it is disabled so I can not check/uncheck it.
Can someone explan what causes the pixelation and audio/video async when lot of movement/acion? CPU is never at 100% so what am I missing? what lack of hardware?
I used ffmpegsource2() and it still does not open anything. It even does not display any errors. WMPC HC just just saying "opening..." and nothing happens. If I close WMPC HC then it still runs in Task Manager so I have to kill it manualy.
Another tought - Is there a way to use this scrip to make completely new mkv? Is there a function like SaveToFile(). Does that mean re-encoding? -
2 thoughts:
1. Your setup is F#*KED UP. Probably have to reinstall the OS, etc.
2. AVISynth is a frame server. To actually get a FILE out of it, you need to serve it to an encoder or filesink. This has been discussed before (recently).
Yes, it will mean re-encoding.
Scott -
If I/O is the bottleneck you won't see 100 percent CPU usage.
ffmpegsource parses the file to build an index file before playing the video. That may take a while, depending on the length of the video. I would wait a minute and see if you eventually get video.
Corrupt frames usually indicates a damaged file or maybe the video uses features not supported properly by CoreAVC. -
-
Ok i gave it more time. It seems it went trough the entire file - 25GB and it took about 12 minutes and then it said that it was unable to connect to video pin and "can not render this file". The video is not corrupt, I tried this with other mkv files also and I got the same result.
Also I should mention that if I use DirectshowSource() then Haali Media Splitter and AC3 Filter icons are shown in double in taskbar. CoreAVC is not showing double. Its like DirectshowSource() is doing everything in double.
Similar Threads
-
Encoding Blu-Ray 2D Into 3D Full SBS
By x264Encoder in forum Blu-ray RippingReplies: 3Last Post: 27th Jan 2012, 11:38 -
Is it possible to convert sbs to trioviz infinicolor with avisynth?
By yoda313 in forum Video ConversionReplies: 3Last Post: 4th Dec 2011, 13:53 -
How to create a 3d anaglyph avchd using multiavchd from sbs or over/under
By yoda313 in forum User guidesReplies: 0Last Post: 26th Apr 2011, 20:21 -
3d SBS to red/cyan anaglyph
By edy_smf in forum Video ConversionReplies: 16Last Post: 4th Apr 2011, 21:19 -
Help converting Left/Right files to SBS with avisynth
By mason dixon in forum Video ConversionReplies: 7Last Post: 2nd Mar 2011, 17:05