VideoHelp Forum




+ Reply to Thread
Results 1 to 26 of 26
  1. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Hello, first of all I want to thank you all for this great community. I have learned so much regarding converting video from you all. Now to my problem

    I use a Hauppage capture device together with AmarecTV to capture analog camcorder material. I then intend to use nnedi3 and upscale from 720 x 576 to 1140 x 1152

    Example file before upscaling: https://drive.google.com/file/d/1AjY8DD-m5hrZaTiKYrRSVX1_zPH03CLc/view?usp=drivesdk

    But... if you look at the right side of my video you see a vertical flickering portion, which I want to crop.

    Would it be better for me to upscale the video a bit more than I intend to, and then crop the video down to 1440 x 1152? And if so, what resolution should I upscale to and how much should I then crop afterwards in order to get rid of the flicker?
    Quote Quote  
  2. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    720x576 (1.25:1 or 5:4) isn't the "correct" frame size/ratio, it's only the capture frame size. The display size is 4:3, or 1.333 to 1, effectively 768x576. You can see what it should look like by opening in VLC Player and forcing a 4:3 display (or VDub, right-click on the video display and choose 4:3).

    So, your upscale should be to 1440x1080.

    Re your cropping, IMO there's no need to upscale above and then crop down: I would just crop in a 4:3 ratio (x4 off the sides, x3 off the top+bottom) then upscale to 1440x1080. The problem with cropping back down is you have to get it exact or you'll need to resize again.

    BUT! Make sure you de-interlace first, before any cropping; if you crop before deinterlacing, you may mess up the field order and end up with jaggies on your Progressive encode.

    FYI, I'd suggest capturing with the audio on PCM(WAV). That will yield the best audio quality. You can MP3 (or AAC) it later.
    Last edited by Alwyn; 28th Oct 2024 at 18:04. Reason: Punctuation.
    Quote Quote  
  3. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Thanks for your detailed answer!

    Do you suggest I crop first, then upscale? Or upscale to 11440x1080, then crop, and finally upscale again?
    Quote Quote  
  4. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Crop then upscale.
    Quote Quote  
  5. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    I'm assuming the source is an analog tape, So the legal resolution is 702 to 704 by 576, You first de-interlace, then crop and then resize, Your frame needed cropping 2 lines each from top and bottom, 4 pixels from the left and 16 pixels from the right which is within the legal aspect ratio, Here is what it would look like:
    Image Attached Files
    Quote Quote  
  6. Originally Posted by dellsam34 View Post
    I'm assuming the source is an analog tape, So the legal resolution is 702 to 704 by 576, You first de-interlace, then crop and then resize, Your frame needed cropping 2 lines each from top and bottom, 4 pixels from the left and 16 pixels from the right which is within the legal aspect ratio
    +1, exactly for this analog tape capture.
    Quote Quote  
  7. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    I see. As of now I have deinterlaced and upscaled in Hybrid to 1440x1152 in 8000 kbps, reducing their file size from about 25GB to 3GB

    But what I should do is:
    1. Deinterlace in Hybrid, no upscaling, in 8000 kbps (thus reducing the file size)
    2. Crop image to 4:3
    3. Upscale in Hybrid to 1440x1080 with nnedi3 in a higher bitrate?
    Quote Quote  
  8. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    You do all those before compression or encoding otherwise you will be losing quality every time you do a step.
    Quote Quote  
  9. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    @Jokris, what's your exact workflow? Are you cropping in Hybrid too? If cropping externally, export out of Hybrid after deinterlacing in a lossless codec such as HUFF, UT or FFV1 (can't remember exactly what lossless AVI options are any more). Then crop and export/save as.

    Otherwise, you should be able to do the whole lot in Hybrid as it does have a cropping function (not that I know how to use it). So, Deinterlace, crop, resize then export/save as.

    @Dellsam, you need to take another couple of pixels off the bottom there.
    Quote Quote  
  10. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Hi Alwyn

    My workflow now is to both deinterlace and upscale in nnedi3 Hybrid at the same time (in 8000 kbps) in Hybrid, outputting a deinterlaced file with higher resolution but much smaller file size.

    I don't know what possible setting to use if I want to only deinterlace in Hybrid, without compressing the file size?

    Cropping I intend to do in VirtualDub
    And after cropping then upscale with nnedi3 in Hybrid I guess?
    Quote Quote  
  11. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    I don't know what possible setting to use if I want to only deinterlace in Hybrid, without compressing the file size?
    After your deinterlacing, you "save as" with one of the lossless AVI codecs. You don't set the bitrate for those; it's fixed.

    Then import that AVI file into VDub, crop and export out as AVI again, then upscale in Hybrid and finally export into MP4 eg H264 codec.

    But as I say, see if you can do it all in Hybrid. That will save a lot of fiddling around going out and back to Hybrid.

    I used to use a similar workflow, where I would use QTGMC in Hybrid to deinterlace, then export that into AVI for VDub. But then I stay in VDub for the cropping and resizing and finally MP4 export. I now just use AVISynth into VDub to avoid double-handling.

    Hybrid though does have other features, such as noise reduction, which you may find useful if you don't get into AVISynth.
    Quote Quote  
  12. Why the heck so complicated? Once you are in Hybrid one can do cropping, correct resizing and upscaling, denoising etc. all in the same tool.
    But yes, to each his own.
    Quote Quote  
  13. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Why the heck so complicated?
    If that's directed at me, read my posts again.
    Quote Quote  
  14. Originally Posted by Alwyn View Post
    Why the heck so complicated?
    If that's directed at me, read my posts again.
    Directed to anyone jumping unnecessarily (possibly damaging the video) from tool to tool, back and forth
    Quote Quote  
  15. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Originally Posted by Sharc View Post
    Originally Posted by Alwyn View Post
    Why the heck so complicated?
    If that's directed at me, read my posts again.
    Directed to anyone jumping unnecessarily (possibly damaging the video) from tool to tool, back and forth
    Such as myself
    Lack of experience I guess, but I will make a try to do everything in Hybrid
    Quote Quote  
  16. Originally Posted by Jokris View Post
    Originally Posted by Sharc View Post
    Originally Posted by Alwyn View Post
    Why the heck so complicated?
    If that's directed at me, read my posts again.
    Directed to anyone jumping unnecessarily (possibly damaging the video) from tool to tool, back and forth
    Such as myself
    Lack of experience I guess, but I will make a try to do everything in Hybrid
    Good investment of your time, same with learning Avisynth basics
    Quote Quote  
  17. Originally Posted by Jokris View Post
    I will make a try to do everything in Hybrid
    In case it helps with your source here a proposal for the settings in Hybrid for
    - cropping + resizing to square pixels 1440x1080
    - deinterlacing with QTGMC

    Edit: and you don't need to worry about the order of the steps. Hybrid takes care of it.
    Image Attached Thumbnails Click image for larger version

Name:	crop-resize.png
Views:	27
Size:	38.6 KB
ID:	83156  

    Click image for larger version

Name:	deinterlacing.png
Views:	18
Size:	46.4 KB
ID:	83157  

    Last edited by Sharc; 28th Oct 2024 at 08:34.
    Quote Quote  
  18. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    Order matters, He could reverse the field order if he doesn't de-interlace first. Also you can't crop after resize, the resolution will not be legal.
    Quote Quote  
  19. Originally Posted by dellsam34 View Post
    Order matters, He could reverse the field order if he doesn't de-interlace first. Also you can't crop after resize, the resolution will not be legal.
    Yes, order matters definitely. What I am saying is that Hybrid takes care of applying the filtering order correctly by default - unless one intentionally wants to customize it for some reason. Filter order customization is also supported by Hybrid. It's not an easy tool for rookies - I agree. It does and "adjusts" many things automatically correct though, and one can inspect the Avisynth or Vapoursynth script which it creates.
    It may fail when it gets wrong info from wrongly flagged sources for example, which may require manual interaction to set it right. Like in the OPs example where the Lagarith codec (or Huffy) doesn't flag the field order and Hybrid defaults to BFF.
    A handy feature is that it installs many Avisynth and Vapoursynth filters and one doesn't have to care about dependencies (like those of QTGMC for example) to make it work.
    Last edited by Sharc; 28th Oct 2024 at 10:13.
    Quote Quote  
  20. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Hello agai, I tried doing everything (TFF deinterlacing, cropping, upscaling) in Hybrid this time using these settings:

    Image
    [Attachment 83195 - Click to enlarge]

    Image
    [Attachment 83196 - Click to enlarge]


    Before:
    https://drive.google.com/file/d/1dj6wIrx3nhgzzLaUOc2dyXjlALi_Gvlh/view?usp=sharing

    After:
    https://drive.google.com/file/d/1aP-Hx4u6g7urPxIRF_V72nrbN5jQPMy_/view?usp=sharing

    Is it only me or is the edited file more shaky and border of vertical objects "jump" more when panning?
    Quote Quote  
  21. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    You've got the field order around the wrong way. If you open the "after" file in VDub and step through each frame, you'll see it jumping forward then back then forward.

    I'd recommend AAC for audio; PCM might not play in some players. "MOV" may also be problematic. I'd suggest MP4 as the wrapper.

    Apart from those issues, it looks good to me.
    Last edited by Alwyn; 30th Oct 2024 at 00:46.
    Quote Quote  
  22. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Something odd going on here. The "before" file is bottom field first, but it's an analogue capture, so it would normally be TFF. Open in VDub, apply the Deinterlace filter (YADIF and Double Frame Rate) and choose TFF or BFF to work out the field order.
    Quote Quote  
  23. Originally Posted by Alwyn View Post
    Something odd going on here. ....
    The currently uploaded file 'Hybrid-before.avi' is BFF (bottom field first). There has been some previous file 'test file.avi' (or maybe I picked the wrong file) which was TFF.
    The Lagarith codec doesn't flag the field order, so one has to set it manually.
    For the current 'Hybrid-before.avi':

    (on a sidenote: it's quite exceptional that PAL video is BFF)
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot 2024-10-30 083816.png
Views:	9
Size:	54.0 KB
ID:	83200  

    Last edited by Sharc; 30th Oct 2024 at 02:04. Reason: sidenote added
    Quote Quote  
  24. Member
    Join Date
    Aug 2023
    Location
    Sweden
    Search PM
    Thanks for your help and patience!

    I will try again, hopefully get it right this time
    Quote Quote  
  25. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Originally Posted by Sharc
    The currently uploaded file 'Hybrid-before.avi' is BFF (bottom field first).
    Yes, I did say that in the very next sentence.

    Originally Posted by Sharc
    The Lagarith codec doesn't flag the field order, so one has to set it manually.
    None of the common analogue AVIs flag the field order.
    Quote Quote  
  26. Originally Posted by Alwyn View Post
    None of the common analogue AVIs flag the field order.
    There are no 'analogue AVIs'. But I guess I understand what you are trying to communicate .....
    Quote Quote  



Similar Threads

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