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. |
26th September 2005, 11:33 | #1 | Link |
Registered User
Join Date: Oct 2002
Posts: 92
|
Correct Aspect-Ratio in x264?
I used XVID all the time to encode PAL DVB-streams - now I want to test x264.
Most streams I encode are in 720x576. In XVID I selected the 4:3-PAL setting for the Aspect-Ratio, so the video will be stretched correctly during playback. In x264 I have the option "Sample AR". I would like to know what settings I need to type in for correct 4:3-PAL and 16:9-PAL in x264. |
26th September 2005, 11:53 | #4 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Or......
PAL 4:3 DAR = 16:15 PAL 16:9 DAR = 64:45 NTSC 4:3 DAR = 8:9 NTSC 16:9 DAR = 32:27 EDIT: In February 2006 I conceived a tool called ARS Calculator to help people work out Aspect Ratio Signalling (ARS) ratios (ie: PAR, SAR, DAR) for use with encoders such x264 and XviD Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
Last edited by SeeMoreDigital; 2nd October 2006 at 16:10. |
26th September 2005, 12:51 | #6 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Personally speaking I prefer to use the (4:3 or) 16:9 DAR calculations because they will always output an (4:3 or) 16:9 shaped image, regardless of the sources pixel size/ratio.
Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
29th September 2005, 15:17 | #11 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
Added more info on SAR in the daily builds FAQs.
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
29th September 2005, 17:21 | #13 | Link | |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
Quote:
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose |
|
29th September 2005, 18:46 | #14 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Just in-case anybody needs to know, here are the FFdshow "overlay settings" I use in-conjunction with MediaPlayer Classic: -
Encodes with AR signalling in AVI, MP4, MKV and OGM work perfectly.... Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
29th September 2005, 21:13 | #15 | Link |
Registered User
Join Date: May 2003
Posts: 63
|
ok thanks a lot
zplayer vmr and ffdshow overlay mixer works (thought i have to use it for both), not as smooth as vcl but its workin (i have to click on fit source one time) besides i dont really know what to do with those crappy 480x576 streams 480x576 autozoom to 768x576 or somethin like 480x576 encode to 640x480 or even 768x576 Last edited by fatxy; 29th September 2005 at 21:27. |
29th September 2005, 21:48 | #16 | Link | ||
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Quote:
Good Example a 52.000µs capture: DAR = 1,3333 * 576 / 702 = almost 1,094:1 = PAR 128:117 Here a 702x576 is truely DAR 4:3 @ PAR 1,094 Bad example, a fullscreen 720x576 DVD as source: DAR = 1,3333 * 576/720 = 1,06664 = the common error of generic par happens here 720 * (128/117) / 576 = DAR 1,3675:1 equals not 4:3 (1,3333) DAR = 1,3675 * 576 / 720 = PAR 1,094:1 = ok Quote:
480x576 px sources do have 53,3333us (same as 720x576). 768x576 do have 52,0000us 53,3333/52,0000 = 1,02564 <--- our diff. factor! So do resize 480 x 576 to 768*(1,02564) x 576 = 788x576 or do crop 480 x 576 to 480/1,02564 x 576 = 468x576 and resize to 768x576 If you do respect these your eyes when watching mpeg4s via HTPC will kiss you. Last edited by Inc; 29th September 2005 at 21:54. |
||
29th September 2005, 22:16 | #17 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Lookie here... I've made some Anamorphic Test Files for you guys to try!
Provided you have the correct decoder filters installed they should all open up at 16:9... Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
Last edited by SeeMoreDigital; 19th January 2006 at 17:49. |
19th January 2006, 16:56 | #18 | Link | |
Registered User
Join Date: Jul 2002
Location: Canada
Posts: 196
|
@Incredible:
Quote:
Thanks |
|
19th January 2006, 17:12 | #19 | Link |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Full TV PAL is 768x576 @ 52.000µs @ 14,7692307Mhz (= quadra pixels)
ITU samplingrate is 13,5 Mhz (= squarepixels) 14,7692307/13,5 = 1,094017 = TV PAR @ 13.5Mhz used by a SAP or ... 52.000µs * 13.5Mhz = 702 active pixels at square pixels 52.000µs * 14,7692307Mhz = 768 active pixels at quadra pixels 768/702 equals 128/117 equals 1,094017 Last edited by Inc; 19th January 2006 at 17:15. |
19th January 2006, 18:26 | #20 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
That's fine for anamorphic encodes with pixel frame width of 702....
However, if you want to generate spec PAL video files with a target aspect ratio of 4:3 based on a pixel frame width of 720, I would recommend you use the following calculation: - 768/720 = Lowest fraction = 16/15 (Decimal = 1.094017) However, if you want to generate spec PAL video files with a target aspect ratio of 16:9 based on a pixel frame width of 720, I would recommend you use the following calculation: - 1024/720 = Lowest fraction = 64/45 (Decimal = 1.422222) Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|