+ Reply to Thread
Results 1 to 28 of 28
Thread
  1. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    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
    Join Date: Dec 2005
    Location: none
    Grayscale()
    Quote Quote  

  3. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    Should that be in place of the AutoYV12()?
    Quote Quote  

  4. Member
    Join Date: Dec 2005
    Location: none
    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  

  5. It's:

    Greyscale()#with an 'e'

    or:

    Tweak(Sat=0,Coring=False)
    Quote Quote  

  6. 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):
    TheMaster Rules ;)
    Quote Quote  

  7. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    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  

  8. 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
    TheMaster Rules ;)
    Quote Quote  

  9. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    Huh gonna have to look into that.
    What should the images be saved as would be the first question?
    Quote Quote  

  10. Member
    Join Date: Dec 2005
    Location: none
    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  

  11. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    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  

  12. Member
    Join Date: Dec 2005
    Location: none
    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  

  13. @ craigarta
    You have to save it as .bmp (24bits) (big file)
    TheMaster Rules ;)
    Quote Quote  

  14. Member edDV's Avatar
    Join Date: Mar 2004
    Location: Northern California, USA
    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  

  15. Member
    Join Date: Dec 2005
    Location: none
    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  

  16. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    OK I played with it a bit and this what I got



    Quote Quote  

  17. Member
    Join Date: Jul 2009
    Location: Spain
    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  

  18. Then maybe my AviSynth is old because Grayscale() isn't accepted.
    Quote Quote  

  19. Member
    Join Date: Dec 2005
    Location: none
    Both GrayScale() and GreyScale() work for me. V. 2.58 tsp MT version 5 (mod seraphy), build: July 12 2009.
    Quote Quote  

  20. Member
    Join Date: Jul 2009
    Location: Spain
    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  

  21. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    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  

  22. Member
    Join Date: Dec 2005
    Location: none
    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  

  23. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    All right I think I got down.

    Thanks to all for the help.

    vlcsnap-2009-11-15-16h21m43s173.png
    Quote Quote  

  24. Member
    Join Date: Dec 2005
    Location: none
    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  

  25. Member craigarta's Avatar
    Join Date: Jun 2001
    Location: Cascade Mountains
    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  

  26. Member
    Join Date: Jul 2009
    Location: Spain
    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  

  27. Member AlanHK's Avatar
    Join Date: Apr 2006
    Location: Hong Kong
    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  

  28. Member
    Join Date: Dec 2005
    Location: none
    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

  1. Replies: 7
    Last Post: 23rd Feb 2009, 08:04
  2. Black and white film to color
    By guillaja in forum Restoration
    Replies: 3
    Last Post: 13th Mar 2006, 17:36
  3. Black and White > Color
    By Dre\/\/ in forum Newbie / General discussions
    Replies: 6
    Last Post: 2nd Sep 2004, 06:55
  4. Black and White videos, to color ones.
    By jjulio1 in forum Editing
    Replies: 2
    Last Post: 19th Apr 2004, 21:03
  5. Black and White to color flashing
    By m2pac6 in forum DVD & Blu-ray Players
    Replies: 4
    Last Post: 27th Jun 2002, 02:12
DVDFab DVD to DVD lets you backup DVDs to DVDr, AVI or MP4 for portable devices. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools