HI I want to use ffmpeg cbr to control the bit rate,but it doesn't work,I use the X264 to encode the video. Could someone give the parameter that works well? thank you very much! my code: int br = 40*1000; pCodecCtxEncodeVideo->bit_rate = br; pCodecCtxEncodeVideo->rc_min_rate =br; pCodecCtxEncodeVideo->rc_max_rate = br; pCodecCtxEncodeVideo->bit_rate_tolerance = br; pCodecCtxEncodeVideo->rc_buffer_size=br; pCodecCtxEncodeVideo->rc_initial_buffer_occupancy = pCodecCtxEncodeVideo->rc_buffer_size*3/4; pCodecCtxEncodeVideo->rc_buffer_aggressivity= (float)1.0; pCodecCtxEncodeVideo->rc_initial_cplx= 0.5;
the bit rate is related to the qmax,not the bit_rate. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
