VideoHelp Forum




+ Reply to Thread
Results 1 to 28 of 28
  1. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    I have a strange purple color appearing in a black and white encode







    import("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\AudioFunctions.avs")
    import("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\ VideoFunctions.avs")
    loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\apps\DGMPGDec\DGDecode.dll")
    loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\ba ss\bassAudio.dll")
    loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\TI VTC.dll")

    video = MPEG2Source("D:\mchals navy\202\202.d2v",cpu=0,info=3)
    audio = bassAudioSource("D:\mchals navy\202\202 T80 2_0ch 192Kbps DELAY 0ms.mp3")
    AudioDub(video, audio)

    AutoYV12()
    TFM(order=1).TDecimate(hybrid=1)

    #plugin_files
    LoadVirtualDubPlugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\MS UDenoiser.vdf", "Denoiser", 0)
    ConvertToRGB32()
    Denoiser (50, "20.0")
    ConvertToYV12()

    Crop(6, 0, -10, -0)
    Lanczos4Resize(640, 480)


    Is there a option I could use to have it not do that?
    Quote Quote  
  2. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    Should that be in place of the AutoYV12()?
    Quote Quote  
  3. AutoYV12() simply converts to YV12 if the video isn't already YV12. Mpeg2Source() is probably delivering YV12 so you probably don't need AutoYV12().

    Unless those color splotches are in your source the only filter I see that might be causing them is MSU Denoiser.

    If you put Grayscale() at the end of the script you'll guaranty that the output from AviSynth will be grayscale. But you can put it anywhere after the splotches show up.
    Quote Quote  
  4. It's:

    Greyscale()#with an 'e'

    or:

    Tweak(Sat=0,Coring=False)
    Quote Quote  
  5. funny i just did an encode of a B&W video yesterday.PaintShop worked wonderfully on it i used a Saturation mask with Sat= -100% & then i've chosen the saturation (inherited) mode.It turned out the result was better than the greyscale filter of virtualdub. Avisynth might provide similar result though

    with paintshop (or photoshop):
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  6. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    No I checked the source and there is no color. So it must have been MSU.
    I'm trying FFT3d right now and see if I get a better result.

    I have Neat Video but that thing takes way too long and even with a Q4 setting it makes a 350MB avi.


    the master
    funny i just did an encode of a B&W video yesterday.PaintShop worked wonderfully on it i used a Saturation mask with Sat= -100% & then i've chosen the saturation (inherited) mode.It turned out the result was better than the greyscale filter of virtualdub. Avisynth might provide similar result though
    Paint and Photo Shop can do video? Or maybe I'm reading that wrong.

    Thank You all for the help
    Quote Quote  
  7. Yes it can if you save your video as an image sequence first(with virtualmpeg2 for instance), i use it frequently. Photoshop cs4 can even load a whole image sequence and put it on timeline
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  8. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    Huh gonna have to look into that.
    What should the images be saved as would be the first question?
    Quote Quote  
  9. Originally Posted by themaster1
    with paintshop (or photoshop):
    That's nowhere near gray. There's something wrong with your monitor -- or your eyes.


    Quote Quote  
  10. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    Not with his photo but the 1st one there is


    whoops!! I looked at the photo with a different monitor and it went bye bye.
    I was thinking maybe it was mee for a second there
    Quote Quote  
  11. Why would you convert your video to images and use Paintshop when you can just add GreyScale() to your AviSynth script?

    It looks like your video needs some levels adjustments too.
    Quote Quote  
  12. @ craigarta
    You have to save it as .bmp (24bits) (big file)
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  13. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    FWIW, composite NTSC and PAL signaled B&W by shutting off the subcarrier burst on the back porch of horizontal sync.

    TV sets interpreted this as monochrome and ignored subcarrier modulation even if the subcarrier was present.

    I know, analog is a lost art.
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  14. Original image, trimmed, plus:
    Code:
    GreyScale()
    Levels(40,1,200,0,255)


    You need to adjust the Levels() parameters based on a larger sample of the video. But I think this is much closer to correct.
    Quote Quote  
  15. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    OK I played with it a bit and this what I got



    Quote Quote  
  16. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by manono
    It's:

    Greyscale()#with an 'e'
    Actually, you can use either "Greyscale" or "Grayscale" - they are both treated the same by Avisynth.
    (though only Greyscale appears in the documentation).
    Quote Quote  
  17. Then maybe my AviSynth is old because Grayscale() isn't accepted.
    Quote Quote  
  18. Both GrayScale() and GreyScale() work for me. V. 2.58 tsp MT version 5 (mod seraphy), build: July 12 2009.
    Quote Quote  
  19. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by manono
    Then maybe my AviSynth is old because Grayscale() isn't accepted.
    Looking at the source code, Grayscale seems to have been added between v2.57 and v2.58 as an (undocumented) alternative to Greyscale.
    Quote Quote  
  20. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    Well I have admidt that the Grayscale adjustments make a huge difference. They look funny a LCD monitor, but look excellent on a CRT TV.

    Go figure, well it makes sense old film stock always has looked better to me on a CRT.

    Now to see what they look like on this bad boy.


    Guess I'm gonna be cold on the 27th
    Quote Quote  
  21. Originally Posted by craigarta
    Well I have admidt that the Grayscale adjustments make a huge difference. They look funny a LCD monitor, but look excellent on a CRT TV.
    Your graphics card or monitor may need some adjustments.
    Quote Quote  
  22. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    All right I think I got down.

    Thanks to all for the help.

    vlcsnap-2009-11-15-16h21m43s173.png
    Quote Quote  
  23. It's nice and gray now. I did see (with an RGB tool) a few pixels here and there that weren't perfectly gray. You have a bit too much contrast now but you're getting the idea.

    By the way are you sharpening the video or are those oversharpening artifacts in the source? All the sharp edges have halos.
    Quote Quote  
  24. Member craigarta's Avatar
    Join Date
    Jun 2001
    Location
    Cascade Mountains
    Search Comp PM
    I was using the MSU Denoiser I also relized that I had XVID4PSP's Brightness set to MPEG2Fix

    I'm new to the avisyth thing so what exactly does theis mean
    GreyScale() I know this part
    Levels(40,1,200,0,255) <--- I haven't found info on what these mean

    Here is a clip from the source itself

    Quote Quote  
  25. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by craigarta
    Levels(40,1,200,0,255) <--- I haven't found info on what these mean
    http://avisynth.org/mediawiki/Levels
    Quote Quote  
  26. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by craigarta
    I'm new to the avisyth thing so what exactly does theis mean
    GreyScale() I know this part
    Levels(40,1,200,0,255) <--- I haven't found info on what these mean
    If you're not using AvsP, get it now.
    It creates slide controls for this and most other Avisynth functions (and you can add your own) and shows you the result as you adjust them.

    You might also look at the Tweak() function.

    And as Gavino wrote, everything is explained in the Avisynth wiki.
    Quote Quote  
  27. http://avisynth.org/mediawiki/Levels

    Basically, Levels(40,1,200, 0,255) says to stretch the brightness from the range 40-200 in the input video (source), to 0 to 255 in the output video. Darker shades get darker, brighter shades get brighter. Shades darker than 40 are all converted to 0, shades brighter than 200 all get converted to 255, and the middle 160 shades get spread out. The gamma argument (1) says to use a linear stretch.

    Quote Quote  



Similar Threads

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