<font color="#333333" face="arial"><span style="line-height: 21.984375px;">Hey guys,</span></font><div><font color="#333333" face="arial"><span style="line-height: 21.984375px;">    I'm transcoding with ffmpeg API .  but the video frame rate of  the target file is far from accuracy .</span></font></div><div><font face="arial"><span style="line-height: 21.984375px;"><font color="#333333">such as I wanna to get a target file with h263 encode type and </font><font color="#ff0000">22kbps</font><font color="#333333">  video frame rate, but I get a  result file with  video bitrate  </font><font color="#ff0000">26</font></span></font><span style="font-family: Calibri, sans-serif; font-size: 10.5pt; line-height: 1.2;"><font color="#ff0000">k</font></span><span style="color: red; font-family: Calibri, sans-serif; font-size: 10.5pt; line-height: 1.2;">bps, </span><span style="font-family: Calibri, sans-serif; font-size: 10.5pt; line-height: 1.2;">h263 encode type , which is far from accuracy .</span><span style="font-size: 10.5pt; line-height: 1.2; font-family: Calibri, sans-serif;"> </span></div><div><span style="font-size: 10.5pt; line-height: 1.2; font-family: Calibri, sans-serif;"> I   test it  </span><span style="line-height: 1.2; font-family: Calibri, sans-serif;">using ffmpeg.exe official release</span><span style="line-height: 1.2; font-family: Calibri, sans-serif;">  </span><span style="font-size: 10.5pt; line-height: 1.2; font-family: Calibri, sans-serif;">with the same source file and  the same paremeter for  target file, but   get the same result.   </span></div><div><font face="Calibri, sans-serif">why I cann't get the set video bitrate  under CBR mode? Is there any body know this ?</font></div><div><br></div><div><font color="#333333" face="arial"><span style="line-height: 21.984375px;">here are concrete information:   </span></font></div><div><span style="font-family: arial; line-height: 17.984375px;">my source file parameter is :</span></div><div><span style="font-family: arial; line-height: 17.984375px;">video: encode type : wmv3   </span><font face="arial" style="line-height: 1.2;"><span style="line-height: 21.984375px;"> </span></font><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">resolution ratio: 176*144</span><span style="font-family: arial; line-height: 17.984375px;">     </span><span style="font-family: arial; line-height: 17.984375px;">bitrate:<font color="#ff0000"> 2000kbps</font>    framte rate:25fps</span></div><div><font face="arial"><span style="line-height: 17.984375px;">audio: encode type: wmav2   bitrate: 128kbps         sample rate:  48k Hz      channels: 2       </span></font></div><div><span style="font-family: arial; line-height: 17.984375px;"><br></span></div><div><font color="#333333" face="arial"><span style="line-height: 21.984375px;">my target file parameter is :  </span></font></div><div><font color="#333333" face="arial"><span style="line-height: 21.984375px;">video: </span></font><font face="arial" style="line-height: 1.2;"><span style="line-height: 21.984375px;"><font color="#333333"> encode type</font>: h263      </span></font><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">resolution ratio: 176*144,      bitrate:<font color="#ff0000"> 22kbps</font>,    frame rate: 5fps</span></div><div><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">audio:  encode type:amr-nb    bitrate 6kbps, Mono,            sample rate 8kHz   channels: 1</span></div><div><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;"><br></span></div><div><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">I use ffmpeg.exe to transcode as follows:</span></div><div><font face="arial"><span style="line-height: 17.984375px;">ffmpeg.exe -i cq-SD.wmv  -vcodec h263 -r 5 -b:v 22k -ar 8000 -s 176*144 -acodec libopencore_amrnb -ac 1 -b:a 8k 44.3gp</span></font></div><div><font face="arial"><span style="line-height: 17.984375px;"><br></span></font></div><div><font face="arial"><span style="line-height: 17.984375px;">and also I use ffmpeg API to transcode with the encode parameter set as follows:</span></font></div><div><font face="arial"><div style="line-height: 17.984375px;"><span class="Apple-tab-span" style="white-space:pre">  </span>AVCodecContext * c = st->codec;</div><div style="line-height: 17.984375px;">       br = 22000;</div><div style="line-height: 17.984375px;"><span class="Apple-tab-span" style="white-space:pre">      </span>c->codec_id = codec_id;</div><div><span style="line-height: 17.984375px;"> <span class="Apple-tab-span" style="white-space:pre">     </span>c->width = 176;</span></div><div><span style="line-height: 17.984375px;">        </span><span style="line-height: 17.984375px;">c->height = 144;</span></div><div><span style="line-height: 17.984375px;"><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="line-height: 17.984375px;"> c->bit_rate = 22000;</span></div><div><span style="line-height: 17.984375px;">        c->rc_min_rate = br;</span></div><div><span style="line-height: 17.984375px;">        c->rc_max_rate = br;</span></div><div><span style="line-height: 17.984375px;"><span class="Apple-tab-span" style="white-space:pre">        </span>c->time_base.den = 5;</span></div><div><span style="line-height: 17.984375px;">        c->time_base.num = 1;</span></div><div><span style="line-height: 17.984375px;">       </span></div></font><div>but the result file I get is like this:</div></div><div><div><font color="#333333" face="arial"><span style="line-height: 21.984375px;">video: </span></font><font face="arial" style="line-height: 1.2;"><span style="line-height: 21.984375px;"><font color="#333333"> encode type</font>: h263      </span></font><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">resolution ratio: 176*144,      bitrate:<font color="#ff0000"> 26kbps</font>,    frame rate: 5fps</span></div><div><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;">audio:  encode type:amr-nb    bitrate 6kbps, Mono,            sample rate 8kHz   channels: 1</span></div></div><div> </div><div>Any advice will be appreciated!</div><div>Thanks!</div><div><span style="font-size: 14.166666030883789px; font-family: arial; line-height: 17.99479103088379px;"><br></span></div><br><br><br>