Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th March 2003, 19:58   #1  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Bug(?): ConvertToYV12 gives green frames on big input

Code:
# (source is RGB32)
PointResize(1440, 960)
ConvertToYV12()
PointResize(720, 480)
Gives this:
mf is offline   Reply With Quote
Old 25th March 2003, 19:59   #2  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
.. under investigation...
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 25th March 2003, 20:07   #3  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by sh0dan
.. under investigation...
Wha that was quick . As a note: I encountered the problem once before (also on big input, where I had to do a convert in the middle of a supersample chain), and now that I found the problem a second time I tested all other relevant filter combinations and isolated the problem to the script posted above. So I know it's not PointResize's fault, for instance . Might save you some time testing. Thanks .

Edit: I forgot something, which I just tested. If the source is YUY2 it doesn't happen.
Edit2: ConvertToYUY2 doesn't have the problem. Do they share code? If so, it's probably not the problem of that shared code . Might save some time .
Edit3: Since it doesn't happen on YUY2, does it hurt to do ConvertToYUY2.ConvertToYV12 (afaik only the subsampling is different between YUY2 and YV12, and when your source isn't subsampled, you have no problem, right)?

Last edited by mf; 25th March 2003 at 20:23.
mf is offline   Reply With Quote
Old 25th March 2003, 20:28   #4  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
The YV12 <-> RGB conversions are the ones from XviD, but due to differences there might be some differences. All conversions involving YUY2 are written specially for AviSynth.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 25th March 2003, 20:33   #5  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Confirmed - strange bug. Seems like there are distortions when h>512.

(Completely offtopic - are you interested in a zoomby2() funtion?)
__________________
Regards, sh0dan // VoxPod

Last edited by sh0dan; 25th March 2003 at 20:57.
sh0dan is offline   Reply With Quote
Old 25th March 2003, 20:47   #6  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by sh0dan
(Completely offtopic - are you interested in a zoomby2() funtion?)
I'd be more interested in a YUV colorspace that doesn't do chroma subsampling. Because Merge*ma() only eats YUV, I have to blow up the image to keep the chroma intact.
mf is offline   Reply With Quote
Old 25th March 2003, 20:47   #7  |  Link
Bidoche
Avisynth 3.0 Developer
 
Join Date: Jan 2002
Location: France
Posts: 639
I would say yes for zoomby2
Bidoche is offline   Reply With Quote
Old 25th March 2003, 21:40   #8  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
MASM assembler error - nice

Fixed in CVS.

When we got YV12 stable well have a look at a YUV 4:4:4 format
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 25th March 2003, 22:54   #9  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by sh0dan
MASM assembler error - nice

Fixed in CVS.

When we got YV12 stable well have a look at a YUV 4:4:4 format
Thanks alot . Now I still have two problems left from the script that generated this error, which you can find in the AVISynth usage forum .
mf is offline   Reply With Quote
Old 26th March 2003, 15:01   #10  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
New binary put up.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.