mirror of
https://github.com/mpv-player/mpv
synced 2025-03-08 15:18:00 +00:00
hq mode in first pass should work (as bad, ehh as well as LQ)
apllied small part of patch by Rémi Guyomarch <rguyom@pobox.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5782 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0963631d13
commit
44ffcada5d
@ -142,6 +142,12 @@ static int config(struct vf_instance_s* vf,
|
|||||||
else
|
else
|
||||||
lavc_venc_context.flags = 0;
|
lavc_venc_context.flags = 0;
|
||||||
|
|
||||||
|
/* 4mv is currently buggy with B frames */
|
||||||
|
if (lavc_param_vmax_b_frames > 0 && lavc_param_v4mv) {
|
||||||
|
printf("4MV with B-Frames not yet supported -> 4MV disabled\n");
|
||||||
|
lavc_param_v4mv = 0;
|
||||||
|
}
|
||||||
|
|
||||||
lavc_venc_context.flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
|
lavc_venc_context.flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
|
||||||
|
|
||||||
/* lavc internal 2pass bitrate control */
|
/* lavc internal 2pass bitrate control */
|
||||||
@ -170,8 +176,7 @@ static int config(struct vf_instance_s* vf,
|
|||||||
if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1){
|
if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1){
|
||||||
mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
|
mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
|
||||||
pass=0;
|
pass=0;
|
||||||
} else
|
}
|
||||||
lavc_venc_context.flags &= ~CODEC_FLAG_HQ;
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (VbrControl_init_2pass_vbr_encoding(passtmpfile,
|
if (VbrControl_init_2pass_vbr_encoding(passtmpfile,
|
||||||
|
Loading…
Reference in New Issue
Block a user