oddball
13th November 2006, 02:13
First off an apology to those I may have insulted in my earlier threads. Also sorry for posting in more than 1 place about my problems. Patience is not one of my virtues...
With that out of the way I'd like to know how I can get the best encodes from x264. I did a comparison of a 2 pass x264 encode against an XviD encode at input res and the XviD encode looked substantially better.
I've been trawling around looking for the correct Mencoder command line to get a really good x264 encode but thus far cannot find much that is relevant. It would seem a lot of people are using ffmpeg or GUI's instead.
I've barely been able to get to grips with Mencoder and the GUI's seem well...not very good (Ether that or I cannot get them to run. MeGUI will not run at all for me for some reason). I don't really want to learn ffmpeg since I am so far down the road learning the Mencoder options. Unless there is a BIG reason to choose ffmpeg over Mencoder that is.
I just need to output x264 transcoded from an H.264 BBC HD stream (Easier said than done though). I can get a decent output using an XviD command line I pinched from another thread. But x264 is meant to be better right? Using a simple 2 pass command line my x264 encodes look blocky in comparison to XviD at twice the bitrate or more. So I must be missing some extra x264 surely.
Can someone give me some example quality x264 command line for Mencoder?
Thanks in advance.
EDIT: I should really include the command lines I have tried so perhaps you can correct me.
What I used for 2 pass XviD
---
mencoder -sws 2 -alang eng -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000:vhq:vpass=1 -ffourcc XVID -vf pp=lb,scale=1440:1080 -ofps 25 test.ts -o "pass1.avi"
mencoder -sws 2 -alang eng -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000:vhq:vpass=2 -ffourcc XVID -vf pp=lb,scale=1440:1080 -ofps 25 test.ts -o "out.avi"
---
What I have tried for 2 pass x264 (I pinched some lines from someplace but they do not seem to work in both passes).
---
mencoder test.ts -ofps 25 -vf scale=1440:1088,pp=lb -alang eng -oac copy -ovc x264 -
x264encopts
pass=1:crf=22:psnr:8x8dct:mixed_refs:b_pyramid:frameref=10:weight_b:bframes=3:subq=6:brdo:bi
me:nofast_pskip:turbo=1 -o pass1.avi
mencoder test.ts -ofps 25 -vf scale=1440:1088,pp=lb -alang eng -oac copy -ovc x264 -
x264encopts
pass=2:psnr:8x8dct:mixed_refs:b_pyramid:frameref=10:weight_b:bframes=3:subq=6:brdo:bime:nofa
st_pskip:bitrate=8000 -o out.mkv
---
EDIT2: Awwww carp! How do I put the command lines in a box so it does not mess up the page?
With that out of the way I'd like to know how I can get the best encodes from x264. I did a comparison of a 2 pass x264 encode against an XviD encode at input res and the XviD encode looked substantially better.
I've been trawling around looking for the correct Mencoder command line to get a really good x264 encode but thus far cannot find much that is relevant. It would seem a lot of people are using ffmpeg or GUI's instead.
I've barely been able to get to grips with Mencoder and the GUI's seem well...not very good (Ether that or I cannot get them to run. MeGUI will not run at all for me for some reason). I don't really want to learn ffmpeg since I am so far down the road learning the Mencoder options. Unless there is a BIG reason to choose ffmpeg over Mencoder that is.
I just need to output x264 transcoded from an H.264 BBC HD stream (Easier said than done though). I can get a decent output using an XviD command line I pinched from another thread. But x264 is meant to be better right? Using a simple 2 pass command line my x264 encodes look blocky in comparison to XviD at twice the bitrate or more. So I must be missing some extra x264 surely.
Can someone give me some example quality x264 command line for Mencoder?
Thanks in advance.
EDIT: I should really include the command lines I have tried so perhaps you can correct me.
What I used for 2 pass XviD
---
mencoder -sws 2 -alang eng -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000:vhq:vpass=1 -ffourcc XVID -vf pp=lb,scale=1440:1080 -ofps 25 test.ts -o "pass1.avi"
mencoder -sws 2 -alang eng -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000:vhq:vpass=2 -ffourcc XVID -vf pp=lb,scale=1440:1080 -ofps 25 test.ts -o "out.avi"
---
What I have tried for 2 pass x264 (I pinched some lines from someplace but they do not seem to work in both passes).
---
mencoder test.ts -ofps 25 -vf scale=1440:1088,pp=lb -alang eng -oac copy -ovc x264 -
x264encopts
pass=1:crf=22:psnr:8x8dct:mixed_refs:b_pyramid:frameref=10:weight_b:bframes=3:subq=6:brdo:bi
me:nofast_pskip:turbo=1 -o pass1.avi
mencoder test.ts -ofps 25 -vf scale=1440:1088,pp=lb -alang eng -oac copy -ovc x264 -
x264encopts
pass=2:psnr:8x8dct:mixed_refs:b_pyramid:frameref=10:weight_b:bframes=3:subq=6:brdo:bime:nofa
st_pskip:bitrate=8000 -o out.mkv
---
EDIT2: Awwww carp! How do I put the command lines in a box so it does not mess up the page?