VideoHelp Forum




+ Reply to Thread
Results 1 to 23 of 23
  1. I keep seeing double images, (Examples below) especially during movement parts of my video once I choose a deinterlace method. I see skin colors over top of the hair and they seem jumbled to me. its almost as if theres extra frames or something that should be removed.





    Im very sure this is probly a deinterlacing issue because you dont see this untill deinterlacing is applied, but it could be something I dunno about yet. Any other deinterlacing method other than the one the program recommends makes it look like it wasnt even deinterlaced and all of the lines are back. TIVTC, Top Field First is whats being done to it. Says source type is "Hybrid film/interlaced. Mostly interlaced"

    I have a demuxed untouched video sample along with the script I was using that can be found here.

    http://www.megaupload.com/?d=RX1ECBZC

    Could someone please let me know what the cause of this is and or things I could add to or remove from the script to perhaps improve upon the one I have now?
    Last edited by killerteengohan; 11th Aug 2011 at 20:16. Reason: Added detail
    Quote Quote  
  2. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    These are artifacts of a blend deinterlace and gets worse with more motion.
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  3. I'll take a look...
    Quote Quote  
  4. Originally Posted by jagabo View Post
    I'll take a look...
    I swear man, I wish I could commend you or something for all the really good help you usually give. I appreciate it more than you know.
    Quote Quote  
  5. That video has blended fiels. On top of that the chroma channels were handled improperly so the colors have additional blending. About the best you'll get out of it is:

    Mpeg2Source("VTS_02_1.demuxed.d2v", CPU=6)
    Yadif(order=1, mode=1)
    SRestore()
    Follow that with any other filtering you want. It will give you a 25 fps result. Using QTGMC() rather than Yadif() will give slightly better results but will take longer.
    Last edited by jagabo; 11th Aug 2011 at 22:01.
    Quote Quote  
  6. Originally Posted by jagabo View Post
    That video has blended fiels. On top of that the chroma channels were handled improperly so the colors have additional blending. About the best you'll get out of it is:

    Mpeg2Source("VTS_02_1.demuxed.d2v", CPU=6)
    Yadif(order=1, mode=1)
    SRestore()
    Follow that with any other filtering you want. It will give you a 25 fps result. Using QTGMC() rather than Yadif() will give slightly better results but will take longer.

    I really wish I could get that QTGMC() to work, so far its the only plugin and or avsi I havent been able to get working.

    the 25fps result wont throw my audio and video out of sync will it? I believe the audio plays back at 23.976fps.
    Quote Quote  
  7. Originally Posted by killerteengohan View Post
    I really wish I could get that QTGMC() to work, so far its the only plugin and or avsi I havent been able to get working.
    All I can recommend is that you try downloading and reinstalling all the requisite filters again (but I think you've done this a few times already). Remember when a filter contains several dll files with names like filterSSE.dll, filterSSE2.dll, filterSSE3.dll that you only want one of them

    Originally Posted by killerteengohan View Post
    the 25fps result wont throw my audio and video out of sync will it? I believe the audio plays back at 23.976fps.
    No. The running time doesn't change so the audio should still sync. If you were making an NTSC DVD you would have to use a special procedure (encode 25 fps progressive, add pulldown flags with DGPulldown).
    Quote Quote  
  8. [QUOTE=jagabo;2098803]
    Originally Posted by killerteengohan View Post
    I really wish I could get that QTGMC() to work, so far its the only plugin and or avsi I havent been able to get working.
    All I can recommend is that you try downloading and reinstalling all the requisite filters again (but I think you've done this a few times already). Remember when a filter contains several dll files with names like filterSSE.dll, filterSSE2.dll, filterSSE3.dll that you only want one of them
    I never tried just using 1, I been using them all for everything I ever did. Maybe ill take out the extras like sse2 and sse etc and see if that changes anything. Then I will let you know.

    Also its good to know I dont need to worry about audio sync, thanks.
    Quote Quote  
  9. Post a complete script using QTGMC and the error message you get when trying to load it into VDub(Mod). Leave out all the other crap besides the QTGMC and SRestore lines.
    Quote Quote  
  10. I'd even leave out SRestore(). Until you get QTGMC() working.
    Quote Quote  
  11. Originally Posted by jagabo View Post
    Originally Posted by killerteengohan View Post
    I really wish I could get that QTGMC() to work, so far its the only plugin and or avsi I havent been able to get working.
    All I can recommend is that you try downloading and reinstalling all the requisite filters again (but I think you've done this a few times already). Remember when a filter contains several dll files with names like filterSSE.dll, filterSSE2.dll, filterSSE3.dll that you only want one of them

    Originally Posted by killerteengohan View Post
    the 25fps result wont throw my audio and video out of sync will it? I believe the audio plays back at 23.976fps.
    No. The running time doesn't change so the audio should still sync. If you were making an NTSC DVD you would have to use a special procedure (encode 25 fps progressive, add pulldown flags with DGPulldown).
    Ok I finally got QTGMC to work.

    am I using this properly? I just wanna be sure Im not screwing it up.


    LoadPlugin("C:\Program Files\megui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SangNom.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
    Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
    DGDecode_mpeg2source("C:\Users\KRAOH\Desktop\MegaM an\Disc 1\VTS_02_1.d2v", info=3)
    LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\ColorMatrix.dll" )
    ColorMatrix(hints=true, interlaced=true, threads=0)
    checkmate()
    AssumeBFF()
    QTGMC(preset="slow", sharpness=0.3)
    SRestore(23.976)
    AssumeFPS(24000,1001)
    crop( 10, 4, -10, -4)
    LanczosResize(640,480) # Lanczos (Sharp)
    LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\UnDot.dll")
    Undot() # Minimal Noise
    deen()
    santiag()
    LimitedSharpenFaster(ss_x=2.0, ss_y=2.0, strength=130, overshoot=0, undershoot=0, soft=0, edgemode=0)
    Last edited by killerteengohan; 11th Aug 2011 at 23:21.
    Quote Quote  
  12. wow this thing is pretty slow >_>

    Im only getting 1.43fps encode rate and thats about 12-20 hours per episode. Ill be waiting weeks. Im more used to 2-5 hours an episode.

    Perhaps I can tweak my script a little to help some??
    Quote Quote  
  13. You can use one of the faster presets. The quality will be nearly the same and the speed much faster. There are also Medium, Fast, Faster, SuperFast, UltraFast. I use Faster quite a lot. You don't need the ColorMatrix line in the script. Is it really BFF? I don't think you need to set a field order anyway. Although some might disagree, after setting the 23.976fps framerate in Srestore, I don't see that you need to add AssumeFPS(24000,1001). It's not as if the audio will go out of synch without it.

    You're sharpening twice, once in QTGMC (which uses the sharpener in FFT3DFilter, I think), and again with LSF. Me, I'd use only the LSF one and boost the strength.

    Do you need to antialias after using QTGMC?

    Usually all the LoadPlugin lines and Import lines are at the top. I'd stick the Undot LoadPlugin line up there.
    Last edited by manono; 11th Aug 2011 at 23:50.
    Quote Quote  
  14. Originally Posted by manono View Post
    You can use one of the faster presets. The quality will be nearly the same and the speed much faster. There are also Medium, Fast, Faster, SuperFast, UltraFast. I use Faster quite a lot. You don't need the ColorMatrix line in the script. Is it really BFF? I don't think you need to set a field order anyway. Although some might disagree, after setting the 23.976fps framerate in Srestore, I don't see that you need to add AssumeFPS(24000,1001). It's not as if the audio will go out of synch without it.

    You're sharpening twice, once in QTGMC (which uses the sharpener in FFT3DFilter, I think), and again with LSF. Me, I'd use only the LSF one and boost the strength.

    Do you need to antialias after using QTGMC?

    Usually all the LoadPlugin lines and Import lines are at the top. I'd stick the Undot LoadPlugin line up there.
    Ive already tried the other speeds, medium and fast. That was the first thing I tried and it didnt speed up but maybe 0.20fps per raise. Maybe faster will do better, Ill try that, thanks.

    Im not even sure what BFF is, I wish I knew. (Just now looked this up) Its TFF!! I only had that in the script because it was given to me in an example with the QTGMC script before.

    AssumeFPS I pretty much used it for the same reason as I stated I used BFF the only difference is, I know what assumefps is.
    Last edited by killerteengohan; 12th Aug 2011 at 00:28.
    Quote Quote  
  15. If QTGMC is really so slow, you can always go back to using Yadif, but it's really not very good with anime. Maybe try YadifMod and NNEDI3 as the bobber, something like:

    yadifmod(field=1, order=1, mode=1, edeint=nnedi3(field=-2))

    You'll have to get both NNEDI3 and YadifMod if you don't yet have them:

    http://web.missouri.edu/~kes25c/#c1
    http://avisynth.org/mediawiki/External_filters#Deinterlacing

    And some of the other filters you're using are also pretty slow. I'd suggest you learn what they do and then decide if you really need them all.
    Quote Quote  
  16. Originally Posted by manono View Post
    If QTGMC is really so slow, you can always go back to using Yadif, but it's really not very good with anime. Maybe try YadifMod and NNEDI3 as the bobber, something like:

    yadifmod(field=1, order=1, mode=1, edeint=nnedi3(field=-2))

    You'll have to get both NNEDI3 and YadifMod if you don't yet have them:

    http://web.missouri.edu/~kes25c/#c1
    http://avisynth.org/mediawiki/External_filters#Deinterlacing

    And some of the other filters you're using are also pretty slow. I'd suggest you learn what they do and then decide if you really need them all.
    Yeah Im usually very patient and dont mind a max of 3-6 hours per 25 mins of video. Anything more and I consider it too long of wait.
    Quote Quote  
  17. I'd sharpen up the chroma channels and shift them to the right 2 pixels:

    ChromaShift(C=2)
    MergeChroma(awarpsharp2(depth=32))
    I believe the frame rate should be 25, not 23.976. Panning shots are smoother a 25 fps.

    CheckMate() should usually be called before IVTC.

    I don't have Santiag() and LimitedSharpenFaster(), and Undot didn't seem to do much of anything, so with just:

    Mpeg2Source("VTS_02_1.demuxed.d2v", CPU=6)
    AssumeTFF()
    checkmate()
    QTGMC(preset="fast")
    SRestore()
    deen()
    ChromaShift(C=2)
    MergeChroma(awarpsharp2(depth=32))
    crop( 10, 4, -10, -4)
    LanczosResize(640,480) # Lanczos (Sharp)
    I get about 8 fps with a single threaded build of AviSynth, encoding with x264 with the "veryfast" preset. That was on a quad core i5 2500K, showing only about 35 percent CPU usage in Task Manager.
    Last edited by jagabo; 12th Aug 2011 at 07:47.
    Quote Quote  
  18. Oh and a little white balance adjustment may be called for:

    ColorYUV(off_u=3, off_v=-3)
    before:
    Click image for larger version

Name:	before.jpg
Views:	1224
Size:	36.7 KB
ID:	8120

    after:
    Click image for larger version

Name:	after.jpg
Views:	1129
Size:	36.7 KB
ID:	8121

    After:

    Mpeg2Source("VTS_02_1.demuxed.d2v", CPU=6)
    AssumeTFF()
    checkmate()
    QTGMC(preset="fast")
    SRestore()
    deen()
    ChromaShift(C=2)
    MergeChroma(awarpsharp2(depth=32))
    ColorYUV(off_u=3, off_v=-3)
    crop( 10, 4, -10, -4)
    LanczosResize(640,480) # Lanczos (Sharp)
    I get:
    Image Attached Files
    Last edited by jagabo; 12th Aug 2011 at 07:42.
    Quote Quote  
  19. Originally Posted by jagabo View Post
    Oh and a little white balance adjustment may be called for:

    ColorYUV(off_u=3, off_v=-3)
    before:
    Image
    [Attachment 8120 - Click to enlarge]


    after:
    Image
    [Attachment 8121 - Click to enlarge]


    After:

    Mpeg2Source("VTS_02_1.demuxed.d2v", CPU=6)
    AssumeTFF()
    checkmate()
    QTGMC(preset="fast")
    SRestore()
    deen()
    ChromaShift(C=2)
    MergeChroma(awarpsharp2(depth=32))
    ColorYUV(off_u=3, off_v=-3)
    crop( 10, 4, -10, -4)
    LanczosResize(640,480) # Lanczos (Sharp)
    I get:

    I kinda finished mine before I saw your post on here. I like your result as usual, Id only add one or two things.

    This is what I got from my finished script before I saw your reply. It looks like it has less noise and a bit sharper.

    Last edited by killerteengohan; 12th Aug 2011 at 18:52.
    Quote Quote  
  20. Did you use the ChromaShift in your script? Yours still seems to have the 'color-outside-the-lines'.

    You can find it here:

    http://avisynth.org/mediawiki/External_filters#Chroma_correction
    Quote Quote  
  21. Originally Posted by manono View Post
    Did you use the ChromaShift in your script? Yours still seems to have the 'color-outside-the-lines'.

    You can find it here:

    http://avisynth.org/mediawiki/External_filters#Chroma_correction
    No I didnt use chroma shift, I never used it before and didnt know what it was. I never heard of it untill I saw that reply and that was after I was done already. Ill have to play with chroma shift a bit.
    Quote Quote  
  22. Yeah, see the guy on the left, how his hair color seems to extend to the left of where it's supposed to be? The colors (chroma) on this thing seem to have shifted to the left a little bit (2 pixels, apparently). You can see on jagabo's before and after pictures how it gets fixed after using the Chromashift filter. This sort of thing is fairly common with anime and even on poorly made live action DVDs (often sourced from VHS tapes).
    Quote Quote  
  23. I should have been clearer about what I meant when I said I sharpened the chroma channels and shifted them right. Analog video's natural state is YUV, not RGB. In YUV there is a grayscale picture, Y, and two color channels, U and V. Sometimes the color channels may shift to the right or left, or even up or down, relative to the grayscale image. This is common when recorded on video tape. In this particular video the chroma channels have shifted about two pixels to the left. If you look at your sample image you see that the colors bleed slightly to the left of where they should be. So I shifted the chroma 2 pixels to the right with:

    ChromaShift(C=2)

    In addition, the chroma channels are very blurry compared to the luma (grayscale) channel. This is common with video tape where the chroma channels are recorded with very low bandwidth. So I sharpened them up with awarpsharp2(). a warpsharp2() also sharpens the luma channel which didn't need sharpening, at least not as much as the chroma channels. So I used MergeChroma() to replace the original chroma channels with the sharpened versions but keep the original luma channel:

    MergeChroma(awarpsharp2(depth=32))

    The luma channel could use a little sharpening too. It would make sense to sharpen the luma channel separately. Maybe something like:

    MergeChroma(awarpsharp2(depth=12),awarpsharp2(dept h=32))

    That will merge a slightly sharpened luma channel with more sharpened chroma channels. I deleted the sample video so I don't know if 12 is the "right" value, just a guess.
    Quote Quote  



Similar Threads

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