This project has moved. For the latest updates, please go here.

Constant Quality encoding profile?

May 25 at 4:03 PM
Hi all,

I'm interested in trying a constant quality encoding profile, but haven't found the right syntax to do so. Has anyone done this? Pros / Cons? Can you share?

Thanks! Will.
Jun 1 at 4:44 PM
FWIW, I created a new constant quality profile, and the visual quality of the encodings is substantially improved. I took the High Quality MKV encoding profile and changed the hanbrake portion from "-b 1800" to "-q 18" - one caveat: it's definitely slower, but I'm not sure I care about that, given the increase in quality.

Thanks! Will.
Jun 8 at 10:20 PM
Ok - it's still not working. The provide I created is below:

[MKV Constant Quality]
Description=WARNING: Constant Quality profile.
mencoder-general=-ss 3 -vf pullup,softskip,yadif=0:-1,hqdn3d,harddup
mencoder-video=-ovc x264 -x264encopts vqscale=20:me=hex:trellis=2:subq=8:partitions=all:8x8dct:ref=5:rc_lookahead=50:keyint=25:keyint_min=20:bframes=3:weight_b:level_idc=40:b_pyramid=normal:direct_pred=auto:mixed_refs:deblock=-1,-1:nofast_pskip:nodct_decimate:b_adapt=2:threads=auto
mencoder-audio=-oac lavc -lavcopts acodec=ac3:abitrate=192
mencoder-audioac3=-oac lavc -lavcopts acodec=ac3:abitrate=384
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vf yadif=0:-1:1,hqdn3d -vcodec libx264 -crf 20 -x264opts me=hex:trellis=2:subq=8:partitions=all:8x8dct=1:ref=5:rc-lookahead=50:keyint=25:min-keyint=20:bframes=3:weightb=1:level=4.0:b-pyramid=normal:direct=auto:mixed-refs=1:deblock=-1,-1:no-fast-pskip=1:no-dct-decimate=1:b-adapt=2:threads=auto -map 0:v -sn
ffmpeg-audio=-acodec ac3 -ab 192k -map 0:a
ffmpeg-audioac3=-acodec ac3 -ab 384k -map 0:a
handbrake-general=--decomb --denoise="weak" --loose-anamorphic --verbose=2 -T -O
handbrake-video=--start-at duration:3 -e x264 -q 20 -x me=hex:trellis=2:subq=8:partitions=all:8x8dct:ref=5:rc-lookahead=50:keyint=25:keyint-min=20:bframes=3:weight-b:level-idc=40:b-pyramid=normal:direct-pred=auto:mixed-refs:deblock=-1,-1:nofast-pskip:nodct-decimate:b-adapt=2:threads=auto
handbrake-audio=-E ffac3 -R auto -B 192 -D 0 -a 1,2,3,4,5
handbrake-audioac3=-E ffac3 -R auto -B 384 -D 0 -a 1,2,3,4,5

The UI is still showing two passes of video conversion, and I can't tell from the logs which encoder is doing the work. Any help is greatly appreciated!
Jun 9 at 9:36 PM
Sometimes posting code is the best way to fix things:

Removing the "2pass" line eliminates the issue I was running into. It's also much faster!
Jun 10 at 1:05 PM
2 pass is completely different from constant quality, you can still have 2 pass with constant quality. What issue are you facing with constant quality and 2 pass. You profile looks fine and should work fine.