Log in

View Full Version : Xvid 1.2.1 + VAQ - CQ 2 v 2P 1000


flebber
31st December 2008, 13:59
First I haven't used Xvid extensively I have largely used x264. I am using megui which has he 1.2.1 + vaq version of xvid.

I did two encodes expecting CQ profile to be best in both size and quality, however to me the 2pass version has had a better result, though it also does have a larger file size.

here are two frames

first 2P 1000
http://farm4.static.flickr.com/3242/3153651804_4daea95b2e_o.jpg
http://farm4.static.flickr.com/3237/3153651792_992e63f350_o.jpg
and next the CQ2

http://farm4.static.flickr.com/3237/3153651792_992e63f350_o.jpg
http://farm4.static.flickr.com/3242/3153651804_4daea95b2e_o.jpg
here are the profiles
2P 1000 -
program -i "input" -pass2 ".stats" -bitrate 1000 -kboost 100 -chigh 30 -clow 15 -overhead 0 -turbo -max_key_interval 250 -nopacked -vhqmode 4 -qmatrix "C:\Program Files\megui\extra\eqm_v3lr.xcm" -closed_gop -lumimasking -notrellis -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -threads 1 -o "output"
CQ2
program -i "input" -single -cq 1.5 -smoother 0 -max_key_interval 250 -nopacked -vhqmode 4 -qpel -closed_gop -lumimasking -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -threads 1 -o "output"

Is this a usual result for xvid ? Can CQ 2 be improved any further, without a big increase in file size? As the Xvid 2P 1000 finishes 20% bigger than the CQ2, in improving CQ2 I wouldn't want to exceed this % size increase.

I am used of getting 1 pass CRF results in x264 being better than 2 Pass when file size is of no concern.

PS. I have found an extra difference between encodes the 2P 1000 uses - C:\Program Files\megui\extra\eqm_v3lr.xcm - this quantization, whilst CQ2 uses h263.

Just for reference here is the same frame encoded with x264 on a 2 Pass Its final file size was minimally different to the final size of xvid CQ2.
the x264 profile.

http://farm4.static.flickr.com/3196/3153690674_e0db49c641_o.jpg

program --pass 2 --bitrate 1050 --stats ".stats" --level 5.1 --ref 5 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --weightb --direct auto --deblock -1:-1 --trellis 1 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me umh --merange 24 --threads auto --thread-input --aq-strength 1.2 --progress --no-dct-decimate --no-psnr --no-ssim --nr 300 --output "output" "input"

PpS. This just for a bit of fun.:)

turbojet
31st December 2008, 14:15
You could try mpeg matrix.

flebber
31st December 2008, 15:03
http://farm4.static.flickr.com/3234/3152933957_ab80e7f45e_o.jpg

Well MPEG quatnization has made the file size smaller, but in my opinion the appearance of h.263 was slightly better.

Sharktooth
31st December 2008, 15:27
you could try using the same settigns (trellis, custom matrix...) for both CQ and 2Pass...
also, i dont even know what preset you used since the new presets DO NOT include custom matrices...

flebber
31st December 2008, 15:58
I edited both your "CQ 2 HQ edit" profile and your "2P balanced" profile.

Sharktooth
31st December 2008, 16:11
well, compare using the same settings.

henryho_hk
31st December 2008, 17:42
352x288 ... looking like PAL VCD. What is the source?

flebber
31st December 2008, 22:28
352x288 ... looking like PAL VCD. What is the source?

Format : MPEG-PS
File size : 37.8 MiB
Duration : 3mn 48s
Overall bit rate : 1 389 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 1
Format settings, Matrix : Default
Duration : 3mn 48s
Bit rate mode : Constant
Bit rate : 1 068 Kbps
Nominal bit rate : 1 150 Kbps
Width : 352 pixels
Height : 288 pixels
Display aspect ratio : 4/3
Frame rate : 25.000 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.422

Audio
ID : 192 (0xC0)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3mn 48s
Bit rate mode : Constant
Bit rate : 224 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits

flebber
31st December 2008, 23:28
Using Sharktooths standard profiles.

2 Pass Balanced
http://farm4.static.flickr.com/3076/3154882906_581f99b66f_o.jpg

and CQ 2 HQ Edit

http://farm4.static.flickr.com/3104/3154882900_e87436d488_o.jpg

2Pass mode in Xvid is obviously far more effective than the CQ mode. The 2 Pass results are very good. If I reduced CQ to sharktooths CQ balanced profile to be the same as the 2 Pass (Balanced Profile) on then the quality difference would be pronounced in my opinion.

Thougt I may as well do a pass to confirm this, I used Sharktooths CQ 2 balanced profile.

http://farm4.static.flickr.com/3291/3154971798_38a30826d1_o.jpg