Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Yuv2 To Rgb32
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
jcsston
Posted: Dec 10 2002, 06:16 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



Are there are differences between the YUV2 to RGB32 conversion process in AviSynth and VDub?

--------------------
Use the Matroska file format
 
       Top
fccHandler
Posted: Dec 10 2002, 07:08 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



Probably not. Since both Avisynth and Huffyuv are partly based on VirtualDub, most likely the conversion code is the same.

--------------------
May the FOURCC be with you...
 
     Top
phaeron
Posted: Dec 10 2002, 11:24 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Actually, yes, there is a difference -- Avisynth's color conversion code is based on Huffyuv's, not VirtualDub's. Avisynth assumes coaligned chroma samples, whereas VirtualDub decodes chroma in-between (half-pixel off). For consistency, when you need to process Avisynth output with VirtualDub you should have Avisynth do the conversion.
 
    Top
jcsston
Posted: Dec 10 2002, 11:52 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



thanks

--------------------
Use the Matroska file format
 
       Top
fccHandler
Posted: Dec 11 2002, 04:28 AM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



@phaeron: Thanks again! biggrin.gif

After looking at the code, it's clear that Huffyuv has nothing of VirtualDub in it (that I can see). In fact, it looks like VirtualDub has two different conversions (one of them "hq"). Now I'm wondering which of the three conversions is fastest...

--------------------
May the FOURCC be with you...
 
     Top
Belgabor
Posted: Dec 12 2002, 07:06 PM


Developer of VirtualdubMod


Group: VirtualdubMod Team
Posts: 100
Member No.: 998
Joined: 24-November 02



To give an update, afaik the color conversion routines come from XviD in the newest releases (not sure about 2.0.7, but i think the 2.5 alpha)

--------------------
[VirtualDubMod Homepage]
Please submit any bugs/patches/feature requests also using the respective tracker on our sourceforge page
 
     Top
sh0dan
Posted: Dec 19 2002, 10:17 AM


Avisynth Developer


Group: Vdubmod Alpha Testing Team
Posts: 41
Member No.: 327
Joined: 20-September 02



The XVID conversions in AviSynth 2.5 alpha are only used for YV12 planar conversions, since that is the only thing supported by XVID.

AviSynth still uses the same conversion routines for YUY2 as it always has. These conversions actually seems to have better precision than the XVID ones.

Since I don't know Virtual Dubs YUY2->RGB conversion, I think you should stick to Avery's recommendation.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Dec 10 2002, 06:16 PM Track this topic | Email this topic | Print this topic

<< Back to Avisynth Filtering, Processing and Scripts Discussion