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

Alex Samad alex at samad.com.au
Sat Mar 15 01:39:24 CET 2008


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

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20080315/062996dc/attachment.pgp>


More information about the MEncoder-users mailing list