diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-18 01:00:43 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-18 01:00:43 +0000 |
commit | cc65feabd19a9a874a8529d358aa46f6bd9c2ec6 (patch) | |
tree | b4d1669755a3df958f5cd2507f52a1c6a765e27a | |
parent | a5b36d4b47214e16856fb9c637626f9ac20cf8b2 (diff) |
libavcodec bitrate is in kbit now ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5171 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mencoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mencoder.c b/mencoder.c index 688b08d143..1b0ce476f8 100644 --- a/mencoder.c +++ b/mencoder.c @@ -74,7 +74,7 @@ static AVPicture lavc_venc_picture; /* video options */ char *lavc_param_vcodec = NULL; int lavc_param_vbitrate = -1; -int lavc_param_vrate_tolerance = 1024*1024*8; +int lavc_param_vrate_tolerance = 1024*8; int lavc_param_vhq = 0; /* default is realtime encoding */ int lavc_param_vme = 3; int lavc_param_vqscale = 0; @@ -1089,10 +1089,10 @@ case VCODEC_LIBAVCODEC: lavc_venc_context.width = vo_w; lavc_venc_context.height = vo_h; if (lavc_param_vbitrate >= 0) /* != -1 */ - lavc_venc_context.bit_rate = lavc_param_vbitrate; + lavc_venc_context.bit_rate = lavc_param_vbitrate*1000; else lavc_venc_context.bit_rate = 800000; /* default */ - lavc_venc_context.bit_rate_tolerance= lavc_param_vrate_tolerance; + lavc_venc_context.bit_rate_tolerance= lavc_param_vrate_tolerance*1000; lavc_venc_context.frame_rate = (float)(force_ofps?force_ofps:sh_video->fps) * FRAME_RATE_BASE; lavc_venc_context.qmin= lavc_param_vqmin; lavc_venc_context.qmax= lavc_param_vqmax; |