I'm still trying to work out what your saying here...Originally Posted by junkmalle
(I know, it's been a long night)... heh... So is Ok to downsize from 720 to 352??
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 121 to 135 of 135
Thread
-
-
Originally Posted by NamPla
-
(Jumping into a conversation late..)
That document is extremely accurate, but complicated.
For more assistance wrapping your head around the issue, see this Doom9 guide, sections 3 though 5.
In summary, The video signal always has 525/625 lines, of which we use 480/576. The horizontal information is an analog wave; it is sampled to get however number of pixels digitally.
A 720 pixel image actually has the same pixel aspect ratio (or should) as a 704 pixel image, just with more picture information on left and right sides (well, most capture cards just pad it with black but nevermind that). This has nothing to do with overscan.
A 352 pixel image has half the image size horizontally of a 704 pixel image.
That is why going from 352 to 720 is slightly wrong; also why going from 720 to 352 is slightly wrong; this is why the AVIsynth manual demonstrates the cropping.
Problem: Most capture cards are poorly designed; they mis-sample and give either too much or too little image pixel per pixel. There is a complicated way of measuring in the doom9 guide.
Whether or not you should use 704x480/576 or 720x480/576 depends on which way is closest; for me with my BT878 with btwincap drivers I actually get the equivilent of 712 pixels at the proper aspect (just stretched out to 720), so I need to resample to 712 and pad 8 pixels. This is preferable to unnecessarily trimming 8 pixels to get down to 704.
This is different for each card; some do better than others. They really should be capturing more of the image at 720, but most just sample the same amount as for 704 for 720, this results in the same amount of picture, just stretched more. If your card does this, you SHOULD NOT be cropping anything to drop to 352. Though you should correct the aspect, since it is out slightly, if you are keeping it 720. The amount to correct depends on the card. Sucks, doesn't it?
Because of the differences between cards, people's results will differ.
I'd like to note that DV devices ALWAYS give the proper amount of image -- it is just crap consumer-level capture devices that screw it up.
It is REALLY REALLY complicated; but when it comes down to it unless your capture card is GROSSLY off (and most of then are only off 5-10 pixels), it doesn't really matter all that much.. your TV is likely worse calibrated than that.
Well, I guess that wasn't much of a summary.. if you aren't really sure still, don't lose any sleep over it. -
Alan69,
Don't take things personal. Nobody said you're wrong (at least I know I didn't), just that you didn't make a fair comparission. Resizing 704 to 352 will no doubt give better result. But we are talking resampling here.
Bicubic and Lancos3 are resizing filters. While they may even out the distortions and cause a more pleasing effect on many pictures, they are not 'more correct' or 'correcting' anything. They are adding an additional distortion, and it does not reduce things it only spreads out the other distortion. 352 cannot display the lower right circle, and it actually takes even more distortion to come up with the graying out vs the wider banding. It is coming up with it's gray by adding more blurriness. While it may seem more correct to some of you to end up with gray, note that this will add yet more softening on a normal picture, as well as adding more encoding time. It only seems more correct for that one case, over an entire random picture it will slightly worsen the picture.
On the other hand, if you were to mathematically resize a picture without resampling (i.e. without modifying its data), you'll get a more accurate image of the original but not as pleasant to the eye. You'll get more pixelation, stuff like stair stepping, jaggies etc. This is reduced significantly if you resize in a fixed ratio, but for video it's still better to resample rathen than resize. Takes longer, distorts the image but it gives a more "real" picture.
iantri,
A 720 pixel image actually has the same pixel aspect ratio (or should) as a 704 pixel image, just with more picture information on left and right sides (well, most capture cards just pad it with black but nevermind that). This has nothing to do with overscan.
A 352 pixel image has half the image size horizontally of a 704 pixel image.
That is why going from 352 to 720 is slightly wrong; also why going from 720 to 352 is slightly wrong
The problem with some poor capture cards is not really connected to this. Assuming you have a DV video and you crop it to 704 (and then resize to 352 or not, doesn't matter), you'll get a different image on different players. I guess that's why all commercial DVDs stick to 720. But the difference is so small that I agree with you - we shouldn't lose any sleep over it . -
On the other hand, if you were to mathematically resize a picture without resampling (i.e. without modifying its data),
-
Originally Posted by NamPla
-
Originally Posted by petar
I did look into this a little, and appearently an mpeg stream can have a horizontal size and a horizontal display size (which is carried in an extension field). This all could be an mpeg thing, not specific to DVD specs. The iso docs are on neuron2's site. From a quick read ... it seems to 2 blocks on the sides of 720 may actually not be used. I asked for a tool that reads this info in a stream at the virtualdub board. A mod there 'fccHandler' recently posted that the color conversion matrix is actually carried in the stream (flag choise of about 4 types). This info is in the same spot as the display size stuff.
Unfortunately mpeg is much looser than the part the DVD uses. Now with DVB, it is hard to get clear info on what applies to what. -
Originally Posted by Wilbert
trevlac,
Another logical explaination is that Software DVD players are not properly/fully implementing the spec. -
Originally Posted by petar
Originally Posted by petar
Summary - 1/2x sample pixels don't line up with 1x sample pixels. The 1/2 sample pixels 'cover' a wider area with a point measurement. NN does keep the old pixel, but this is not the measure we want. The other methods calculate the new pixel.
How I understand it ...
If the pixels are a representation of an analog wave (which for us they are) ... resampling is a 'better' method of a resize. Bicubic, Bilinear, Nearest Neighbor can all be implemented as a resample.
When you do NN and throw away 1/2 the pixels, you are introducing a spatial distortion.
Code:__________|__________ A x x x x B o o C
B - 2x samples
C - 1x samples
NN - Assumes the o's are the same as the x's. Although it looks like you get to keep x's you already had, you really wanted o's.
NN duplicates. Bilinear takes an average. Bicubic estimates the o. Lanczos calculates the o (but it fudges a bit so as to not have an unrealistic calculation).
----------------------
Down sampling is a streatch of my knowledge so be critical.
On the other hand, Up sampilng is quite clear to me ... and shows the flaws in NN. In up sampling ... Lanczos keeps the known samples unchanged. So the statement "But with resampling you're modifying each pixel's data." is not how I see it.
Of course it could be argued that you can not faithfully recreate the analog from samples.
edit
If you want to see what Avery says about his Vdub resize methdos, it is in the following text. Unfortunately when he talks, he tends to leave gaps that my knowledge does not fill in. So read at your own risk
http://virtualdub.everwicked.com/index.php?act=ST&f=7&t=2791&hl=lanczos&s=83eab8ca38eb...be776d1aaf2c9c -
Originally Posted by trevlac
I agree with what you said and goes with what I mentioned before. Don't know why you say you disagree (though only slightly, as you say ).
Maybe I'm just crap at explaining things. I'll try again.
When resizing 704 to 352 and you simply throw away half the pixels, each new pixel in the new image is equal to one pixel in the old one, hence you haven't modified any data. The colours will remain exactly the same. But with resampling (with the exception of NN) you average the values of the surrounding pixels (4, for example for bi-linear) so you may get that every single pixel in the new image will have completely different pixel values to those in the original. That's what I meant by "with resampling you're modifying each pixel's data". But that's normally a good thing to avoid break up of the image features caused by simply throwing away pixels. -
I thought you agreed with Trev?
When resizing 704 to 352 and you simply throw away half the pixels (...)
I'm a bit confused about your post, because later you say something which seems to contradict the quote above
(with the exception of NN) you average the values of the surrounding pixels (4, for example for bi-linear) -
Originally Posted by petar
The colours will remain exactly the same.
But with resampling (with the exception of NN) you average the values of the surrounding pixels (4, for example for bi-linear) so you may get that every single pixel in the new image will have completely different pixel values to those in the original.
That's what I meant by "with resampling you're modifying each pixel's data". But that's normally a good thing to avoid break up of the image features caused by simply throwing away pixels.
Maybe I'm just crap at explaining things. I'll try again. -
Originally Posted by Wilbert
OK, I'll explain myself as simple as possible and please stop chopping half-sentences because this is getting ridiculous. If you're knowledgable on this topic, I'm sure you understand what I mean.
My whole point was that resizing by throwing away pixels (which is NN) doesn't change the pixel values, and though is fast and good to preserve hard edges (for computer generated images for example) is not a good method to use to compare downsized "real" videos. Resampling (with the exception of NN which does the former) assigns new color values to any new pixels it creates, based on the color values of existing pixels in the original. Hence the pixel data changes. Doesn't mean it will happen on the whole image (it may) but that's the idea behind it. Still it's better for "real" videos.
So, I was just trying to distingush between the two. I may not have used the best terminology, but I'm sure you can get the idea behind it.
Alan69, when testing the resizing of 720 to 352 and 704 to 352 used the former. I was just trying to point out that though it will give much better result for 704 to 352 it is not a fair comparisson because the resizing method is not very good for video. -
Sorry, I see that I misread the posts of you. I thought I saw the following
When resizing 704 to 352, you simply throw away half the pixels (...) -
It's cool . English is not my first language so I'm sure I'm not always clear.
Similar Threads
-
What's the best way to Convert 704 to 720? Avisynth or otherwise
By VideoFanatic in forum Authoring (DVD)Replies: 6Last Post: 23rd Sep 2011, 02:19 -
Handbrake: To Crop or Not To Crop
By meldavid in forum DVD RippingReplies: 1Last Post: 31st Aug 2009, 05:54 -
720 x 576 (2703kbps bitrate) AVI for Archos 704
By drstew in forum Portable VideoReplies: 10Last Post: 31st Aug 2008, 13:49 -
704 x 576 Resolution in Premiere
By Haz567_a in forum EditingReplies: 5Last Post: 23rd Jul 2008, 05:01 -
704 vs. 720 burn to DVD
By brstephe in forum Authoring (DVD)Replies: 20Last Post: 11th Dec 2007, 12:16