VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Hello

    I am using a GV-USB2 to capture a 720x576 PAL video, here is a snapshot.
    Image
    [Attachment 73910 - Click to enlarge]


    I have read about cropping before and understand that it is recommended to crop down to 704x576, then resize up to 768x576 in order to get 4:3 ratio.
    In this case cropping 4 pixels and 12 pixels right seems about right.

    However, there are also black borders at the top and bottom of the video that I want to get rid of. It looks like 1 top and 3 bottom pixels
    Cropping that out would mean 704x572

    Would it be recommended to crop down to 704x572 and then resize up to 768x576 ?
    Quote Quote  
  2. Caution.
    Your video is interlaced, most probably YUV (YUY2) 4:2:2.
    - cropping vertically an odd number of pixels will destroy the original interlaced structure (in best case it just reverses the field order, like in the 1,3 case)
    - vertical resizing of interlaced video will also destroy the interlaced structure (independent from cropping)

    So deinterlace first, then crop and resize correctly as needed such that the aspect ratio is preserved.
    Last edited by Sharc; 19th Sep 2023 at 05:23.
    Quote Quote  
  3. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Thanks for pointing that out.

    Will cropping in VirtualDub2 reduce quality of original file?
    Quote Quote  
  4. Cropping as such does not reduce the quality. It just crops the picture. For VirtualDub2 same cropping rules apply. Maybe it throws a warning when cropping interlaced footage incorrectly, maybe not. I don't really remember.
    Avisynth+ catches most of wrong cropping attempts (except the reversal of the field order).

    Here the cropping rules:

    For YUY2 4:2:2 source (your capture most likely):
    horizontal: mod2
    vertical: mod2 for interlaced video, no restriction for progressive video

    For YV12 4:2:0 source:
    horizontal: mod2
    vertical: mod4 for interlaced video, mod2 for progressive video

    With mod4 for all sides you are always on the safe side.

    Resizing:
    No vertical resizing of interlaced video. Deinterlace it beforehand.

    P.S.
    mod2=0,2,4,6,8 .... = integer multiple of 2
    mod4=0,4,8,12,16... = integer multiple of 4
    Last edited by Sharc; 19th Sep 2023 at 05:32.
    Quote Quote  
  5. Would it be recommended to crop down to 704x572 and then resize up to 768x576 ?
    When you deinterlace and crop to 704x572 and then resize to 768x576 you will stretch the picture a tiny bit vertically (about 0.8%). Practically meaningless, just nitpicking
    Last edited by Sharc; 19th Sep 2023 at 05:59.
    Quote Quote  
  6. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    When you deinterlace and crop to 704x572 and then resize to 768x576 you will stretch the picture a tiny bit vertically (about 0.8%).
    Take an additional 2 pixels off each side.
    Quote Quote  
  7. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    You mean 700x568 would be correct?
    Quote Quote  
  8. 700x572 (cropped) -> 768x576 (resized)
    Last edited by Sharc; 19th Sep 2023 at 07:43.
    Quote Quote  
  9. Member Skiller's Avatar
    Join Date
    Oct 2013
    Location
    Germany
    Search PM
    Basically, if you want to have the final video play at exactly 4:3 and not introduce any (tiny) error while doing so, you want the frame to keep the 704:576 ratio (which is 1.222...:1) after cropping.
    This (and the chroma subsampling requirements) means you will almost always have to overcrop on purpose a bit.


    704:572 ≈ 1.231 (slightly off)
    700:572 ≈ 1.224 (good, error is only about 0.9 non-square pixels)
    Quote Quote  
  10. Personally I don't care much about exact 4:3 Display Aspect Ratio and resizing to square pixels. I crop as needed (according to the cropping rules for interlaced cropping) in order to fully remove the crud from all sides, optionally pad to a standard resolution like 704x576 (for PAL), and encode with x264 using the SAR (Sampling Aspect Ratio) 12:11 (for 4:3 PAL) in .mp4 container, and let the player do the rest.
    It's not a recommendation, it's just my preference. I usually don't even deinterlace. I trust the deinterlacer of my TV.
    Last edited by Sharc; 19th Sep 2023 at 08:34.
    Quote Quote  
  11. Same old, same old, crop then resize ...... you do not need that in majority of cases, like in your case

    simply as a first step, back up those avis!, then you can deinterlace video, cut 4 left 12 right or whatever works (total 16), resize to 4:3 horizontally only to the same height 768x576. You have exactly the same aspect ratio you started with. I recommend not to crop those lines on top and bottom at all afterwords, no one will notice, guaranteed. If you for some human OCD reason want to crop after resize (I understand that could be a real reason for a human) and get rid of that black lines on top and bottom , ( mind you , then in the future resizing of that video would introduce an ar error). You would take out two lines from top and 4 from bottom. Sharc explanation says you'd need to take 4 pixels in both cases if video is interlaced, not sure about that now, as I said I do not do these tiny crops at all, have no slightest residue of ocd whatsoever luckily

    This whole cropping stuff before resize is overrated , all over web and not even necessary in majority of cases.
    Quote Quote  
  12. Originally Posted by _Al_ View Post
    Sharc explanation says you'd need to take 4 pixels in both cases if video is interlaced, ...
    I said mod 2 for 4:2:2 interlaced and mod 4 for 4:2:0 interlaced sources. The OP's capture is very most likely 4:2:2 interlaced so he can crop mod 2.
    If one has no clue what the source format is, one is on the safe side with mod 4.

    This whole cropping stuff before resize is overrated , all over web and not even necessary in majority of cases
    Well, what one considers necessary is a personal decision. Is resizing necessary? Is deinterlacing necessary? It depends what we want or need. Cropping makes sense when the active picture's borders are not clean but fuzzy. Sometimes there are color distortions (decolorization) close to the borders, or the existing borders are noisy or greyish rather than solid black. For some it is more annoying than for others. Similar with color shifts 601 <-> 709, the infamous 2% AR distortion, and so on.
    Last edited by Sharc; 19th Sep 2023 at 17:19.
    Quote Quote  
  13. Originally Posted by Sharc View Post
    optionally pad to a standard resolution like 704x576 (for PAL)
    Sharc, is to pad, the same thing as adding black borders after cropping?
    Quote Quote  
  14. Originally Posted by Leanoric View Post
    Originally Posted by Sharc View Post
    optionally pad to a standard resolution like 704x576 (for PAL)
    Sharc, is to pad, the same thing as adding black borders after cropping?
    Yes.
    Quote Quote  
  15. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Is resizing necessary?
    Not at all

    Is deinterlacing necessary?
    It depends on who is doing the better deinterlacing between the software and the player.

    For both questions, we are repeating the same concept since years...
    Quote Quote  
  16. Member Skiller's Avatar
    Join Date
    Oct 2013
    Location
    Germany
    Search PM
    When encoding old analog-originated footage for viewing on modern devices, I like to emulate overscan to have the video look similar to what it would like on a CRT. Remember, even when the video was originally shot, in the view finder of the camera there was overscan. It was never meant to be watched without.

    Therefore I like to crop to the center 660x540 area and flag it with a 12:11 PAR. 50p deinterlacing with QTGMC and x264 for encoding.
    Quote Quote  
  17. Originally Posted by Skiller View Post
    When encoding old analog-originated footage for viewing on modern devices, I like to emulate overscan to have the video look similar to what it would like on a CRT. Remember, even when the video was originally shot, in the view finder of the camera there was overscan. It was never meant to be watched without.

    Therefore I like to crop to the center 660x540 area and flag it with a 12:11 PAR. 50p deinterlacing with QTGMC and x264 for encoding.

    Interesting, I will try this.
    Quote Quote  



Similar Threads

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