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 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st September 2013, 18:02   #1  |  Link
HulkHoganRules
Registered User
 
Join Date: Aug 2012
Posts: 28
Quick x264vfw questions

Hello. I want to use x264vfw in lossless mode. My capture card uses the YUY2 colorspace. I have some questions:

1. Will selecting "Keep/Accept Only YUV 4:2:2" in the settings actually give me 4:2:2 sampling or is it still going to be 4:2:0?

2. Will selecting "Keep input colorspace" keep YUY2 with 4:2:2 sampling?

3. If 1 and 2 are yes, is there a difference as to what I select?

The reason I ask is because with 1 and 2, MediaInfo reports the chroma sub sampling as 4:2:0 which confuses me.
HulkHoganRules is offline   Reply With Quote
Old 1st September 2013, 18:50   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
>MediaInfo reports the chroma sub sampling as 4:2:0
Have you selected Profile="High 4:2:2" ?
raffriff42 is offline   Reply With Quote
Old 1st September 2013, 20:43   #3  |  Link
HulkHoganRules
Registered User
 
Join Date: Aug 2012
Posts: 28
Quote:
Originally Posted by raffriff42 View Post
>MediaInfo reports the chroma sub sampling as 4:2:0
Have you selected Profile="High 4:2:2" ?
Thanks for that. Still unsure as to 1 and 2 though.
HulkHoganRules is offline   Reply With Quote
Old 1st September 2013, 23:05   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by HulkHoganRules View Post
1. Will selecting "Keep/Accept Only YUV 4:2:2" in the settings actually give me 4:2:2 sampling or is it still going to be 4:2:0?
With this option, the Codec will only accept YUV 4:2:2 as input and keep it that way. If input is not YUV 4:2:2, then encoding will fail.

In other words: You will either get YUV 4:2:2 or nothing at all.

Quote:
Originally Posted by HulkHoganRules View Post
2. Will selecting "Keep input colorspace" keep YUY2 with 4:2:2 sampling?
If the input indeed is YUV 4:2:2 (e.g. YUY2), then yes. But if it happens to be something else, then not.

Note that here it matters what the encoding application passes to the Codec, which is not necessarily the same what your input file contains!

For example: In VirtualDub the pixel format that will be passed to the Codec is selected under Video -> Color Depth (on the right side).


(BTW: YUY2 is only one specific way of storing YUV 4:2:2 data in memory. It's the exactly same information as, for example, UYVY (aka Y422/UYNV/HDYC) or YV16. They just differ in the memory layout.)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 2nd September 2013 at 11:53.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd September 2013, 13:56   #5  |  Link
HulkHoganRules
Registered User
 
Join Date: Aug 2012
Posts: 28
So I'm guessing either option will produce the same video?
HulkHoganRules is offline   Reply With Quote
Old 2nd September 2013, 14:22   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by HulkHoganRules View Post
So I'm guessing either option will produce the same video?
As I said before, not necessarily. The first option always produces YUV 4:2:2 and it refuses everything but YUV 4:2:2 as input.

The second option accepts any supported input format and keeps what ever that is - which might be YUV 4:2:2, but might be something else just as well.

And remember: For the second option it does not matter what your original input video file contains. It does matter what the application passes to the Codec.

(For example, VirtualDub converts the input video to whatever you have selected under "Video" -> "Color Depth" before sending it to the Codec)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 2nd September 2013 at 14:28.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd September 2013, 14:44   #7  |  Link
HulkHoganRules
Registered User
 
Join Date: Aug 2012
Posts: 28
I did some PSNR and SSIM calculations and fortunately they are identical which is a good thing. The Convert to 420 option gave about 99.8% similarity.
HulkHoganRules 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 09:59.


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