VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. Hi. Im using this script to play FULL SBS to Anaglyph:

    Code:
    video2d = DirectshowSource("E:\FullSBS.mkv")
    c = ConvertToRGB32(video2d)
    w = c.width()/2
    h = c.height()/2
    LeftRight3DToRCAnaglyph(c).Lanczos4Resize(w, h)
    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.

    I have AMD quad core 2.5 GHz and ATI Radeon HD 4850 1GB
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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)
    and

    Half SBS:
    Code:
    video2d = DirectshowSource("E:\FullSBS.mkv")
    c = ConvertToRGB32(video2d)
    LeftRight3DReducedToRCAnaglyph(c)
    You may not even need the ConvertToRGB32 code...

    Scott
    Quote Quote  
  4. 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
    Quote Quote  
  5. 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
    Quote Quote  
  6. This player does not support ColorCode 3D format (I need that later when ColorCode 3D glasses arrive). But if one wants to convert the movie from SBS to Anaglyph with avisynth what code shall I use? Is there a funtion like Store or SaveToFile?
    Quote Quote  
  7. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  8. I am still haveing sometrouble playing full SBS to Anagylph with this code:

    Code:
    video2d = DirectshowSource("E:\FullSBS.mkv")
    c = ConvertToRGB32(video2d)
    LeftRight3DToRCAnaglyph(c)
    the movie audio gets out of snyc or cut when there is lot of movement/action. I dont get it, my CPU should handle this and its never 100% when playing. It remains in 60-70% range. Do I need to upgrady my video card?
    Quote Quote  
  9. Try simplifying your script:

    Code:
    DirectshowSource("E:\FullSBS.mkv", pixel_type="RGB32")
    LeftRight3DToRCAnaglyph()
    A faster graphics card won't help. It's not doing much of anything in this situation.
    Quote Quote  
  10. 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.
    Quote Quote  
  11. 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.
    Quote Quote  
  12. 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...
    Quote Quote  
  13. Originally Posted by BaltarWithSix View Post
    I am using Core AVC and Haali Media Splitter for all my videos in WMPC HC.
    Are you sure CoreAVC is being used? Do you get their icon in the System Tray when playing the video? Try enabling/disabling DXVA or CUDA.

    Originally Posted by BaltarWithSix View Post
    ffmpegsource2() does not have pixel_type="RGB32" option or does it?
    The argument is colorspace="RGB32".
    Quote Quote  
  14. 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?
    Quote Quote  
  15. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  16. 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.
    Quote Quote  
  17. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by BaltarWithSix View Post
    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.
    How long did you give it?
    The first time you run ffmpegsource2() on a given file, it reads through the entire file, creating an index file.
    This happens during script opening, so if it's a large file it may appear to be hung up, but should terminate eventually.
    Quote Quote  
  18. 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.
    Quote Quote  



Similar Threads

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