The following pics come from an HD capture I made which using what I assume is unconverted material where the video size 1280x720 with black bars on the right and left sides. What I would like to do it crop and resize this and encode it to something smaller with xvid, probably something like 640x___ (or whatever else might be ideal) similar to a "scene" release. The problem is that if I try to make it straight 4:3 by cropping it to 960x720 and resizing it I'm still left with black bars on each side as seen in the second image. If I crop all of that out I'm left an image size of 942x690 which is not exactly a 4:3 ratio. I understand that 4:3 television is broadcast in 720x480, or least it used to be but I'm probably getting this wrong so I'm wondering how that might also factor into things.
Thanks
Original image (1280x720):
Cropped to 4:3 (960x720):
Cropped to remove remaining black bars (942x690):
![]()
+ Reply to Thread
Results 1 to 15 of 15
-
-
Exactly what you want to do will depend on the capabilities of the player. But assuming you want square pixel encoding for Divx/Xvid or h.264 encoding:
Just resize your last image from 942x690 to 640x480 (or whatever 4:3 frame size you want). Nobody will notice the ~2 percent error.
For more accurate resizing trim a total of 22 more lines from the left and right sides to create a 920x690 frame, then resize to 640x480. Where does 920 come from? 690 * 4 / 3. Or trim less from the top and/or bottom leaving a 942x706 frame (which will leave some black border) and resize to 640x480. 942 * 3 / 4 ~= 706. -
Originally Posted by jagabo
A few follow-up questions if you don't mind:
Are the pixels not originally square and does that differ is it's a SD or HD broadcast? If I recorded a 720x480 SD broadcast would I need to resize to 640 to obtain a normal look? I guess that also would depend on the monitor whether it's a 4:3 computer monitor or a 16:9 LCD TV which is kind of confusing.
Also, is there any downsides to creating a vid that's, say, 624x448 (multiples of 16) that's closer to the cropped version I posted or would it just get stretched out to 4:3 when in full screen mode and thus make it kind of pointless? -
In general the frame size does not directly determine the final display aspect ratio. The DAR is determined by the frame size and the shape of individual pixels:
DAR = SAR * PAR
DAR = Display Aspect Ratio, the final shape of the displayed picture
SAR = Storage Aspect Ratio, the frame size
PAR = Pixel Aspect Ratio, the shape of individual pixels
So basically, any frame size can encode any display aspect ratio.
Analog broadcast has no pixels so none of this applies.
Digital broadcast supports several different frame sizes, some square pixel, some not. 1920x1080 and 1280x720 HD broadcasts in the USA are square pixel -- giving 16:9 DAR. But 1440x1080 is also valid and uses non square pixels resulting in a 16:9 DAR. A 720x480 4:3 broadcast should be resized to 640x480 (or any 4:3 SAR) if you want to use square pixels. You can also use the original frame size with appropriate PAR flags to maintain 4:3 DAR.
DVD usually uses a 720x480 frame size with non-square pixels to make a 4:3 or 16:9 DAR.
The playback device should take into account the SAR and PAR to produce the correct DAR. Of course, not all do. Some Divx/DVD players will display DAR = SAR. Some older players simply stretched everything to 4:3 DAR. -
Here's are some examples:
An NTSC 4:3 DAR DVD contains the 4:3 image in a 704x480 frame with 8 pixels of padding at the left and right sides of the frame.
DAR = SAR * PAR
DAR = 704:480 * 10:11
DAR = (704/480) * (10/11)
DAR = 1.467 * 0.909
DAR = 1.333 = 4:3
An NTSC 16:9 DAR DVD contains the 16:9 image in a 704x480 frame with 8 pixels of padding at the left and right sides of the frame.
DAR = SAR * PAR
DAR = 704:480 * 40:33
DAR = (704/480) * (40/33)
DAR = 1.4667 * 1.2121
DAR = 1.778 = 16:9 -
Why I got you here I ran into another situation...
I got a DVD file which is 720x480 interlaced at 29.97fps and it's a sports recording. I want to encode it with xvid into an avi file and make the resolution progressive as well. My question is how to exactly resize it and what the framerate should be. I think generally if this were a film I would make it 24fps since that's what film is recorded at but here it seems I could make it either 30fps or 60fps by turning the 60 fields per second into 60 frames per second. Then again I believe each field is 240x720 so it seems like it order to make it 480 there would have to be some added lines of resolution by doubling lines or some other method though I'm not even sure that would work...it racks my brain just thinking about it. The other option would be to make it 30 frames per second by combined the 60 fields into 30 frames but I may have this wrong as well.
Also, as far as resizing...I think the correct way to do it would be to crop 8 pixels from each side and then resize the width to 640. Is this right?
Thanks again -
Originally Posted by mt123
Also, as far as resizing...I think the correct way to do it would be to crop 8 pixels from each side and then resize the width to 640. Is this right?
You could always run the DVD through AutoGK and let it do the 'thinking' for you. -
Do you happen to know if there is a quality difference between regular deinterlace to 29.97 and a bob deinterlace to 59.94? It seems there would be twice as much information for the latter and I'm wondering if there is some sort of sacrifice in doing so. For instance if there is originally 60 fields per second/30 frames per second with it being interlaced would it combine those 60 fields to create 30 progressive frames? Would the bob method take the 60 fields and somehow turn them into 60 progressive frames by manipulating them in order to achieve 480 lines of vertical resolution since I believe each field would originally be 240x720?
Also, are you familiar with autogk because I actually have the latest version but I've never been able to figure out how to do what your suggesting because there doesn't seem to be a DVD input option as shown below.
Version 2.55 (my screenshot):
Version 2.01 (from videohelp):
Maybe I just need to download an older version but I find it hard to believe that they would remove such an option
Thanks -
load the .ifo file (of the movie, not the menu).
its pretty straight forward. -
Originally Posted by mt123Originally Posted by manono
Would the bob method take the 60 fields and somehow turn them into 60 progressive frames by manipulating them in order to achieve 480 lines of vertical resolution since I believe each field would originally be 240x720?
Also, are you familiar with autogk because I actually have the latest version but I've never been able to figure out how to do what your suggesting because there doesn't seem to be a DVD input option as shown below.
I'm using the latest version 2.55. -
Xvid supports interlaced encoding. Unfortunately, many players won't handle it properly. If you want the smoothest motion bob (smart bob) to 60 fps. But again, some players will not be able to handle 60 fps. 30 fps is safest but will give noticeably less smooth motion.
Try VirtualDub's Deinterlace in Yadif, double frame rate (bob) mode. It does an ok job. Certainly better than a simple bob. If you want to get more adventurous try AviSynth's TempGaussMC_beta1(). -
Did you not see what I wrote, or not understand it?
Yes, I'm very familiar with it. Decrypt just the video (DVDDecrypter in IFO Mode), load either the IFO or the first VOB file. If there's more than one VOB the rest get loaded automatically. It won't give you a bobbed video back, though, but a 29.97fps deinterlaced AVI.
I got another question I hope you or anyone else might be able to help me with. I capture HD content, mainly sports, and I often don't need the entire recording. Instead I like to make a cut at the beginning and end of the broadcast (when there no commercials are of course). I know I could obviously cut the file using an external h.264 cutter and import that into the program but most of them aren't very accurate or give pixelated cuts which I assume is from cutting on the b and p frames even when told not to. With virtualdub I can import to the original ts/h.264 file and create a mark-in and mark-out and that works great, very accurate, but this method is a little bit of a pain because it doesn't deal with VBR audio very well so I have to create a wav file and then turn that it's a VBR mp3 file using another program and then mux it in manually at the end. I also have to use an Xvid calculator to figure out what bitrate to use in order to create a 700mb file and so on. With autogk it's a breeze but of course it's designed to be a simple program and I get that it's probably let me do that so I guess I'm wondering if this is something the full version could do or if there is another all-in-one type of program that could achieve this as well. -
Originally Posted by jagabo
-
Originally Posted by mt123
With autogk it's a breeze but of course it's designed to be a simple program and I get that it's probably let me do that so I guess I'm wondering if this is something the full version could do or if there is another all-in-one type of program that could achieve this as well.
Similar Threads
-
Resize & Crop MKV
By Kand in forum Video ConversionReplies: 2Last Post: 22nd Apr 2012, 13:50 -
Tool to aid in crop+resize
By Quaraxkad in forum Newbie / General discussionsReplies: 4Last Post: 26th Sep 2009, 18:16 -
Can I crop and resize video?
By maldb in forum EditingReplies: 6Last Post: 13th Jun 2009, 19:06 -
Video Crop and resize
By quxote in forum EditingReplies: 4Last Post: 27th Feb 2009, 11:48 -
Crop, then resize to 240x320?
By miamicanes in forum EditingReplies: 2Last Post: 29th Dec 2008, 23:56