View Full Version : Crop for DV
alexx7777
28th July 2018, 10:40
Need to make a Crop for the video. Video 720x576 50 i (YUY2). In order to make a crop and again to restore it to 720x576 in compliance with the proportions need to cut at the same length?
For example :
SeparateFields()
crop(20,20,-20,-20)
Lanczos4Resize(720, 288)
#Spline64Resize(720,288)
Weave()
Right?
wonkey_monkey
28th July 2018, 12:03
DV does not have square pixels so you should not be cropping by the same amount all around. Furthermore, it may (should) or may not include nominal analogue blanking, which means the "active picture width" is only 702 pixels (for PAL, which this is).
You should not separatefields() and then resize vertically - avoid resizing vertically at all, if you can, but if you must, use (at the very least) bob(), or something much better, like yadif() for speed or qtgmc() for best quality. Then use separatefields(), selectevery(4,0,3) (or 4,1,2), and weave() to reinterlace it.
What's the desired output here? A file to play on a computer? DVD?
alexx7777
28th July 2018, 12:58
What's the desired output here? A file to play on a computer? DVD?
Thank you!
To reproduce on a computer. The final result I want to translate into progressive 50p.
Trim the video and restore it to 720x576.
tebasuna51
28th July 2018, 17:54
The attached image don't help at all.
Load the video in VirtualDub2 and File -> Export -> Single Image... Sample.png
If you want progressive 50p:
Use QTGMC to deinterlace, crop after as you need ( I only need a 0,0,4,0 -> 720x572) and encode without resize with x264/x265 using a --sar 13:12 (at least with my sources) to restore the aspect ratio (DV does not have square pixels).
SeeMoreDigital
29th July 2018, 12:18
I suppose the only thing the image does confirm is that your 720x576 'Digital Video' source is 4:3 and not 16:9.
So if you want to re-encode with square pixels you could use 768x576.
alexx7777
29th July 2018, 16:31
I suppose the only thing the image does confirm is that your 720x576 'Digital Video' source is 4:3 and not 16:9.
So if you want to re-encode with square pixels you could use 768x576.
Yes, the source is 720x576, I want to crop the black edges and restore the image to 720x576 again.
alexx7777
29th July 2018, 16:34
The attached image don't help at all.
Load the video in VirtualDub2 and File -> Export -> Single Image... Sample.png
If you want progressive 50p:
Use QTGMC to deinterlace, crop after as you need ( I only need a 0,0,4,0 -> 720x572) and encode without resize with x264/x265 using a --sar 13:12 (at least with my sources) to restore the aspect ratio (DV does not have square pixels).
After QTGMC I want to video Deshaker. Before stabilization (after deinterlacing) the video will be encoded by Lagirith.
The picture was reduced by half (50%) in Paint. The source was larger in size
manono
30th July 2018, 08:51
Trim the video and restore it to 720x576.
With black bars added back? Probably not.
After cropping, my guess is it'll be 704x576. You didn't follow instructions about how to create a useful picture, so I'm only guessing. Can't you use that for your final encode? You won't be resizing so no degradation of the quality because of the resizer used.
alexx7777
30th July 2018, 09:53
You didn't follow instructions about how to create a useful picture, so I'm only guessing.
What instruction should I do?
wonkey_monkey
30th July 2018, 11:23
After cropping, my guess is it'll be 704x576.
For PAL it should be 702x576.
manono
30th July 2018, 19:41
What instruction should I do?
Load the video in VirtualDub2 (https://www.videohelp.com/software/VirtualDub2) and File -> Export -> Single Image... Sample.png
(Padding so I can post the quotations)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.