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 > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st February 2016, 16:51   #1  |  Link
ron spencer
DVD Magistrate
 
Join Date: Dec 2003
Location: Sodor
Posts: 991
MeGUI Colour Space Warning

Hey all,

I have been learning with fun how to make bluray compatible output with MeGUI. Not so hard.

But I have an issue. I am starting with DNxHD files that are YUV output. MeGUI gives me a warning before I encode to change the color space to YV12. My output files are YUV. So why is MeGUI wanting to convert to YV12? Not sure if this alters the final quality or not, but if it does I'd like to fix it. The only AVISynth command used is a crop. So not sure why this warning pops up as the end output is YUV, the same as the source.

thanks
ron spencer is offline   Reply With Quote
Old 1st February 2016, 17:00   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Different chroma subsampling for YUV ; DNxHD is usually 10bit 4:2:2 (but there are other variants), Blu-ray only supports 8bit 4:2:0
poisondeathray is offline   Reply With Quote
Old 1st February 2016, 19:21   #3  |  Link
ron spencer
DVD Magistrate
 
Join Date: Dec 2003
Location: Sodor
Posts: 991
by dnxhd is 8 bit...and you are right, it is 4:2:2 for chroma sub-sampling. But is it a waste to change colour space from YUV to YV12 and then back to YUV? I guess I need to to get to 4:2:0. Will this introduce any quality issues? I don't see any I think.
ron spencer is offline   Reply With Quote
Old 1st February 2016, 19:33   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Quote:
Originally Posted by ron spencer View Post
by dnxhd is 8 bit...and you are right, it is 4:2:2 for chroma sub-sampling. But is it a waste to change colour space from YUV to YV12 and then back to YUV? I guess I need to to get to 4:2:0. Will this introduce any quality issues? I don't see any I think.
YV12 is YUV. Think of "YUV" as the broader family. YV12 is a subset of YUV, specifically 4:2:0 planar. YV12 is required for BD

http://www.fourcc.org/yuv.php

The only things to remember in avisynth are if your content is interlaced, you must use the interlaced=true switch, and the correct matrix (usually Rec709 for HD and 601 for SD) if coming from a non YUV source
poisondeathray is offline   Reply With Quote
Old 1st February 2016, 22:10   #5  |  Link
ron spencer
DVD Magistrate
 
Join Date: Dec 2003
Location: Sodor
Posts: 991
ok thanks.

So if my source is 4:2:2 and 8 bit, YV12 converts it to 4:2:0 for bluray.

So my last question

Media info reports my encoded file (with right tags for Rec709 via MeGUI) as YUV. Is it right that is reports this as opposed to YV12 as you said YV12 is required for Bluray? Or is it just stating YUV as the broader family?

thanks for your input!
ron spencer is offline   Reply With Quote
Old 1st February 2016, 23:32   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Quote:
Originally Posted by ron spencer View Post
ok thanks.

So if my source is 4:2:2 and 8 bit, YV12 converts it to 4:2:0 for bluray.

So my last question

Media info reports my encoded file (with right tags for Rec709 via MeGUI) as YUV. Is it right that is reports this as opposed to YV12 as you said YV12 is required for Bluray? Or is it just stating YUV as the broader family?

thanks for your input!

I think it' s just reporting the broader family (and it can make mistakes, I wouldn't rely on it to heavily)
poisondeathray is offline   Reply With Quote
Old 2nd February 2016, 22:36   #7  |  Link
ron spencer
DVD Magistrate
 
Join Date: Dec 2003
Location: Sodor
Posts: 991
Quote:
Originally Posted by poisondeathray View Post
I think it' s just reporting the broader family (and it can make mistakes, I wouldn't rely on it to heavily)
Ok...still have one final question.

I am using 1080i files...MeGUI is telling me I need to append converttoyv12() to the end of my avisynth script, which is good. But it does not add in interlaced=true, even though I have specified it as TFF in my initial MeGUI setup for this job.

So, do I need to edit the script before running the encode to say:

Quote:
ConvertToYV12(interlaced=true, matrix="Rec709")
If so, any reason why MeGUI does not append the interlaced=true, matrix="Rec709"...is it because my source is already YUV?

I still find it odd that I would go from YUV 4:2:2 --> yv12 4:2:0 --> YUV 4:2:0


I am using the Rec709 option in my x264 encodes.

thanks

Last edited by ron spencer; 2nd February 2016 at 22:40.
ron spencer is offline   Reply With Quote
Old 2nd February 2016, 23:27   #8  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Quote:
Originally Posted by ron spencer View Post

I am using 1080i files...MeGUI is telling me I need to append converttoyv12() to the end of my avisynth script, which is good. But it does not add in interlaced=true, even though I have specified it as TFF in my initial MeGUI setup for this job.
--tff is an x264 encoding setting which occurs after the script . It also has no accurate way of determining if something is interlaced or not (it can make mistakes). User must determine that. I haven't used megui for a long time, but if it's something you think should be improved you can add a feature request

Quote:
So, do I need to edit the script before running the encode to say:
ConvertToYV12(interlaced=true, matrix="Rec709")
You don't need the matrix, coming from a YUV source. The matrix is only for RGB<=>YUV conversions, but you do need interlaced=true because the chroma planes are resized . But it doesn't "hurt" to leave the matrix argument in; it's just a no-op


Quote:
I still find it odd that I would go from YUV 4:2:2 --> yv12 4:2:0 --> YUV 4:2:0
In this case, it's just YUV 4:2:2 to YV12

YV12 4:2:0 is YUV 4:2:0 . But YUV 4:2:0 is the broader term. YV12 specifies a specific arrangement and byte order. For example NV12 is also YUV 4:2:0 . So YUV 4:2:0 is the broader category, and YUV is the broadest (it includes other subsampling 4:2:2, and no subsampling 4:4:4, plus all their derivatives and plane arrangements)

Last edited by poisondeathray; 2nd February 2016 at 23:31.
poisondeathray is offline   Reply With Quote
Old 2nd February 2016, 23:48   #9  |  Link
ron spencer
DVD Magistrate
 
Join Date: Dec 2003
Location: Sodor
Posts: 991
OK I get it...thanks for teaching me something useful. I can just add the interlaced=true. Maybe request feature of megui that if in the initial avs setup I specify interlaced, it should add in the interlaced=true part.

Cheers and thanks again!!!
ron spencer 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 15:05.


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