nuked
10th October 2003, 20:19
I'm rediculously busy these days so forgive me if I overlooked a thread about this.
YV12 effectively has 2 diferent formats, interlaced and non-interlaced , and for upsampling to yuy2 or rgb you must know which you are dealing with to do it porperly without causing "CUE" or "ICP" effects. DVD's know this and a have a progressive flag marking frames as progressive or not so the right upsample will be used. Yes I know yv12 for interlaced material is fundamentally flawed anyway, but still upsampling correctly produces much less broken resultsthan upsampling incorrectly. Correct me if I'm wrong so far.
In avisynth 2.5 the yv12 is kept so there's no upsampling and the flag isn't needed. As far as I can tell the flag is not carried around inside avisynth anywhere. That's fine unless you want to upsample somewhere in avisyth using somethig like ConvertToYuy2(). Then you must explicitly state "interlaced=true" but this will apply then to ALL frames. But what if you have mixed content... some progressive and some interlaced? The best soltuion is to use interlaced=true cause this is by far the lesser of the 2 evils, but it still could be be much better and most mixed sources are mostly progressive.
How hard would it be to have an upsampling option in mpeg2dec3 that makes the correct upsampling frame by frame using the flags on the dvd? Even better would be to have a data format in avisynth that carries this flag around... but I guess that would have to be avisynth 2.6. and would require some updates to some filters to take advantage of it.
Someone will probably tell me to deinterlace it first before upsampling, but this is not always desireable and after all... avisynth is supposed to be modular... For that matter as far as I can tell there are probably some inaccuracies in how deinterlacers treat color especially when they inadvertently act on parts they shouldn't... prgressive parts... Keeping the flag could also allow the deinterlacers to know to ignore progressive marked frames if so chosen saving both time and quality.
(yes, there's also the every other broken flag issue in telecined dvd's but the correction for that is known and could be implemented as well.)
YV12 effectively has 2 diferent formats, interlaced and non-interlaced , and for upsampling to yuy2 or rgb you must know which you are dealing with to do it porperly without causing "CUE" or "ICP" effects. DVD's know this and a have a progressive flag marking frames as progressive or not so the right upsample will be used. Yes I know yv12 for interlaced material is fundamentally flawed anyway, but still upsampling correctly produces much less broken resultsthan upsampling incorrectly. Correct me if I'm wrong so far.
In avisynth 2.5 the yv12 is kept so there's no upsampling and the flag isn't needed. As far as I can tell the flag is not carried around inside avisynth anywhere. That's fine unless you want to upsample somewhere in avisyth using somethig like ConvertToYuy2(). Then you must explicitly state "interlaced=true" but this will apply then to ALL frames. But what if you have mixed content... some progressive and some interlaced? The best soltuion is to use interlaced=true cause this is by far the lesser of the 2 evils, but it still could be be much better and most mixed sources are mostly progressive.
How hard would it be to have an upsampling option in mpeg2dec3 that makes the correct upsampling frame by frame using the flags on the dvd? Even better would be to have a data format in avisynth that carries this flag around... but I guess that would have to be avisynth 2.6. and would require some updates to some filters to take advantage of it.
Someone will probably tell me to deinterlace it first before upsampling, but this is not always desireable and after all... avisynth is supposed to be modular... For that matter as far as I can tell there are probably some inaccuracies in how deinterlacers treat color especially when they inadvertently act on parts they shouldn't... prgressive parts... Keeping the flag could also allow the deinterlacers to know to ignore progressive marked frames if so chosen saving both time and quality.
(yes, there's also the every other broken flag issue in telecined dvd's but the correction for that is known and could be implemented as well.)