comparison mencoder.c @ 3693:470d75f1e087

lavc quality fixed - using right fps
author arpi
date Mon, 24 Dec 2001 02:11:49 +0000
parents ed9404084ca7
children e16996f5497d
comparison
equal deleted inserted replaced
3692:ccce20ca68e7 3693:470d75f1e087
840 lavc_venc_context.height = vo_h; 840 lavc_venc_context.height = vo_h;
841 if (lavc_param_vbitrate >= 0) /* != -1 */ 841 if (lavc_param_vbitrate >= 0) /* != -1 */
842 lavc_venc_context.bit_rate = lavc_param_vbitrate; 842 lavc_venc_context.bit_rate = lavc_param_vbitrate;
843 else 843 else
844 lavc_venc_context.bit_rate = 800000; /* default */ 844 lavc_venc_context.bit_rate = 800000; /* default */
845 lavc_venc_context.frame_rate = mux_v->h.dwRate * FRAME_RATE_BASE; 845 lavc_venc_context.frame_rate = sh_video->fps * FRAME_RATE_BASE;
846 /* keyframe interval */ 846 /* keyframe interval */
847 if (lavc_param_keyint >= 0) /* != -1 */ 847 if (lavc_param_keyint >= 0) /* != -1 */
848 lavc_venc_context.gop_size = lavc_param_keyint; 848 lavc_venc_context.gop_size = lavc_param_keyint;
849 else 849 else
850 lavc_venc_context.gop_size = 250; /* default */ 850 lavc_venc_context.gop_size = 250; /* default */
851 851
852 /* ignored by libavcodec? */ 852 /* ignored by libavcodec? */
853 if (lavc_param_vhq) 853 if (lavc_param_vhq)
854 { 854 {
855 printf("High quality encoding selected (non real time)!\n"); 855 printf("High quality encoding selected (non real time)!\n");
856 lavc_venc_context.flags = CODEC_FLAG_HQ; 856 lavc_venc_context.flags = CODEC_FLAG_HQ;