[MEncoder-users] h264 (and help with encoding) or divx
Alex Samad
alex at samad.com.au
Mon Mar 17 22:08:01 CET 2008
On Mon, Mar 17, 2008 at 02:34:12PM -0500, Brian Penick wrote:
> 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
don't have any issues with using it in the encoding
> handle cabac fine but 15 reference frames is a lot. I would suggest no more
I have found that when I turn this and the b_pyramids off, the resultant
avi/mp4 play okay on the xbox. I have also noted that reducing the
bitrate helps as well as reducing the size (thus letting the xbox scale)
> than 3. Also include all your command line options so we can see what your
I will try this with a frameref of 3
> audio options are. Lastly you hinted that you are going from 30 fps to 25
some of my source is 30 fps, I have not looked at changing it to 25 fps.
I had an issue when I tried to put together a mp4 file from the separate
source files, that it would default 25 fps and that would screw up the
audio sync, but I think that is a problem with MP4Box and my procedure
not with mencoder
> 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
yep I used this. This is paritial where I read about turning off cabac
and the b_pyramid for speading up the decoding.
After all this though, I have found that at the same bit rate divx seems
to be giving a better compression (and easier playability)
divx pass1
nice mencoder -really-quiet -aspect 16:9 -vf
scale=::::::qpal,hqdn3d=2:1:2,pp=de,uspp=5,harddup -af volnorm=1 -ovc
lavc -lavcopts
vcodec=mpeg4:vpass=1: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:preme=2:qns=2:autoaspect:vbitrate=2000
-oac mp3lame -lameopts preset=standard -passlogfile
"/tmp/user/1000/myConvert.EGkm5/divx2pass.log" -o /dev/null
"../src/video/by-date/20080229140228-MOV003_1.mpg" -ffourcc DX50
pass=2
nice mencoder -really-quiet -aspect 16:9 -vf
scale=::::::qpal,hqdn3d=2:1:2,pp=de,uspp=5,harddup -af volnorm=1 -ovc
lavc -lavcopts
vcodec=mpeg4:vpass=2: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:preme=2:qns=2:autoaspect:vbitrate=2000
-oac mp3lame -lameopts preset=standard -passlogfile
"/tmp/user/1000/myConvert.EGkm5/divx2pass.log" -o
"/tmp/user/1000/myConvert.EGkm5/20080229140228-MOV003_1.avi"
"../src/video/by-date/20080229140228-MOV003_1.mpg" -ffourcc DX50
for x264
nice mencoder -really-quiet -vf hqdn3d=2:1:2,pp=de,uspp=5,harddup
-af volnorm=1 -ovc x264 -x264encopts
pass=1:turbo=2:nocabac:nob_pyramid:subq=6:frameref=3:partitions=all:me=umh:bframes=3:weight_b:threads=auto:qcomp=0.75:mixed_refs:nofast_pskip:trellis=2:nodct_decimate:nopsnr:brdo:bitrate=2000
-oac mp3lame -lameopts preset=standard -passlogfile
"/tmp/user/1000/myConvert.D9fqt/divx2pass.log" -o /dev/null
"MOV023.mpg"
nice mencoder -really-quiet -vf hqdn3d=2:1:2,pp=de,uspp=5,harddup
-af volnorm=1 -ovc x264 -x264encopts
pass=2:nocabac:nob_pyramid:subq=6:frameref=3:partitions=all:me=umh:bframes=3:weight_b:threads=auto:qcomp=0.75:mixed_refs:nofast_pskip:trellis=2:nodct_decimate:nopsnr:brdo:bitrate=2000
-oac mp3lame -lameopts preset=standard -passlogfile
"/tmp/user/1000/myConvert.D9fqt/divx2pass.log" -o
"/tmp/user/1000/myConvert.D9fqt/MOV023.avi" "MOV023.mpg"
(note I took this from my just edit script reduced frameref from 5 to 3)
Thanks
>
>
>
> 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
> >
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
--
BOFH excuse #421:
Domain controller not responding
-------------- 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/20080318/14509058/attachment.pgp>
More information about the MEncoder-users
mailing list