#1  
12-04-2022, 03:39 AM
Hushpower Hushpower is online now
Premium Member
 
Join Date: Apr 2020
Posts: 512
Thanked 93 Times in 89 Posts
I'd appreciate comments, positive/neutral or otherwise on this technique for cropping 4:3 videos in VDub after I've deinterlaced them with the deinterlace filter.

1. Crop with the crop filter; make the number of pixels cropped from the sides 33% more than the number of pixels cropped from top and bottom (to retain basic 4:3 geometry).

2. Resize with the Resize filter: Aspect Ratio section to "disabled", then "Absolute", 720x576 (or as required).

3. Save as using the x264 8 bit Preset, SAR of 16:15 (1:1 for 1440x1080).

Thanks for any feedback.

I don't like hairy side edges nor headswitching noise.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-04-2022, 10:49 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 12,309
Thanked 2,270 Times in 1,943 Posts
Rule #1 is do not use VirtualDub2 or FM (pre-2) for this. It has serious errors here, glitches the video, adds green lines, etc. It just cannot handle masking (resize+crop). Stick to VirtualDub 1.9, maybe 1.10.

If you change from 4:3 to 1:1, remember to first crop it to 704x576 before the resize to 1:1. Otherwise AR will be off.

It seems fine to me. Double check those numbers, verify AR with overlay script.

- 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
  #3  
12-04-2022, 11:23 PM
Hushpower Hushpower is online now
Premium Member
 
Join Date: Apr 2020
Posts: 512
Thanked 93 Times in 89 Posts
On the 704>720 crop, I must admit I don't understand this. Is the purpose to remove the black sides bars because captures are squashed in a bit by the capture card? So, even though the actual frame is 720 wide, the actual video image part is only inside the black sides, nominally 704 wide?

The crop to 704, then expand to 720, is intended to remove the black sides and restore the capture to what would be on the tape?

In other words, the video part of the frame after capture is actually squashed in slightly, by a factor of 704/720?

Thanks for any insight.

-- merged --

I think I've worked it out, as I realised that that image is of a perfectly round object (engine). So the black sides have to be cropped off and then made 720, and the image becomes round. I suppose the 704 is an average value. In this case, I had to crop off more.


Attached Images
File Type: jpg Cropping to 704 annotated.jpg (122.0 KB, 8 downloads)
Reply With Quote
  #4  
12-05-2022, 10:11 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,536
Thanked 444 Times in 411 Posts
No, cropping to 704 is to get the right aspect ratio, it will not get rid of that junk completely, Never resize back to 720 and never take vdub display as a reference, Either encode 704 with 4:3 flag or resize to square pixel resolution such as 1440x1080.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
  #5  
12-05-2022, 06:31 PM
Hushpower Hushpower is online now
Premium Member
 
Join Date: Apr 2020
Posts: 512
Thanked 93 Times in 89 Posts
Thanks Latreche, another question:

I see now the 704 achieves the right aspect; but wouldn't that only be if I then stretched it back out to 720 or 1440 (z1080)? If it still leaves some crud on the edges and needs more trimming, is my technique of proportional trimming of the top and/or bottom to keep the 4:3 valid?
Reply With Quote
  #6  
12-05-2022, 06:46 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,536
Thanked 444 Times in 411 Posts
720 is not square pixel resolution nor the right ratio, It's just a capture resolution. If edges are a concern mask them with black borders, or crop off entirely and resize to at least 1440x1080, Anything lower will produce jitter, in other words the higher the resolution the less resizing jitter there is.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
  #7  
12-05-2022, 07:14 PM
Hushpower Hushpower is online now
Premium Member
 
Join Date: Apr 2020
Posts: 512
Thanked 93 Times in 89 Posts
OK thanks, got it.
Reply With Quote
  #8  
12-08-2022, 05:06 AM
Cortez Cortez is offline
Free Member
 
Join Date: Feb 2020
Posts: 109
Thanked 0 Times in 0 Posts
Resizing from 720x480 to 1440x1080 does actually improve quality? Now i try to encode the captured lossless raw (with unpopular HuffYUV_mt) to something more known format like x264 as Hushpower suggested with VirtualDub2, but as i see LordSmurf's VirtualDub 1.9.11 has also a preinstalled x264vfw-H.264/MPEG-4 AVC codec. VirtualDub2 is useless or just the cropping and resizing functions?
Reply With Quote
  #9  
12-08-2022, 09:47 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,536
Thanked 444 Times in 411 Posts
I use vdub2 for processing, works fine, It is not recommended for capturing. Also it is more accurate to crop to 704 first before you resize to 1440x1080.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualDub resizing filters for Youtube? latreche34 Encode, Convert for streaming 1 09-02-2020 01:44 AM
VirtualDub border masking? (not cropping!) friendly_jacek Edit Video, Audio 38 09-21-2018 03:34 PM
Two VirtualDub questions: cropping artifact, file splitting start/end points ashworth080142 Restore, Filter, Improve Quality 5 07-23-2014 07:05 AM
Resizing normal cover to fit 7mm case manthing Project Planning, Workflows 2 03-30-2010 03:46 PM
Resizing mpeg-2 to make them dvd compliant wigam Edit Video, Audio 4 07-11-2005 09:20 AM

Thread Tools



 
All times are GMT -5. The time now is 06:06 PM