[MEncoder-users] h264 (and help with encoding) or divx

Brian Penick bydivinerite at gmail.com
Mon Mar 17 20:34:12 CET 2008


partitions=all will slow down the encoding process. if you test it and
determine that using it vs setting specific options doesn't gain you any
quality and only slows things down, then don't use it.  I only offered it up
as a possible fix for your blocking issues.  your xbox should be able to
handle cabac fine but 15 reference frames is a lot.  I would suggest no more
than 3. Also include all your command line options so we can see what your
audio options are.  Lastly you hinted that you are going from 30 fps to 25
fps, correct?  Here's a link with some good information on mencoder's x264
options.

http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html



On Fri, Mar 14, 2008 at 7:46 PM, Alex Samad <alex at samad.com.au> wrote:

> On Sat, Mar 15, 2008 at 11:39:24AM +1100, Alex Samad wrote:
> > On Sat, Mar 08, 2008 at 11:34:18PM +1100, Alex Samad wrote:
> > > On Sat, Mar 08, 2008 at 05:39:30AM -0600, Brian Penick wrote:
> > [snip]
> >
> > I have cut most of the thread, this is more of a round up to that
> >
> > my aim was to look for some good options for encoding my home video
> > (handy cam and a cannon video) using x264 and being able to play on an
> > xbox (low processing power)
> >
> > i used this list and also
> > http://sourceforge.net/projects/h264enc
> > http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html
> > and the man pages for mencoder (from debian)
> >
> > I have decided to go with 2 pass instead of 3/n pass, the man pages say
> > there is no real benefit for normal source files.
> >
> > this are the common options I am using
> >
> subq=6:frameref=15:partitions=all:me=umh:bframes=3:nob_pyramid:weight_b:threads=auto:qcomp=
> 0.75:mixed_refs:nof
> > ast_pskip:trellis=2:8x8dct:nocabac:nodct_decimate:nopsnr:brd
> forgot to add
>
> pass=1:turbo=2 on pass 1
> pass=2 on pass 2
>  >
> > specifically I have turned off cabac and pyramids to help with decoding
> > on the xbox (still in the process of testing, also looking at reducing
> > the size of the encoding video and letting the xbox scale up ?)
> >
> > I am trialling 700 1100 1400 and 2000 bitrate.
> >
> > in my script I can easy change between mp3 and aac.  The mp3 seems to
> > produce smaller files, but qt has problems playing the resultant files
> > (but I have read that aac files take more cpu power - again the xbox.) I
> > haven't done anything special with the audio encoding.
> >
> > at the same time I have also done divx encoding using
> >
> >
> mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:prem
> > e=2:qns=2:autoaspect
> >
> > from http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html
> >
> > the resultant files for divx are smaller (ignore <1500 for the tst-w*
> > divx, it was unable to produce any video)
> >
> >
> > but the quality at the lower bitrates is not there.
> >   21M 2008-03-05 11:42 MOV023.mpg
> >  2.9M 2008-03-05 11:42 tst-mov023-1100-divx-aac.avi
> >  3.1M 2008-03-05 11:42 tst-mov023-1100-divx-mp3.avi
> >  2.8M 2008-03-05 11:42 tst-mov023-1100-x264-aac.mp4
> >  3.1M 2008-03-05 11:42 tst-mov023-1100-x264-mp3.mp4
> >  3.7M 2008-03-05 11:42 tst-mov023-1500-divx-aac.avi
> >  4.0M 2008-03-05 11:42 tst-mov023-1500-divx-mp3.avi
> >  3.7M 2008-03-05 11:42 tst-mov023-1500-x264-aac.mp4
> >  3.9M 2008-03-05 11:42 tst-mov023-1500-x264-mp3.mp4
> >  4.8M 2008-03-05 11:42 tst-mov023-2000-divx-aac.avi
> >  1.9M 2008-03-05 11:42 tst-mov023-700-divx-aac.avi
> >  2.2M 2008-03-05 11:42 tst-mov023-700-divx-mp3.avi
> >  1.9M 2008-03-05 11:42 tst-mov023-700-x264-aac.mp4
> >  2.2M 2008-03-05 11:42 tst-mov023-700-x264-mp3.mp4
> >   36k 2008-03-15 00:38 tst-wedding-1100-divx-aac.avi
> >   59k 2008-03-15 00:38 tst-wedding-1100-divx-mp3.avi
> >  296k 2008-03-15 00:38 tst-wedding-1100-x264-aac.mp4
> >  325k 2008-03-15 00:38 tst-wedding-1100-x264-mp3.mp4
> >  350k 2008-03-15 00:38 tst-wedding-1500-divx-aac.avi
> >  380k 2008-03-15 00:38 tst-wedding-1500-divx-mp3.avi
> >  392k 2008-03-15 00:38 tst-wedding-1500-x264-aac.mp4
> >  424k 2008-03-15 00:38 tst-wedding-1500-x264-mp3.mp4
> >  488k 2008-03-15 00:38 tst-wedding-2000-divx-aac.avi
> >  513k 2008-03-15 00:38 tst-wedding-2000-x264-aac.mp4
> >   36k 2008-03-15 00:38 tst-wedding-700-divx-aac.avi
> >   59k 2008-03-15 00:38 tst-wedding-700-divx-mp3.avi
> >  198k 2008-03-15 00:38 tst-wedding-700-x264-aac.mp4
> >  227k 2008-03-15 00:38 tst-wedding-700-x264-mp3.mp4
> >  7.3M 2008-03-15 00:38 wedding-2008.03.02_05-47-27.avi
> >
> >
> > i also get these errors on play back with mplayer  for the divx + aac
> > FAAD: error: Unable to find ADTS syncword, trying to resync!3% 0 0
> > FAAD: Failed to decode frame: Unable to find ADTS syncword
> >
> >
> > I am not too fussed on the encoding time, which might explain some of my
> > x264 options.  These are based on the stuff I have read, I haven't made
> > empirical test for each option (hoping for some feedback)
> >
> > I am using -vf spp,hqdn3d=2:1:2,harddup for all the above encodings
> >
> >
> > thanks
> > alex
> >
> > ps my xbox runs the media area in the house, easy for every one to use!
> >
> >
> > --
> > "There's an old saying in Tennessee--I know it's in Texas, probably in
> Tennessee--that says, fool me once, shame on--shame on you. Fool me--you
> can't get fooled again."
> >
> >       - George W. Bush
> > 09/17/2002
> > Nashville, TN
> > Speaking at the East Literature Magnet School
>
>
>
>  > _______________________________________________
> > MEncoder-users mailing list
> > MEncoder-users at mplayerhq.hu
> > https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
> --
> "But the God I know is not one that -- the God I know is one that promotes
> peace and freedom. But I get great sustenance from my personal relationship.
> That doesn't make me think I'm a better person than you are, by the way."
>
>        - George W. Bush
> 06/24/2004
> Washington, DC
> in an Interview on Radio and Television Ireland
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFH2xxNkZz88chpJ2MRAt6dAKC08C+fvEMbpIgHOUJKOdAVYRc6sACdG450
> p6p7VwqqPK+D465A00gmX3U=
> =pEEz
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>



More information about the MEncoder-users mailing list