Go Back    Forum > Digital Video > Video Project Help > Restore, Filter, Improve Quality

Reply
 
LinkBack Thread Tools
  #1  
04-22-2024, 09:50 PM
AstroLuna AstroLuna is offline
Free Member
 
Join Date: Apr 2024
Posts: 6
Thanked 0 Times in 0 Posts
RE: Cropped captured AVI on VirtualDub causes odd deinterlace effect on Hybrid?

So I have captured an NTSC Video8 tape using VirtualDub with the HuffYUV codec. As I understand, it is captured at 720x480, which is a stretched 3:2 scale (SAR).

I've been following this guide (link) to crop the lossless capture in VirtualDub. After cropping, I render the newly "lossless" AVI and process it with Hybrid, applying only deinterlacing (QTGMC). However, I've noticed that the resulting mkv file appears wobbly. I suspect this may be due to incorrect cropping, despite following the guide's instructions to remove overscanning and headswitching by removing an even number of pixels on each side.

I'd really appreciate some guidance on this. Here are my settings and the video files:

https://drive.google.com/drive/folde...VB?usp=sharing
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-22-2024, 10:07 PM
Aya_Rei's Avatar
Aya_Rei Aya_Rei is offline
Premium Member
 
Join Date: Jul 2023
Posts: 37
Thanked 12 Times in 11 Posts
Hm, maybe it's due to a lack of a line TBC inside the camcorder you use? What camcorder model are you using. The rather shaky footage makes the wiggling difficult to pay attention to, but it is present.

I myself do cropping, deinterlacing and resizing all in Hybrid, if that would help make any sort of difference.
Reply With Quote
The following users thank Aya_Rei for this useful post: lordsmurf (04-22-2024)
  #3  
04-22-2024, 10:16 PM
Feedbucket Feedbucket is offline
Free Member
 
Join Date: Jun 2017
Location: NYC
Posts: 46
Thanked 10 Times in 10 Posts
Looks like you're resizing before the deinterlace. That alters the geometry of each field (each line takes up more than 1px, but the deinterlacer still expects 1px per line), so you should hold off on that kind of thing til afterwards.


Attached Images
File Type: jpg Untitled.jpg (47.1 KB, 8 downloads)
Reply With Quote
The following users thank Feedbucket for this useful post: lordsmurf (04-22-2024)
  #4  
04-22-2024, 10:18 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,701
Thanked 2,471 Times in 2,101 Posts
You cannot crop interlaced footage, and retain the original frame size. It must be masked/padded, which is what the guide shows.
https://www.digitalFAQ.com/forum/vid...erly-crop.html

Or resize after deinterlace.

Also, why deinterlace? Do not do it "just because", but for specific reasons.

Retain the original interlaced master, save a copy as deinterlaced.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #5  
04-22-2024, 10:40 PM
AstroLuna AstroLuna is offline
Free Member
 
Join Date: Apr 2024
Posts: 6
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Aya_Rei View Post
Hm, maybe it's due to a lack of a line TBC inside the camcorder you use? What camcorder model are you using. The rather shaky footage makes the wiggling difficult to pay attention to, but it is present.

I myself do cropping, deinterlacing and resizing all in Hybrid, if that would help make any sort of difference.
The wobbling doesn't happen if I deinterlace an AVI file that is not cropped. I am using a Sony camcorder that doesn't have a TBC, however, I'm using a DMR-ES15 as a "TBC". this is my workflow:

Sony CCD-TRV12 →Panasonic DMR-ES15 → IO-DATA GV-USB2 → VirtualDub 1.9.11 → Hybrid

Quote:
Originally Posted by Feedbucket View Post
Looks like you're resizing before the deinterlace. That alters the geometry of each field (each line takes up more than 1px, but the deinterlacer still expects 1px per line), so you should hold off on that kind of thing til afterwards.
Would it be more effective to perform both the cropping and deinterlacing in Hybrid simultaneously, rather than cropping in VirtualDub before deinterlacing? It seems like I might be approaching the process in the wrong order.

Quote:
Originally Posted by lordsmurf View Post
You cannot crop interlaced footage, and retain the original frame size. It must be masked/padded, which is what the guide shows.
https://www.digitalFAQ.com/forum/vid...erly-crop.html

Or resize after deinterlace.

Also, why deinterlace? Do not do it "just because", but for specific reasons.

Retain the original interlaced master, save a copy as deinterlaced.
If the guide shows how to mask the capture, wouldn't cropping be unnecessary? In the second step, it demonstrates covering the undesired areas of the picture, which aligns with my goal. How should I approach eliminating overscanning and headswitching in the video? Deinterlace first, then mask/crop?

I've kept the original capture untouched. I simply use that lossless file to generate a deinterlaced video through Hybrid so that I can stream it to my devices.
Reply With Quote
  #6  
04-22-2024, 10:44 PM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,701
Thanked 2,471 Times in 2,101 Posts
Quote:
Originally Posted by AstroLuna View Post
If the guide shows how to mask the capture, wouldn't cropping be unnecessary?
No. That's not how VirtualDub works. "masking" is technically the action of cropping + adding back black pixels.

Quote:
In the second step, it demonstrates covering the undesired areas of the picture, which aligns with my goal.
Cannot pick steps, must follow all.

Quote:
How should I approach eliminating overscanning and headswitching in the video? Deinterlace first, then mask/crop?
Why eliminate? What's wrong with just masking? You don't see either on your TV. The masking to black just saves bitrate and file size.

But yes, you can deinterlace first, crop second. But "should you" is the question to first ask yourself.

Quote:
I've kept the original capture untouched. I simply use that lossless file to generate a deinterlaced video through Hybrid so that I can stream it to my devices.
What devices?

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #7  
04-22-2024, 11:58 PM
AstroLuna AstroLuna is offline
Free Member
 
Join Date: Apr 2024
Posts: 6
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
Why eliminate? What's wrong with just masking? You don't see either on your TV. The masking to black just saves bitrate and file size.
I am a little confused. Do my attached images depict cropping or masking? I attempted to follow the guide provided step by step. This involved setting the resolution to 720 x 480 and adjusting the X1 offset to 12, X2 offset to 8, Y1 offset to 2, and Y2 offset to 6. These adjustments seemed to conceal overscanning and head-switching, but unfortunately, they led to some deinterlacing problems with Hybrid.


Quote:
Originally Posted by lordsmurf View Post
What devices?
Smartphones, TVs, basically sharing them online via YouTube, Google Photos or messaging apps.


Attached Images
File Type: png resize settings (resolution).PNG (22.6 KB, 1 downloads)
File Type: png crop settings.PNG (710.1 KB, 1 downloads)
Reply With Quote
  #8  
04-23-2024, 12:09 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,701
Thanked 2,471 Times in 2,101 Posts
Given all the info, deinterlace first, crop + resize next, That easy here.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #9  
04-23-2024, 12:46 AM
AstroLuna AstroLuna is offline
Free Member
 
Join Date: Apr 2024
Posts: 6
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
Given all the info, deinterlace first, crop + resize next, That easy here.
Is there a way to use QTGMC deinterlacer with VirtualDub? I've heard that using Yadif isn't as effective as QTGMC.

My goal is to handle all the cropping, resizing, and deinterlacing in the correct sequence within VirtualDub since it would keep the consistency of using the HuffYUV codec. With Smart Rendering, i noticed that it maintains a bitrate similar to the original capture, almost appearing lossless. I'm hesitant about switching between VirtualDub and Hybrid as it would entail re-encoding from HuffYUV to h.264. While I don't mind the extra storage space, I want to keep one AVI file untouched and create another that's cropped and deinterlaced. Then, I plan to process the latter with Hybrid for final distribution.
Reply With Quote
  #10  
04-23-2024, 01:39 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,701
Thanked 2,471 Times in 2,101 Posts
No QTGMC in VirtualDub, I wish.

However, Hybrid can output as FFHuffyuv (FFMPEG version), Ut Video, unofficial ProRes422, or FFV1. So it has lossless output options. (I need to see if he would consider adding original Huffyuv and/or Lagarith.)

For the sake of longevity, future codec obsolescence, I'd suggest the unofficial ProRes422, or next maybe Ut, from those choices. Not the FFHuffyuv, as it's not the same, and not as widely compatible.

So capture = Huffyuv archived master
ProRes422 (in .mov container) = deinterlaced master
And from that ProRes422, make the H.264 Or 265 in Hybrid.

With QTGMC, try "faster" preset first, not slowest. Slowest blurs.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #11  
04-23-2024, 01:32 PM
AstroLuna AstroLuna is offline
Free Member
 
Join Date: Apr 2024
Posts: 6
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
No QTGMC in VirtualDub, I wish.

However, Hybrid can output as FFHuffyuv (FFMPEG version), Ut Video, unofficial ProRes422, or FFV1. So it has lossless output options. (I need to see if he would consider adding original Huffyuv and/or Lagarith.)

For the sake of longevity, future codec obsolescence, I'd suggest the unofficial ProRes422, or next maybe Ut, from those choices. Not the FFHuffyuv, as it's not the same, and not as widely compatible.

So capture = Huffyuv archived master
ProRes422 (in .mov container) = deinterlaced master
And from that ProRes422, make the H.264 Or 265 in Hybrid.

With QTGMC, try "faster" preset first, not slowest. Slowest blurs.

Thank you for your guidance. I have successfully managed to solve my initial problem by doing the following process under your recommendations:
  1. Capture tape with VirtualDub (with HuffYUV codec) [Archived master]
  2. Deinterlace captured AVI with Hybrid (QTGMC faster) using ProRes codec. [Deinterlaced master]
  3. Take .Mov and apply Crop/mask + Resize + PAR setting with Hybrid and encode to x264. [For sharing/streaming]
This gives the exact picture I was hoping to get from the start. I have two questions regarding the above:
  • Firstly, when it comes to QTGMC deinterlacing with ProRes422, I'm debating between using the LT or normal profile. While ProRes is considered "visually lossless," I wonder if the LT profile might be more effective. My original AVI capture file has a bitrate of 63.3 Mb/s. When encoding with the LT profile, I get a bitrate of 58.5 Mb/s, compared to 84.9 Mb/s with the normal profile. It seems the LT profile mirrors the original bitrate more closely, despite being lower. Which profile do you recommend using?
  • Secondly, in the third step mentioned above, where I'm cropping/masking in Hybrid, I'm removing 20 pixels horizontally and 8 pixels vertically to "hide" the headswitching and overscanning, resulting in a 700x472 resolution before resizing. Now, when I resize back to 704x480, does this constitute as upscaling or simply resizing? What exactly does this step do to the image? Could I unintentionally degrade picture quality by resizing it to a larger resolution than its original size?

Last edited by AstroLuna; 04-23-2024 at 01:43 PM. Reason: QTGMC
Reply With Quote
Reply




Tags
crop, cropping, hybrid, virtualdub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deinterlace a DVD lossy using QTGMC hybrid? jedi55 Restore, Filter, Improve Quality 4 04-20-2022 04:51 AM
How to crop and deinterlace in Hybrid? VHS_UK Restore, Filter, Improve Quality 5 03-11-2022 12:34 PM
Virtualdub Deinterlace/Scan Type Issue gloubu Encode, Convert for streaming 2 01-02-2021 07:27 PM
VirtualDub cropped file now larger? Deinterlace for streaming? Squash22 Encode, Convert for streaming 6 06-28-2020 12:05 PM
VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS ELinder Restore, Filter, Improve Quality 0 03-16-2020 09:01 AM




 
All times are GMT -5. The time now is 12:35 AM