Log in

View Full Version : How set Aspect Ratio in encoding files with X264.~


sugala
30th July 2005, 08:25
Er.It made me crazy.I've tried it for many days.
Ask for help.

madoka
30th July 2005, 09:05
Er.It made me crazy.I've tried it for many days.
Ask for help.
--sar width:height

SeeMoreDigital
30th July 2005, 09:08
Hi and welcome to the forum,

Which version of x264 are you using? If it the VfW version (with GUI) you should see this: -

http://img293.imageshack.us/img293/4689/x264vfw2xa.png

But don't forget, you'll also need to have an x264 decoder filter installed that's capable of understanding AR signalling ;)


Cheers

sugala
30th July 2005, 09:29
Hi and welcome to the forum,

Which version of x264 are you using? If it the VfW version (with GUI) you should see this: -

http://img293.imageshack.us/img293/4689/x264vfw2xa.png

But don't forget, you'll also need to have an x264 decoder filter installed that's capable of understanding AR signalling ;)


Cheers

Oh.Which decoder should I use?
FFDShow.

sugala
30th July 2005, 09:32
The version I used is rev281A_mmx.

Sharktooth
30th July 2005, 10:46
yup, ffdshow supports AR signaling.
you just have to enable it.

sugala
30th July 2005, 11:19
yup, ffdshow supports AR signaling.
you just have to enable it.

What should I do with the settings?

Sharktooth
30th July 2005, 11:50
:search:

sugala
30th July 2005, 13:05
Can you explain it in detail ,please? you make me crazy!

SeeMoreDigital
30th July 2005, 13:08
Can you explain it in detail ,please? you make me crazy!There are a few threads about this subject on the forum already... If you search the forum you will find them!


Cheers

Peter1234
1st August 2005, 10:29
sugala,
The x264 decoder I am using does not recognize the SAMPLE AR settings, so I just resize the video in AviSynth before sending it to the encoder and use SAMPLE AR set to 1:1. That way it is correct in any decoder.

SeeMoreDigital
1st August 2005, 10:42
sugala,
The x264 decoder I am using does not recognize the SAMPLE AR settings, so I just resize the video in AviSynth before sending it to the encoder and use SAMPLE AR set to 1:1. That way it is correct in any decoder.That's fine if all you want to do is generate "square pixelled" encodes... but not very useful if you want to generate "anamorphic" encodes - like you find on all DVD sources!


Cheers

Peter1234
1st August 2005, 11:40
SeeMoreDigital,
That is true. I hadn't got that far yet. This is my 2nd day playing with x264. What x264 decoder would you recommend (for Windows XP)?

SeeMoreDigital
1st August 2005, 12:24
Well... I'm using the decoder and other filters that come with NeroDigital, but many others are using FFdshow.


Cheers

Peter1234
1st August 2005, 13:06
SeeMoreDigital,
Thanks. I tried FFdshow 20041012 but that did not seem to decode x264. I will look at it again. I have the lastest Nero Express OEM and that does decode x264 but the video is sometimes jerky. I have been using a 30 day trial version H264 decoder from VSSH which works well but does not use the encoder aspect ratio settings. I even tried Quicktime 7 preview for Windows, but that did not decode x264 at all in spite of claiming to work with H264. I will see if there is a Nero Digital demo download I can try. Thanks again for your help.

SeeMoreDigital
1st August 2005, 13:33
Try the following MPEG-4 AVC Test files with AR Signalling (http://82.2.167.237/Uploaded_Files/Doom9_Forum_files/MPEG-4_AVC_Test_Files_with_AR_Signalling.7z).


Cheers

Sharktooth
1st August 2005, 13:42
SeeMoreDigital,
Thanks. I tried FFdshow 20041012 but that did not seem to decode x264.
You need a newer build. the one you used is too old.
also x264 actually is the best AVC encoder you can find (until the next ateme encoder gets into recode...) and supports most of the High Profile features too...

Peter1234
2nd August 2005, 04:21
Sharktooth,
Thanks for your help and thanks for generating the sse versions of ffdshow. They are the only ones that will install on my P4 computer (using Windows XP). The non-sse versions are unable to register the ax file. I am using the ffdshow-20050228-sse.exe version. It decodes x264, but it does not use the aspect ratio settings of the x264 encoder (I am still reading through the posts to learn how to get aspect ratio to work).

leowai
2nd August 2005, 05:26
Sharktooth,
Thanks for your help and thanks for generating the sse versions of ffdshow.
Sharktooth generated the SSE version of ffdshow? I think it's the official version and Sharktooth only compile the SSE2 version of x264, right?

They are the only ones that will install on my P4 computer (using Windows XP). The non-sse versions are unable to register the ax file. I am using the ffdshow-20050228-sse.exe version. It decodes x264, but it does not use the aspect ratio settings of the x264 encoder (I am still reading through the posts to learn how to get aspect ratio to work).
Non SSE version of ffdshow doesn't work on P4?

If you know registry more, I got a quick tweak for you. It works for me using newer version of ffdshow (i.e. 20050721, you can get it from here http://www.aziendeassociate.it/cd.asp?dir=/ffdshow).

Just in case any thing goes wrong, you should backup your registry setting before further process from this stage. Don't blame me if you mess up your registry. haaa.. I doubt you would. :D

Save quoted texts into a file with extension of ".reg", double click to merge the contents into your registry.

Enable AR correction in ffdshow

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\GNU\ffdshow\default]
"hwOverlay"=dword:00000001
"allowOutChange"=dword:00000001


To restore default settings (for my case):

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\GNU\ffdshow\default]
"hwOverlay"=dword:00000000
"allowOutChange"=dword:00000000

Peter1234
2nd August 2005, 06:44
leowai,
Wow! Great information, thanks. I meant compile when I said generated (I should be more accurate).

Peter1234
2nd August 2005, 08:49
leowai,
Registry changes did not help. The newest version I can run is ffdshow-20050303-sse. Perhaps I need a newer version. I can live with a 1:1 aspect ratio for now, so I will just wait for newer sse versions. I tried ffdshow-20050727.exe and it had the same problem registring the ax file. Thanks for your detailed help.

celtic_druid
2nd August 2005, 09:34
ffdshow-20050727 was compiled with MSVC7.1 and now that I think about it I didn't include msvcr71.dll, I am guessing that it is missing on your system.

20050703MSVC71 I am pretty sure that I packed msvcr71.dll so it should work and 20050703 doesn't need it.

Peter1234
2nd August 2005, 18:13
celtic_druid,
Yes, msvcr71.dll was not on my system. I installed it and ffdshow-20050727.exe installed. Thanks for your help.

Peter1234
3rd August 2005, 10:20
To play 720x480 frame size video at 4:3 aspect ratio

This worked in Media Player Classic 6.4.8.4 but not in Windows Media Player or WinDVD.

steps:

1. installed
Media Player Classic 6.4.8.4
haali_media_splitter_792
ffdshow-20050727
X264VFW_rev281A_mmx.exe

2. set x264 encoder Sample AR to 4:3 when encoding (in Advanced window)

3. In ffdshow video decoder settings (access from Windows start menu).
3a. set "use overlay mixer" in output settings
3b. moved Overlay aspect ratio slider to “default” in resize settings
3c. set "keep original aspect ratio" in resize settings

4. modified registry settings

5. set Video Frame option to "Keep Aspect Ratio" in Media Player Classic (on View menu)

EDIT:
Something is missing. I restored my computer using a backup to the state before adding any x264 files. I then repeated the above and it did not work.