Mercurial > mplayer.hg
comparison libmpcodecs/ve_lavc.c @ 5781:62e9e0c0bd6a
hq mode in first pass should work (as bad, ehh as well as LQ)
apllied small part of patch by Rmi Guyomarch <rguyom@pobox.com>
author | michael |
---|---|
date | Mon, 22 Apr 2002 02:00:23 +0000 |
parents | f2586f1a3a96 |
children | 80c25f6a535f |
comparison
equal
deleted
inserted
replaced
5780:aae45ee17fc3 | 5781:62e9e0c0bd6a |
---|---|
140 lavc_venc_context.flags = CODEC_FLAG_HQ; | 140 lavc_venc_context.flags = CODEC_FLAG_HQ; |
141 } | 141 } |
142 else | 142 else |
143 lavc_venc_context.flags = 0; | 143 lavc_venc_context.flags = 0; |
144 | 144 |
145 /* 4mv is currently buggy with B frames */ | |
146 if (lavc_param_vmax_b_frames > 0 && lavc_param_v4mv) { | |
147 printf("4MV with B-Frames not yet supported -> 4MV disabled\n"); | |
148 lavc_param_v4mv = 0; | |
149 } | |
150 | |
145 lavc_venc_context.flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; | 151 lavc_venc_context.flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; |
146 | 152 |
147 /* lavc internal 2pass bitrate control */ | 153 /* lavc internal 2pass bitrate control */ |
148 if(lavc_param_vpass==1) | 154 if(lavc_param_vpass==1) |
149 lavc_venc_context.flags|= CODEC_FLAG_PASS1; | 155 lavc_venc_context.flags|= CODEC_FLAG_PASS1; |
168 switch(pass){ | 174 switch(pass){ |
169 case 1: | 175 case 1: |
170 if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1){ | 176 if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1){ |
171 mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); | 177 mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); |
172 pass=0; | 178 pass=0; |
173 } else | 179 } |
174 lavc_venc_context.flags &= ~CODEC_FLAG_HQ; | |
175 break; | 180 break; |
176 case 2: | 181 case 2: |
177 if (VbrControl_init_2pass_vbr_encoding(passtmpfile, | 182 if (VbrControl_init_2pass_vbr_encoding(passtmpfile, |
178 lavc_venc_context.bit_rate, | 183 lavc_venc_context.bit_rate, |
179 (float)mux_v->h.dwRate/mux_v->h.dwScale, | 184 (float)mux_v->h.dwRate/mux_v->h.dwScale, |