r23460 - trunk/libavcodec/vorbis_enc.c
Author: cehoyos Date: Fri Jun 4 01:53:10 2010 New Revision: 23460 Log: Raise default vorbis encoding quality. Patch by Frank Barchard, fbarchard google com Modified: trunk/libavcodec/vorbis_enc.c Modified: trunk/libavcodec/vorbis_enc.c ============================================================================== --- trunk/libavcodec/vorbis_enc.c Fri Jun 4 00:20:07 2010 (r23459) +++ trunk/libavcodec/vorbis_enc.c Fri Jun 4 01:53:10 2010 (r23460) @@ -955,7 +955,7 @@ static av_cold int vorbis_encode_init(AV if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.; else - venc->quality = 1.; + venc->quality = 0.03; venc->quality *= venc->quality; avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
On Fri, 4 Jun 2010 01:53:11 +0200 (CEST) cehoyos <subversion at mplayerhq.hu> wrote:
Author: cehoyos Date: Fri Jun 4 01:53:10 2010 New Revision: 23460
Log: Raise default vorbis encoding quality.
Patch by Frank Barchard, fbarchard google com
Modified: trunk/libavcodec/vorbis_enc.c
- venc->quality = 1.; + venc->quality = 0.03; venc->quality *= venc->quality;
This change make all encoded samples 0 (did you test libvorbis instead?) Or in other words: completely silent output To raise the quality this parameter should be higher, -aq 30.0 gives around the same output size than oggenc for the one file I tested and definitely better quality than before this commit. Attached patch gives about the same results than using -aq 30.0. Why does it use 3.0 and not 30.0 ? I am not sure what the calculation involving CODEC_FLAG_QSCALE and FF_QP2LAMBDA really means: But I guess a "factor to convert from H.263 QP to lambda" (from avcodec.h) isn't related to vorbis ? -- Rafa?l Carr?
participants (2)
-
rafael.carre@gmail.com -
subversion@mplayerhq.hu