In trascoding example there are these lines: video_avcc->rc_max_rate = 2 * 1000 * 1000; video_avcc->rc_min_rate = 2.5 * 1000 * 1000; Which are wrong since the max rate is less than the minimal rate.