VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 52
Thread
  1. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    Something's not right when using avisynth and neat video the result is different than on virtualdub, i have asked the question on neat's forum some time ago, no answer...

    Experiment: take the same video, same noise profiles, parameters and see what's coming out

    Pictures:
    Vdub:
    http://forum.videohelp.com/attachment.php?attachmentid=10562&stc=1&d=1326745102
    avisynth:
    http://forum.videohelp.com/attachment.php?attachmentid=10563&stc=1&d=1326745132

    The result with vdub is better (look at the chroma at the upper right side) so either neatvideo don't like avisynth or virtualdub is adding some kind of filtering (!!) .

    The 1 million $ question is more about how to reproduce this filtering in avisynth (assuming this theory is true)

    Zoom-In (Vdub/avisynth)


    Click image for larger version

Name:	vdub-ZOOM.jpg
Views:	76
Size:	83.8 KB
ID:	10564Click image for larger version

Name:	avisynth-ZOOM.jpg
Views:	89
Size:	143.6 KB
ID:	10565


    references:
    virtualdub v1.9.0
    neat video v2.22 (also tried with newer version v3)
    avisynth 2.6.0.2
    Attached Images    
    Last edited by themaster1; 16th Jan 2012 at 14:51.
    Quote Quote  
  2. Mod Neophyte Super Moderator redwudz's Avatar
    Join Date: Sep 2002
    Location: AZ, USA
    Search Comp PM
    I'll probably leave this to the experts here, but I suspect you are getting a colorspace conversion through VD that Avisynth doesn't do. Try adding a brightness/contrast filter in VD before the NV filter and see if anything changes. (Not sure if you need to make any adjustments with the B/C filter, try it without any first.)
    Quote Quote  
  3. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Something's not right when using avisynth and neat video the result is different than on virtualdub, i have asked the question on neat's forum some time ago, no answer...
    can you be more specific?

    do you mean loading neat video in avisynth script ?

    or loading avisynth script into vdub with neat video filter ?



    and please post your script
    Quote Quote  
  4. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    I have used two scripts:
    for vdub:
    MPEG2Source("F:\MyVideo.d2v", cpu=0,info=3)

    for avisynth
    MPEG2Source("F:\MyVideo.d2v", cpu=0,info=3)
    converttorgb32(matrix="Rec601",interlaced=true)
    LoadVirtualDubPlugin("C:\Program Files (x86)\virtualdub1.9\plugins\00-NeatVideo.vdf", "NeatVideo", 0)
    NeatVideo("C:\Program Files (x86)\Neat Video for VirtualDub\PROFILES\00neatv3.0-59%-neatgpu.dnp", "C:\Program Files (x86)\Neat Video for VirtualDub\PRESETS\00-neatv3.0-neatgpu.nfp", "1.0", "2", "1", "1")
    converttoyv12(matrix="Rec601",interlaced=true)


    The first script is opened in vdub and i pick the neat video filter -> encoding with lagarith

    Same thing for the second except i don't pick any filter indeed, encoding only.
    Quote Quote  
  5. Member
    Join Date: Jul 2009
    Location: Spain
    Search Comp PM
    If the video is interlaced (as your 2nd script suggests), vdub will screw up the chroma on conversion to RGB.
    Add converttorgb32(matrix="Rec601",interlaced=true) to the first script.
    Quote Quote  
  6. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    You don't get it the vdub result is BETTER than the avisynth. A logical person would think it's the opposite yet here are the hard facts to swallow.

    Here is a sample of the original video (13mb) so you can try to recreate the experiment:
    http://www.megaupload.com/?d=9FE0DH4C
    Quote Quote  
  7. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Originally Posted by themaster1 View Post
    You don't get it the vdub result is BETTER than the avisynth. A logical person would think it's the opposite yet here are the hard facts to swallow.

    Here is a sample of the original video (13mb) so you can try to recreate the experiment:
    http://www.megaupload.com/?d=9FE0DH4C

    Why would you expect the opposite? Shouldn't you would expect the same results ?

    Looks like a bug with using neat video plugin in avisynth. If their developers can't answer the question in their own forum, then issue is unlikely to be resolved
    Quote Quote  
  8. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    yeah at least the same result if not better is what i meant
    Quote Quote  
  9. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    The video content actually isn't interlaced - it's field shifted, progressive 29.97

    To realign : e.g
    Code:
    MPEG2Source("SAMPLE.d2v")
    assumetff()
    separatefields()
    trim(1,0)
    weave()
    or

    Code:
    MPEG2Source()
    assumetff()
    TFM()
    or use field delay plugin in vdub



    But that doesn't explain why neat video plugin reacts differently in avs script
    Quote Quote  
  10. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    The first script don't make no sense to me (a trim between separatefields+weave ..the end goal being... what ??);
    Second makes more sense but not quite useful considering i'm picky , tfm leaves some ugly artefact behind.

    What about this:
    QTGMC( "fast", TR0=1, TR1=1, TR2=1)
    SelectEven() #
    TDecimate()

    Here is a new sample (30mb): http://www.megaupload.com/?d=DOWU1S52
    Quote Quote  
  11. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Originally Posted by themaster1 View Post
    The first script don't make no sense to me (a trim between separatefields+weave ..the end goal being... what ??);
    Second makes more sense but not quite useful considering i'm picky , tfm leaves some ugly artefact behind.

    What about this:
    QTGMC( "fast", TR0=1, TR1=1, TR2=1)
    SelectEven() #
    TDecimate()

    Here is a new sample (30mb): http://www.megaupload.com/?d=DOWU1S52

    Deinterlacing will degrade quality more - the "ugly" artifacts are in the source to begin with. Use other filters to get rid of them. You usually want to start with highest quality first , instead of reduced qualilty to begin with. You shouldn't deinterlace progressive content.


    field shifting or phase shifting means this - the fields are misaligned, that's why you see "combing". But it's progressive content!
    [z a] [a b] [b c] [c d] ...

    The separatefields and trim will get rid of the "z" so upper field a, lower field a, become frame A
    [a a] [b b] [c c] ...
    Quote Quote  
  12. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 21st Mar 2014 at 07:29.
    Quote Quote  
  13. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Are the results the same (or very close) when you make those changes Sanlyn ?
    Quote Quote  
  14. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 21st Mar 2014 at 07:30.
    Quote Quote  
  15. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    I've never used NV or any other vdub plugin in avisynth. When I use NV, I use it by itself.

    If , despite those changes, there are still discrepancies - that confirms what themaster1 is saying about NV for avisynth isn't working properly
    Quote Quote  
  16. this is a progressive 30p source. i think you just didn't send the proper prepared script to neatvideo for processing.

    Code:
    # AVIsynth drag drop tool
     
      x = "E:\SAMPLE.mpg"
      LoadPlugin( "C:\PLUGINS\ffms2.dll" )
      V = FFVideoSource(x)
      FFVideoSource(x)#,fpsnum=29700,fpsden=1001)
    
    # fields
    # 02468AC
    # 13579bd
    
      trim(0,332).separatefields().selectevery(2, 1,2).weave()
    Attached Files

    VHELP's - Sample Clips [last: 12.29.06],
    my YouTube videos
    Quote Quote  
  17. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 21st Mar 2014 at 07:30.
    Quote Quote  
  18. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    "There is no function named FFVideoSource" that's what i get (and i have loaded the ffms2.dll...YES i did)

    What's the point to use FFmpegSource anyways , i'm reading the mediawiki as i type , known issues section ... it's not appealing to say the least
    Quote Quote  
  19. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Originally Posted by themaster1 View Post
    "There is no function named FFVideoSource" that's what i get (and i have loaded the ffms2.dll...YES i did)

    What's the point to use FFmpegSource anyways , i'm reading the mediawiki as i type , known issues section ... it's not appealing to say the least
    No advantage for a MPEG2 source file , other than being slightly easier to use. MPEG2Source is more consistent and reliable for MPEG2 sources

    Whether or not you use MPEG2Source or FFVideosource still doesn't explain the difference. Whether or not you used proper progressive input or interlaced still doesn't explain the difference - that's what you're looking for, right?

    Otherwise, you can clean up the chroma noise in avisynth with chubbyrain + fft3dfilter on chroma planes if you didn't feel like using neat
    Quote Quote  
  20. sorry, i had made a quick mod to that above script because the source had no audio (the script woudn't work in this case--maybe that was your problem) my app just creates the script for me and then opens the video in virtualdub for quick viewing.

    when i want quickly open/view a (mp4/mp2/m2ts/mov/etc) video, can't be bothered with all the preporation steps, so i just d/l, drag/drop into my app and i'm in business. othewise i have to either use dvd2avi or dgindex and all the steps involved, just to open/review a video.

    i prefer FFmpegsource over dgindex because it is faster to setup. am not looking for perfection, just a quick open and view, thats all. this method is not perfect, in some cases may cause other problems. but i use the method above when i want to quickly review a file other than avi, and i almost never have a problem opening. a lot of times i am D/L'ing a video and can't be bother with prepping it. drag-n-dropping into my app is so much easier.

    if you source has no audio then you have to include the audio=no switch in your param line, or use the method below..

    her is code snip again:
    Code:
      x = "E:\SAMPLE.mpg"
      LoadPlugin( "C:\PLUGINS\ffms2.dll" )
      FFVideoSource(x)
      trim(0,332).separatefields().selectevery(2, 1,2).weave()

    VHELP's - Sample Clips [last: 12.29.06],
    my YouTube videos
    Quote Quote  
  21. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    Originally Posted by sanlyn View Post
    Your LoadVirtualDubPlugin statement parameters don't agree with the NeatVideo statement that does the processing (see characters in GREEN above).
    It's in the doc i know that but is not a real necessity, that's the conclusion i draw after many experiments with neat in avisynth. Don't ask me why..
    Quote Quote  
  22. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    @vHelp:
    Try the new sample i have uploaded
    http://www.megaupload.com/?d=DOWU1S52

    (Meanwhile, i go to the bed cos it's late)
    Quote Quote  
  23. Code:
    # 
    # this is some special fx (monitor in background) and 
    # home-video (progressive) mixed with film for this m.video
    # 
    # you would have to break all the (known) segments and process
    # each according to ivtc, field-correct, etc, then restitch into one
    # main segment which would ultimately have to be 29.970 fps.
    # 
    # the monitor in background seem to be film behind the main
    # feature, progessive.
    # 
    # ivtc, ie, the car bopping up/down is film and since these film
    # scenes are at different places in the video, they could have
    # sliced inside the PPPii pattern and may not be as easy to work
    # with. other problems are in this video, blends, etc.
    # 
    # the footage (home-video, made progressive) is mixed with film.
    # i'm guessing that the singer is narrarating his experiences.
    # 
    
      x = "E:\SAMPLE_2.mpg"
      LoadPlugin( "C:\PLUGINS\ffms2.dll" )
      FFVideoSource(x)
    # trim(0,0).separatefields().selectevery(2, 1,2).weave()     # progressive
    # trim(0,0).separatefields().selectevery(5, 0,1,2,3).weave() # film
    because there were so many different mixture of scenes i did not bother to attempt to decode each segment and bring to new 29.970 fps. i will leave that up to you or other members. its bed time for me. good luck.
    Last edited by vhelp; 17th Jan 2012 at 19:22.

    VHELP's - Sample Clips [last: 12.29.06],
    my YouTube videos
    Quote Quote  
  24. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    It's a big mess in other words. I will focus on that later for now denoising, color correction only
    edit:
    Here's where i'm at:
    http://imageshack.us/f/28/whereimat.jpg/
    Last edited by themaster1; 17th Jan 2012 at 13:54.
    Quote Quote  
  25. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    Ok guys i found out what's wrong, take a look at this picture which compare the different results i have obtained:
    In the order: original, Neat Vdub, avisynth Neat (normal), avisynth Neat (my solution)

    http://forum.videohelp.com/attachment.php?attachmentid=10668&stc=1&d=1327575563

    I'll let you guess what i did, it wouldn't be fun otherwise

    Now the result is "on par" with Vdub
    Attached Thumbnails Click image for larger version

Name:	TheMaster1-result.jpg
Views:	150
Size:	503.1 KB
ID:	10668  

    Last edited by themaster1; 26th Jan 2012 at 05:12.
    Quote Quote  
  26. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 21st Mar 2014 at 07:30.
    Quote Quote  
  27. Member themaster1's Avatar
    Join Date: Nov 2006
    Location: France
    Search Comp PM
    No No, it's real avs scripting, no trick involved.You can do better sanlyn come on.
    A tip maybe ? Something's wrong with converttoyv12 (oops i said too much)
    Quote Quote  
  28. Banned
    Join Date: Oct 2004
    Location: New York, US
    Search Comp PM
    -30-
    Last edited by sanlyn; 21st Mar 2014 at 07:30.
    Quote Quote  
  29. Member 2Bdecided's Avatar
    Join Date: Nov 2007
    Location: United Kingdom
    Search Comp PM
    interlaced=true? (or not? )
    Quote Quote  
  30. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    for avisynth
    MPEG2Source("F:\MyVideo.d2v", cpu=0,info=3)
    converttorgb32(matrix="Rec601",interlaced=true)
    LoadVirtualDubPlugin("C:\Program Files (x86)\virtualdub1.9\plugins\00-NeatVideo.vdf", "NeatVideo", 0)
    NeatVideo("C:\Program Files (x86)\Neat Video for VirtualDub\PROFILES\00neatv3.0-59%-neatgpu.dnp", "C:\Program Files (x86)\Neat Video for VirtualDub\PRESETS\00-neatv3.0-neatgpu.nfp", "1.0", "2", "1", "1")
    converttoyv12(matrix="Rec601",interlaced=true)
    But he specificed (matrix="rec601", interlaced=true) in post #4
    Quote Quote  



Similar Threads