View Full Version : Linux mencoder/x264 aq-strength, psy-rd, psy-trellis, etc... parameters.
Pitou
2nd October 2008, 21:31
Hello,
I'm using Ubuntu along with mencoder/x264.
I know it's using the libx264 library to do the encoding.
Now the one included is libx264-57 which doesn't include aq-strength, psy-rd, psy-trellis, etc... parameters.
Doesn anyone has compiled one with all the wonderful patches members provided here?
Thank you.
Pitou!
Dark Shikari
2nd October 2008, 21:37
What patches? All the settings you mentioned exist in the latest x264. Update.
fields_g
2nd October 2008, 21:44
Yea, you are going to have to step away from the Ubuntu repository versions to get these features. To get the most current version, you will probably want to build from git.
Pitou
2nd October 2008, 21:53
fields_g,
Any pointers, links, turorials? Or do you know any .deb or repository that has a recent version?
Thanks in advance.
Pitou!
fields_g
2nd October 2008, 22:07
http://forum.doom9.org/showthread.php?p=1187438#post1187438
Specifically step #1 and #2.
This is what I found by searching "linux git". I've never built myself under linux, but I know many here have. If this doesn't help, you might need someone else's expertise.
martino
2nd October 2008, 22:08
For the easiest approach (just x264 build, no shared for mencoder stuff)...
-sudo apt-get install gpac
Then get the yasm source (the one in the Hardy repository doesn't work with x264, not sure about other distros)
Build it with ./configure and make && make install
Afterwards get x264 source from git, and do the same as for yasm building.
IIRC that's all that was needed, however I may be wrong (a while since I had to setup my system for this).
Pitou
3rd October 2008, 02:16
fields_g,
Thank you very much, it works like a charm!
If someone needs it, feel free to ask.
Pitou!
fields_g
3rd October 2008, 04:45
Glad to hear that it worked!
zacharias
28th February 2012, 20:44
hey there you all.
i've recently moved to linux as my default OS. im currently using debian wheezy.
i've been wanting to ask you guy if the following x264 configs and scripts are good enough to make a x264 2pass coded video using mencoder to hit a specif target size.
here's the script
##P4$$0N3
flick.vob -o /dev/null -nosound -ovc x264 \
-x264encopts pass=1:level=4.1:ref=16:bframes=6:b-adapt=2:direct=auto:deblock=-1,-1:subme=8:psy-rd=1,0.3 \
partitions=all:me=umh:merange=24:aq-strength=0.8:no-dct-decimate:bitrate=-1162000:threads=auto \
-vf crop=718:560:0:8,scale=720:-10,harddup
##P4$$ TW0
mencoder flick.vob -nosound -ovc x264 \
-x264encopts pass=2:level=4.1:ref=16:bframes=6:b-adapt=2:direct=auto:deblock=-1,-1:subme=8:psy-rd=1,0.3 \
partitions=all:me=umh:merange=24:aq-strength=0.8:no-dct-decimate:bitrate=-1162000:threads=auto \
-vf crop=718:560:0:8,scale=720:-10,harddup -o rip.264
is there anymore tweaks i can do to improve quality?
kudos
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.