Quantcast To use use ConvertToYUY2() or Not? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
09-11-2004, 09:37 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Men, i have a friend who told me that if i put at the end of the script ConvertToYuY2(), the movie will seem better.

So I have makde two kvcd with two scripts:
1. putting convertToYuY() at the end of the script, the decompressor was ati decoder.
2. not putting convertToYuY2(), the decompressor was xvid decoder.

After I had made the two kvcd, i didnt notice any difference between them. So what do you recommend me???
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
  #2  
09-11-2004, 09:55 AM
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
Depends on which encoder will be used afterwards!

If using CCE ConverttoYUY2()
If Using TmpgEnc Converttorgb24()

If not, then these Colorspaceconversions will be done by the Directshow or VFW decoder (CCE uses vfw for decoding, while TmpGEnc directshow and via Readavs.dll in TmpgEnc also vfw.)
Reply With Quote
  #3  
09-11-2004, 11:35 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I will use Tmpgenc.

So If I put ConvertToRGB24() at the end of the script, the movie will seem better??
Reply With Quote
  #4  
09-11-2004, 12:35 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Major
I will use Tmpgenc.

So If I put ConvertToRGB24() at the end of the script, the movie will seem better??
If you don put ConvertToRGB24() at the end of the script, TMPGEnc won't work. It needs rgb24 color space.
Reply With Quote
  #5  
09-11-2004, 07:41 PM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I dont understand anything, because i have never used convertToRGB24() at the end of the script, and tmpgenc has worked fine, my script usually was:

LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\MPEG2Dec3dg.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\GripFit_YV12.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\atc.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\Blockbuster.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\Convolution3DYV12.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\DCTFilter.dll")
AVISource("C:\Peliculas\Video.avi",false)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.3,seed=5623)
GripBorders()
LetterBox(0, 0, 16, 16)
Reply With Quote
  #6  
09-11-2004, 09:31 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Major
I dont understand anything, because i have never used convertToRGB24() at the end of the script, and tmpgenc has worked fine, my script usually was:
Well, maybe Directshow get ride of this issue.
Reply With Quote
  #7  
09-11-2004, 10:09 PM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I have disabled directshow and avi file reader.
Reply With Quote
  #8  
09-11-2004, 10:13 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Major
I have disabled directshow and avi file reader.
Keep us waiting for Inc.
When I didn't use that option, TMPGEnc don't worked.
But I don't know why yours work.
Reply With Quote
  #9  
09-12-2004, 01:47 AM
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
Do you have the readAVS or AVSreader plugin installed? If yes then this is optimal (I have it too) as your avs scripts therefore will be interpreted directly.
Reply With Quote
  #10  
09-12-2004, 11:06 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Yes i have the plug-in AVSreader installed.
Reply With Quote
  #11  
09-12-2004, 12:10 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
That explains why tmpgEnc is able to "read the avs" directly. And thats the way it should be.
Reply With Quote
  #12  
09-12-2004, 01:39 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
The ConverttoRGB24() is usually not needed because there's some codec doing the conversion for you. No idea what, however. With YUY2->RGB it's probably HuffYUV but for YV12->RGB I really don't know. It might be best to do the conversion in the script.
Reply With Quote
  #13  
09-12-2004, 03:15 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
As said, it depends on which colorspace comes out of the avisynth script.

If a YUY2 Cspace comes out, regulary the MS YUY2 codec or Huffyuv is doing the conversation.
In case of a delivered YV12 Cspace, an installed mpeg4 codec like XVID does the needed conversation.

So as CCE does use vfw for rendering the input colorspace the installed vfw codec (like mentioned above for instance XVID(fvfw)) does the Cconversation to the needed YUY2.
In case Of tmpgenc which uses Dshow for rendering also here the installed codec does that job IF readavs.dll is not used. In case of readavs.dll TmgEnc gets directly the colorspace as I do assume a Cspace converter is delivered within that readavs.dll

BTW: Avisynth via Avisource() uses vfw.
Reply With Quote
  #14  
09-12-2004, 04:44 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
After that explanation I'm even more sure we should always use ConverttoYUY2() or ConverttoRGB24() in the script. Especially with interlaced material, using the parameter interlaced=true of course.
Reply With Quote
  #15  
09-12-2004, 06:07 PM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I think that there is no need to put at the end of the script any conversion, because i have tried with and without conversions, and i have noticed that there is no difference between them, furthermore, the decoder mpeg4 (xvid or divx) are better for yv12 (without conversion)
Reply With Quote
  #16  
09-12-2004, 07:14 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 Boulder
After that explanation I'm even more sure we should always use ConverttoYUY2() or ConverttoRGB24() in the script.
I always use them since I have an ATI All-In-Wonder, which insists on using it's own YV12->RGB24 decoder instead of the one in the XviD codec. It has a bug where luma samples are scaled to [16,235] instead of clamped. I was never able to find a way to disable the ATI codec without removing the video drivers, so it's easier for me to just add ConvertToRGB24() at the end of all my scripts when using TMPGEnc.
__________________
--
Chris "Bob" Odorjan
Reply With Quote
  #17  
09-13-2004, 12:09 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Major
I think that there is no need to put at the end of the script any conversion, because i have tried with and without conversions, and i have noticed that there is no difference between them, furthermore, the decoder mpeg4 (xvid or divx) are better for yv12 (without conversion)
The decoder does its job when you open the video so colorspace conversions do not affect it in any way.

How did you check that there were no differences?
Reply With Quote
  #18  
09-13-2004, 04:21 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I have seen them in my pc and standalone, also the colors (at great length), and i have not seen any difference.

However, i took a kvcd made for a days and i remade it forcing the colorspace YV12 in xvid, i see a difference in the colors, why??
the kvcd made for a days, i have not realized that the decoder was ati decoder.
in the new kvcd i have forced the colorspace YV12 in the decoder xvid, so the decoder was xvid.

Howver, i open a script in virtualdubmod made with conversion ConvertToYUY2(), and the decoder was YUV 4:2:2 (vidc.yuy2 msyuv.dll)
if i open a script made without any conversion, the decoder was xvid (vidc.yv12 xvidvfw.dll)
between these tow scripts i have noticed no difference in the results.

perhaps i am mistaken
Reply With Quote
  #19  
09-20-2004, 01:42 PM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
When I was reading a part of the manual of avisynth, i saw a new command that force avisynth to open an avi file using the codec you prefer, is Fourcc, since the version of avisynth 2.55

AViSource("C:\Divx\Harbor.avi", false, FourCC="XviD")
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
Avisynth: Converttoyuy2() jorel Avisynth Scripting 49 03-15-2004 01:40 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




 
All times are GMT -5. The time now is 04:09 PM  —  vBulletin © Jelsoft Enterprises Ltd