[MEncoder-users] change bpp

Rich Felker dalias at aerifal.cx
Mon Nov 7 03:50:32 CET 2005


On Sat, Nov 05, 2005 at 10:55:26PM +0100, Aleksandar Uzelac wrote:
> 
>   for some time now i'm trying to change color depth of mpeg2 video while converting it to xvid. mencoder creates xvid file with 12bpp, but if i try to convert same mpeg2 video to divx (with lavc) mencoder creates divx with 24bpp (and the difference is significant).
> 
>   how do i change pixel color depth (bpp, biBitCount)?
> 
>   configuration info:
> 
> MPlayer 1.0pre6-3.2.3
> 
> divx:
> "c:\Program Files\mplayer\mencoder" dvd://1 -dvd-device
> "H:/filmovi/movie" -oac lavc -ofps 25.000 -vf
> crop=704:576:8:0,hqdn3d=2:1:2,scale=528:432 -ovc lavc -lavcopts
> acodec=ac3:abitrate=96:vcodec=mpeg4:vbitrate=1059:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1
> -o h:/movie.avi
> 
> xvid:
> "c:\Program Files\mplayer\mencoder" dvd://1 -dvd-device
> "H:/filmovi/movie" -oac lavc -ofps 25.000 -vf
> crop=704:576:8:0,hqdn3d=2:1:2,scale=528:432 -ovc xvid -lavcopts
> acodec=ac3:abitrate=96 -xvidencopts
> bvhq=1:vhq=4:hq_ac:trellis:gmc:qpel:me_quality=6:chroma_me:chroma_opt:bitrate=1059:pass=1
> -o h:/movie.avi

one more thing... this IS NOT DIVX!!! it's lavc's mpeg4 encoder. and
you have to specify proper -lavcopts... at the very least do both
passes.

rich




More information about the MEncoder-users mailing list