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 > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th November 2010, 23:41   #1  |  Link
mshoward82
Registered User
 
Join Date: Oct 2008
Location: South Carolina
Posts: 6
Whats my Color Space? YUV -> YV12 or YUY2

Ok this is my first time posting on Doom9. But not my first time reading the posts.

Anyway, I have a question about how to tell what the actual color space is for the my videos that i'm converting.

I am using MeGUI to convert videos and have been playing around with different color space settings. I have been using the Avisynth's ConvertToYV12() and YUY2(), but after encoding the file and check the information for each, i get the same results.

It shows the color space as just YUV.
-(from my understanding YV12 and YUY2 fall under YUV. I think???)
And it also says that its still 4:2:0.
-(Also from what I have gathered, YV12 is 4:2:0 and YUY2 is 4:2:2)

So is my video color actually changing?
FYI... - x264 codec @ 1280x720

I don't know anything about this subject. I just discovered color spaces and just experimenting/playing around.

Thanks for any help.

AVS Script:
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("C:\video.dga")
ConvertToYV12()
mshoward82 is offline   Reply With Quote
Old 30th November 2010, 23:56   #2  |  Link
Hagbard23
23sKiDdOo!
 
Hagbard23's Avatar
 
Join Date: May 2010
Location: Germany
Posts: 182
I understand your confusion..

Nearly every DVD/BD has YV12 as colorspace - so from that viewpoint you can assume that you get 90% YV12 footage. But in fact you never know.

I would recommend that you get mediainfo (http://mediainfo.sourceforge.net/de) ...if you switch on "TEXT Mode" under "View", then you get a detailed information about your footage...including colorspace informations...it is a nice tool, that you will probably use a million times for a million reasons - i have it installed for years now and use it nearly one time a day...something i don't wanna miss anymore..

If you see 4:2:0, then you can assume, that you have YV12 footage
If you see 4:2:2, then you can assume, that you have YUY2 footage
You won't see 4:4:4 in "normal" life.

There are a couple of good articles outthere about YUV...the wikipedia article is very good.

Quote:
LoadPlugin("C:\Program Files\megui\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("C:\video.dga")
ConvertToYV12()
If your source is already 4:2:0, then you can leave out the last line...it is not neccessary and does nothing at all...
Hagbard23 is offline   Reply With Quote
Old 1st December 2010, 00:01   #3  |  Link
mshoward82
Registered User
 
Join Date: Oct 2008
Location: South Carolina
Posts: 6
Yeah... I use Media Info and it shows YUV, 4:2:0

But i'm using ConvertToYUY2() when I encode my video and curious as to why its still showing 4:2:0 and not 4:2:2

Is the colorspace not being converted?
mshoward82 is offline   Reply With Quote
Old 1st December 2010, 00:08   #4  |  Link
Hagbard23
23sKiDdOo!
 
Hagbard23's Avatar
 
Join Date: May 2010
Location: Germany
Posts: 182
In Fact (in your AviSynth Script) you want to convert to YV12 (which is senseless), and now you tell me you want to convert to YuY2. But you don't tell me why...

One Advice: Do NOT convert the Colorspaces, unless you are told to do so (mostly to RGB32 for some filtering issues and then back to YV12). The YuY2 Format is obsolete, to my opinion.

One Question: Why -exactly- do you want to convert to YUY2?
Hagbard23 is offline   Reply With Quote
Old 1st December 2010, 00:20   #5  |  Link
mshoward82
Registered User
 
Join Date: Oct 2008
Location: South Carolina
Posts: 6
Oh thats my bad for confusing you with the Avisynth script. It was just one example. But yes i'm using the convertoYUY2. Not the YV12.
I was going back and forth.

But there was no reason to why i was changing it. I was just playing around and doing some of my own testing. Filling my curiousity.

But if YV12 is the better choice I'm fine with sticking with that. I know I get prompted to use the ConvertoYV12 in some cases.
I just wanted to actually see the difference for myself between the two. But my Media Info kept telling me the same info even when i used ConverttoYUY2.(YUV, 4:2:0)
More interested in why it wasn't converting. Or showing it as converted.
mshoward82 is offline   Reply With Quote
Old 1st December 2010, 01:57   #6  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,094
Because it's being converted back to YV12 during the encoding? As Hagbard23 said, don't mess with the colorspaces unless you have to.

To find the colorspace at any given point in the script add in:

Info()
manono is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:46.


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