Quantcast Avisynth: ConvertToYUY2() - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
03-12-2004, 07:41 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
more:
my friend Edson is here with me and see the pictures.
he see that with converttoyuy2() is really better easily!
Jorel ?
did you verify that this is the XVID codec taht is used now as YV12 decompressor, YES OR NOT

If it is still ATI YV12 that does the job it's normal to have the picture like you have.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
03-12-2004, 07:44 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Hi jorel,

It must be a CODEC issue
That's why you see it better with the line inserted

-kwag
ok Kwag,ok Phil(i saw your last post Phil)!

now how can i trash the codec that i don't want to use?
(ati in this case)
i want test with xvid alone and do pictures to compare!
Reply With Quote
  #23  
03-12-2004, 07:48 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
now how can i trash the codec that i don't want to use?
(ati in this case)
Do you have DXMan from AnalogX ? Use it : you can select a codec and remove it.

http://www.analogx.com/welcome.htm
Reply With Quote
  #24  
03-12-2004, 09:11 PM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by incredible
I think the solution is not "how aviynth upsamples the color frequency" an issue is already given by an added colorspace conversion which could be avoided. Every Colorspace conversion means a loss in chroma uspampling even YV12 to YUY2 as it can be read in the link I posted above.
Ah, so it interpolates the chroma values? That can't be good...

Quote:
Maybe your avs results good by previewing it in Vdub but in worsed case it will be even resampled 2! times more (like if using TmpgEnc where first rgb24 and finally YV12 mpeg).
Actually, I first noticed this in TMPGEnc, then verified it using VDub... either way, using ConvertToYUY2() gives results as they're supposed to look (or at least as the original looks, I suppose that could be wrong too). The ATI YV12 codec seems to clamp output values, I'm guessing to [16,235]. I haven't done any analysis other than using the histogram in VDub for a quick check.

Will TMPGEnc always convert the input video to RGB24? The documentation for the colourspace-conversion functions in AviSynth seem to indicate this: "There are no known advantages of using RGB24 (except that TMPGEnc requires RGB24 input)." If so, then it might be better to use ConvertToRGB24() instead of ConvertToYUY2(), avoiding unnecessary colourspace conversions...
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #25  
03-12-2004, 09:19 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by jorel
now how can i trash the codec that i don't want to use?
(ati in this case)
Do you have DXMan from AnalogX ? Use it : you can select a codec and remove it.

http://www.analogx.com/welcome.htm



Phil,
i download DXMan, he find thousands but can't see the ati codecs!
Reply With Quote
  #26  
03-12-2004, 09:35 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by BobNET
Will TMPGEnc always convert the input video to RGB24?
yes it is.
So if you really want to add a convert at the end of the script, it should be better to had a ConvertoToRGB24.

@Jorel
You don't know how the codec came on your PC ? You should be abble to remove it if you know who put it on the disc.
Reply With Quote
  #27  
03-12-2004, 09:40 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
@Jorel
You don't know how the codec came on your PC ? You should be abble to remove it if you know who put it on the disc.
yes,i know the name.....and was me that put it on the disk!


wait a little, i will "kill" it now!

Reply With Quote
  #28  
03-12-2004, 10:14 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
ok!
the system call for reboot after i remove the ati codecs.
done!

now i have "XviD MPEG-4 Codec" loading the script:
mpeg2source("D:\dvd teste\a1.D2V")
#converttoyuy2()

nothing is different with or without converttoyuy2(), the quality is the same but
better than using ati codecs, the image isn't "washed".

correct me if i'm wrong:
means that using only the xvid codec(without converttoyuy2()) the quality will be better than ati codecs
and will encode faster too!
i read somewhere that converttoyuy2() is slow, right?
Reply With Quote
  #29  
03-12-2004, 10:22 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
correct me if i'm wrong:
No need to correct you
Reply With Quote
  #30  
03-12-2004, 10:57 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by jorel
correct me if i'm wrong:
No need to correct you
thanks Phil, Kwag, incredible and BobNET

in only one day i got tons with your help.
amazing team-work!

Reply With Quote
  #31  
03-13-2004, 02:13 AM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by jorel
ok!
the system call for reboot after i remove the ati codecs.
done!
How did you remove the ATI codecs? Just click "Remove" from the Control Panel?

And have you had any problems since removing them?
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #32  
03-13-2004, 05:13 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by BobNET
Quote:
Originally Posted by jorel
ok!
the system call for reboot after i remove the ati codecs.
done!
How did you remove the ATI codecs? Just click "Remove" from the Control Panel?

And have you had any problems since removing them?
very good questions BobNET and i have surprises:
yeah, ati codecs was removed from control panel!

after remove the ati codecs and removing the converttoyuy2() from the script,
cce show a big advertence:
" Couldn't find appopriate video codec for 'YV12'. "


i "back" the converttoyuy2() line in the script....
now another surprise:
-->the image is cool (the same as ati codec) and

cce needed ~12% more time to encode with xvid + converttoyuy2()
than using ati codec + converttoyuy2()



i loose the ati codecs in ati player-capture mode (obvious)!
and can't open anything that need "video codec for 'YV12'. "




and now?!?!?!

edited>
"cce needed ~12% more time to encode with xvid + converttoyuy2() "
is the correct % value!
Reply With Quote
  #33  
03-13-2004, 12:29 PM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by jorel
Quote:
Originally Posted by BobNET
How did you remove the ATI codecs? Just click "Remove" from the Control Panel?

And have you had any problems since removing them?
very good questions BobNET and i have surprises:
yeah, ati codecs was removed from control panel!

i loose the ati codecs in ati player-capture mode (obvious)!
and can't open anything that need "video codec for 'YV12'. "
So not really an improvement, then?



Did you reinstall XviD after removing the ATI codecs? Maybe the registry entries (or whatever else) that are needed for XviD to decode YV12 don't get added if there's already a YV12 codec on the system...

I'd try it myself right now, but I don't want to hose my system for video captures in the middle of a TV season...
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #34  
03-13-2004, 12:44 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
improvement ?

no BobNET, it's ~12% slow than with avi codecs...the performance is worse!

and yes,i uninstall xvid codecs(reboot)
run "regvac" and "evidence eliminator" to clean traces,
after this i re install xvid again (reboot),
then i did the tests and got the results posted!

like i ask before,or i or my system is mad?!?!
now, without converttoyuy2() in the script, CCE don't work
and i'm using 266 that don't need yuy2 convertion like Phil posted!

some more comments please!
i'm lost and
Reply With Quote
  #35  
03-13-2004, 12:58 PM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by jorel
improvement ?

no BobNET, it's ~12% slow than with avi codecs...the performance is worse!
D'oh! Looks like my next project will use ConvertToRGB24() at the bottom to avoid both muddy colours (due to ATI's borked YV12 codec) and also needless colourspace conversions in TMPGEnc (since it's going to convert to that anyway)...

I'll play with my settings sometime next week, when I'll have time to fix things in case they break horribly...
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #36  
03-13-2004, 01:03 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
ConvertToRGB24()


don't do that,it's worse of all,really slow...i had tryed ConvertToRGB32() too!
horribles performances!

Reply With Quote
  #37  
03-13-2004, 03:09 PM
BobNET BobNET is offline
Free Member
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to BobNET
Quote:
Originally Posted by jorel
ConvertToRGB24()


don't do that,it's worse of all,really slow...i had tryed ConvertToRGB32() too!
horribles performances!
For TMPGEnc I think it's probably the best choice (at least in the case where you're using YV12 with the ATI codecs, like us)... it always converts to RGB before encoding for some reason, so if you use ConvertToYUY2() then:

YV12 -> YUY2 -> RGB (in TMPGEnc) -> (encode to MPG) YV12

but with ConvertToRGB24():

YV12 -> RGB (in AviSynth) -> (encode to MPG) YV12

so you do one less colourspace conversion. Plus you get to control the conversion in your script instead of worrying about what TMPG will do...

But this is all theoretical since I haven't done any tests yet

I don't know if CCE expects RGB input or not. I'd guess no but I'm not sure (I should get the trial and test it, too)...
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #38  
03-13-2004, 03:42 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
well, i will restart everything...



reinstall the originals ati codecs that came with ati all in wonder cd
and do some tests for performance and quality.

after this i uninstall ati codecs again and install xvid to do another group of tests.
if i got the same the results,
i will stay using the ati codecs that came with the drive !

can't think in better way to remove this doubts but all ideas are welcome!



edited>
maybe i wasn't clear BobNET:
converttorgb24() or converttorgb32() are slow than converttoyuy2()
in CCE with or without xvid codec
Reply With Quote
  #39  
03-13-2004, 06:21 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by jorel
converttorgb24() or converttorgb32() are slow than converttoyuy2() in CCE with or without xvid codec
Shure Jorel cause CCE expects YUY2!
And if your avs finally results in YUY2 NO MORE Xvid/ATI codec, means YV12 codec is needed (see the File Information in Vdub)

So lets resume:

- CCE expects YUY2

- TmpgEnc expects RGB24 (thats also a reason why TmpgEnc is slower than CCE )

- Mencoder expects YUY2 (as the log says it )
Reply With Quote
  #40  
03-13-2004, 10:10 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
incredible,
i think that you found the "key" of it all!


nothing is wrong with my system and happen just like i posted.
i will install and uninstall all codecs again to remove all doubts,
and to test the quality and performance!

and one more detail that i'm thinking after read your post:
(remember: xvid is instaled,ati codecs was uninstaled)
doing it now (writing after each result) :

loading the script WITH converttoyuy2()
in vdub information i got:
Decompressor: YUV 4:2:2 (YUY2)... work in CCE
is the same that i posted in the first page
of this thread after your first post incredible!
was using the ati codec with converttoyuy2() in the script
the image is better!!!

loading the script WITHOUT converttoyuy2()
in vdub information i got:
Decompressor: XviD MPEG-4 Codec... don't work in CCE

for this reason works in CCE using XviD or ati codec WITH converttoyuy2() in the script:
Decompressor: YUV 4:2:2 (YUY2)
just like you wrote:
" CCE expects YUY2 "
right?
please, more comments!

very cool!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: SmoothDeinterlace and ConvertToYUY2? shgr Avisynth Scripting 35 11-05-2004 07:38 AM
TO use Use ConvertToYuY2() Or Not? Major Video Encoding and Conversion 18 09-20-2004 01:42 PM
Avishynht 2.54 y converttoyuy2().... generador Convertir y Codificar Video (Español) 3 01-27-2004 10:48 AM
AVISYNHT 2.5 Y CONVERTTOYUY2()........¿SON COMPATIBLESSSSSS? generador Convertir y Codificar Video (Español) 4 10-21-2003 12:54 PM
ConvertToYUY2() CaLaFaT Convertir y Codificar Video (Español) 5 07-14-2003 12:48 AM

Thread Tools



 
All times are GMT -5. The time now is 10:05 AM  —  vBulletin © Jelsoft Enterprises Ltd