VideoHelp Forum




+ Reply to Thread
Results 1 to 24 of 24
  1. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Hello,


    I have used the filters below to filter and scale my video but the result is video with 23.976 fps but the original one is 29.970 fps. Is it good to keep the fps 23.976 or i have to keep the original 29.970 fps ?!

    Code:
    AviSource("01.avi")
    AssumeTFF()
    TFM()
    TDecimate()
    Deblock()
    UnDot()
    McTemporalDenoise(settings="MEDIUM")
    nnedi3_rpow2(2)
    LanczosResize(1024,960)
    BilinearResize(1024,768)
    aWarpSharp(depth=32)
    Best Regards,
    Quote Quote  
  2. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Thanks jagabo,

    Can i reverse TDecimate() filter work with out re-filter the video again ?!
    Quote Quote  
  3. Originally Posted by SB4 View Post
    Can i reverse TDecimate() filter work with out re-filter the video again ?!
    No.

    Whether you want to leave TDecimate() in or remove it depends on your source. If it's film based you want it to be 23.976 fps, not 29.97. Otherwise you'll have a duplicate frame every 5th frame. Why do you need 29.97 fps?
    Quote Quote  
  4. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    What i want to do is to scale my original video from 640x480 to 1024x768. After that i will add 2nd sound track from 25 pfs video file to it. This is the main idea.
    Quote Quote  
  5. Movies aren't shot at 29.97 fps. They're shot at 24 fps. If this is a movie it's probably been screwed up if it's a 29.97 fps AVI. You need to deterimine exactly what you have then decide to handle it. Maybe you can post a short sample here.
    Quote Quote  
  6. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    It is a anime series and i can't post sample here.
    Quote Quote  
  7. Post is somewhere else and PM me.
    Quote Quote  
  8. That video is 29.97 fps but every 5th frame is a duplicate. The best way to handle it is to remove that duplicate frame with TDecimate, leaving 23.976 fps. If you're going to mux it with a PAL audio track you'll probably have to change the frame rate to 25 fps with AssumeFPS. So your script will look like:

    Code:
    AviSource("01.avi")
    TDecimate()
    AssumeFPS(25)
    Deblock()
    UnDot()
    McTemporalDenoise(settings="MEDIUM")
    nnedi3_rpow2(2)
    LanczosResize(1024,960)
    BilinearResize(1024,768)
    aWarpSharp(depth=32)
    I haven't addressed other problems with your video -- like bad levels.
    Quote Quote  
  9. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Thanks jagabo,

    Is it the best way to change the audio sample rate to match the video file or it is fine to change video frame rate ?!
    Quote Quote  
  10. You can do it either way. I'd change the video frame rate to match the audio length -- since it's just a matter of adding AssumeFPS() to your script. Unless the NTSC and PAL versions of the episode are different (videos are often edited for content in different countries).
    Quote Quote  
  11. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Ok, you said every 5th frame is a duplicate. Can you explain in more details. please ?!
    Quote Quote  
  12. Originally Posted by SB4 View Post
    Ok, you said every 5th frame is a duplicate. Can you explain in more details. please ?!
    I'm not jagabo but it's not so hard to explain. It's anime, apparently, so there are lots of duplicate frames anyway. But in places where every frame is supposed to be unique - a slow panning shot, maybe - there are repeated frames making for jerky playing video. This is evidence that the source is really 23.976fps and duplicates should be removed throughout using the method he suggested.

    LanczosResize(1024,960)
    BilinearResize(1024,768)

    Is there any particular reason you're resizing twice? And is the source so bad that it needs deblocking? The Deblock filter is pretty destructive.
    Quote Quote  
  13. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Thanks manono,

    I used jagabo method tell me in other post and i'm no sure if it good or not for this video source

    I'm not sure if i want Deblock or UnDot filters but this script a lot of people recommend it to me so i use it and gave me a very good result. Is it bad something the video don't need it ?! What if i need it after the re-sizing the video ?!
    Last edited by SB4; 4th Aug 2013 at 18:11.
    Quote Quote  
  14. Try using HQDeRing() instead of UnDot(). Look at resizing in nnedi3_rpow2() only:

    nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1024, fheight=768)
    Quote Quote  
  15. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Ok, there is two HQDeRing() filters. The first one use MaskTools v1.4.9 and the second one use MaskTools v2. Which one i have to use...?!
    Quote Quote  
  16. Whichever one works with the version of MaskTools you have.
    Quote Quote  
  17. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    I have used the one use MaskTools v2. Is there any difference if i used HQDeRing & Deblock filters after or before re-seizing...?!
    Quote Quote  
  18. Originally Posted by SB4 View Post
    Is there any difference if i used HQDeRing & Deblock filters after or before re-seizing...?!
    Yes. You should use them before resizing as the location of the blocks and DCT ringing artifacts is dependent on the source video.
    Quote Quote  
  19. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Can i ask one more question. please ?!

    I want to know What is the mean of Debanding, Deblocking, Dehaloing & Deringing ?!
    I need to know if my video need it or not in more details... ?!
    Quote Quote  
  20. Originally Posted by SB4 View Post
    What is the mean of Debanding
    Banded:
    Name:  banded.png
Views: 330
Size:  672 Bytes

    Not Banded:
    Name:  debanded.png
Views: 331
Size:  1.5 KB


    Originally Posted by SB4 View Post
    Deblocking
    8x8 Blocks from over compression (4x enlarged):
    Name:  blocks4x.png
Views: 345
Size:  997 Bytes

    Deblocked (4x enlarged):
    Name:  deblock4x.png
Views: 351
Size:  1.5 KB

    Originally Posted by SB4 View Post
    Dehaloing
    A blurry image (4x enlargement):
    Name:  blur.png
Views: 327
Size:  686 Bytes

    When a sharpening filter creates overshoots (notice how there's a dark band to the left of the transition, and a light band to the right, a DeHalo filter tries to fix this):
    Name:  oversharp.png
Views: 328
Size:  740 Bytes

    instead of (no sharpen filter does this well):
    Name:  sharp.png
Views: 331
Size:  640 Bytes


    Originally Posted by SB4 View Post
    Deringing
    Ringing artifacts (8x enlarged, note the small dots):
    Click image for larger version

Name:	ringing.png
Views:	161
Size:	11.4 KB
ID:	19212

    After HQDeRing():
    Click image for larger version

Name:	hqdering.png
Views:	145
Size:	6.3 KB
ID:	19213
    Last edited by jagabo; 5th Aug 2013 at 17:04.
    Quote Quote  
  21. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Thanks jagabo, I really appreciate your help...
    Quote Quote  
  22. Member
    Join Date
    Jun 2007
    Location
    Kuwait
    Search Comp PM
    Hello again

    I have question. In the image below is it need Deblocking, Deringing or just Denoise filter...?!
    Quote Quote  
  23. It needs deblocking. It may need deringing -- it's hard to tell from the subject matter. But since you uploaded a JPG image one can't tell how much of the problems are from the JPG compression and how much was in the original video.
    Quote Quote  



Similar Threads

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