summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 01:01:35 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 01:01:35 +0000
commitdee3c8d0f0ff6897a3d604e46bb7b22ae3ea2ae3 (patch)
treea9307cba4388ca28ebe10eb1524768f8eb52f3c4 /mencoder.c
parentf33ad03eba1133c31eecf2f7d40aea8fcb9e2b5c (diff)
downloadmpv-dee3c8d0f0ff6897a3d604e46bb7b22ae3ea2ae3.tar.bz2
mpv-dee3c8d0f0ff6897a3d604e46bb7b22ae3ea2ae3.tar.xz
2-pass lavc encoding fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5387 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mencoder.c b/mencoder.c
index 93ef4602f8..ace0745eb0 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -1219,7 +1219,7 @@ case VCODEC_LIBAVCODEC:
switch(pass){
case 1:
- if (VbrControl_init_2pass_vbr_analysis(passtmpfile, lavc_param_vme) == -1)
+ if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1)
{
printf("2pass failed: filename=%s\n", passtmpfile);
pass_working = 0;
@@ -1230,15 +1230,17 @@ case VCODEC_LIBAVCODEC:
case 2:
if (VbrControl_init_2pass_vbr_encoding(passtmpfile,
lavc_venc_context.bit_rate,
- lavc_venc_context.frame_rate,
+ force_ofps?force_ofps:sh_video->fps,
100, /* crispness */
- lavc_param_vme) == -1)
+ 5) == -1)
{
printf("2pass failed: filename=%s\n", passtmpfile);
pass_working = 0;
}
- else
+ else {
pass_working = 1;
+ lavc_venc_context.flags |= CODEC_FLAG_QSCALE;
+ }
break;
}