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. |
7th September 2012, 20:44 | #1 | Link |
Registered User
Join Date: Aug 2007
Posts: 18
|
Using MOD4/2 over MOD16 with x264?
I was wondering what kind of problems i could run into from using mod2 or 4 over mod16 with x264?
is mod2 and 4 still square pixels? 720/390 is closet for a bluray i'm downsizing and i really want to get it in the 720x*** range. So would would i run into any problems using 720x390 over 720x384? besides the fact that the mod16 has a 1.5625 resize error and the mod2 has a 0% |
7th September 2012, 21:00 | #2 | Link | |
契約者
Join Date: Jun 2008
Posts: 1,576
|
Quote:
They have nothing to do with square or not square pixels By saying that you obviously keeping in mind some crappy fromt end (GUI). Throw it away, encode MOD2 (or whatever you want) with correct aspect ratio and without overcropping. |
|
7th September 2012, 21:10 | #3 | Link |
Registered User
Join Date: Aug 2007
Posts: 18
|
So it'd be okay to use mod4 or mod4 over mod16 and yes i was using a resize calculator.
What is the main difference in using mod4 or mod2 over mod16? Because when googling this it doesn't really help me as every post say something different. One says it doesn't really matter if you use don't use mod16 with x264 and others say to stick with mod16. |
7th September 2012, 21:18 | #4 | Link |
契約者
Join Date: Jun 2008
Posts: 1,576
|
Since x264 uses 16x16 blocks to encode the picture, when for the last block in column or row there is less pixels, lets say 8 (like in 1920x1080), it will add padding to extend it to 16px. Bit you won't see these extra pixels anyway. As you can see even blurays have that, so why you shouldn't? No reason to prefer mod16 unless you really like numbers that you can divide by 16 and can't live without them.
Last edited by Keiyakusha; 7th September 2012 at 21:21. |
12th September 2012, 02:35 | #6 | Link |
Telewhining
Join Date: Mar 2010
Posts: 272
|
Really the only advantage of mod16 is a very slight increase in compression.
If you want perfect aspect ratios and mod16, try: 768x432 / 16:9 (Widescreen) 768x320 / 2.4:1 (Panoramic widescreen) 768x576 / 4:3 Last edited by nibus; 12th September 2012 at 02:39. |
14th September 2012, 19:42 | #9 | Link |
契約者
Join Date: Jun 2008
Posts: 1,576
|
Actually in proper h264 encode there should be ar information on stream level. anything that is not able to read that info I personally consider broken. Not sure if standard requires this or not. Fact that many people use only container ar created many problems and confusion. I wish it was never included in matroska spec, same as framerate and resolution info, that can be found in stream itself and that can vary any number of times during one stream.
Last edited by Keiyakusha; 14th September 2012 at 19:45. |
14th September 2012, 19:47 | #11 | Link |
Banned
Join Date: Mar 2004
Location: PA, US
Posts: 683
|
So they are broken players then, and deserve no respect. I'm not sure that a raw h.264 stream contains anything but pixel aspect ratio, which isn't helpful in the big picture. A container's set aspect ratio and the pixel ratio is what determines the final product.
|
14th September 2012, 20:25 | #12 | Link | |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Quote:
I actually use stream level aspect ratios myself (setting SAR in x264), I was just answering why some would want to encode square pixels. Remember there is no "best". |
|
14th September 2012, 20:57 | #14 | Link | |
User of free A/V tools
Join Date: Jul 2006
Location: SK
Posts: 826
|
Quote:
When there is no AR specified at container's level then 1:1 should be assumed by default of course. In that case SAR (as specified with --sar switch in x264 parameters) is the only thing that determines final DAR so it is totally helpful also in the big picture. |
|
14th September 2012, 23:44 | #15 | Link | |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Quote:
Not that this has anything to do with the OP's question. |
|
|
|