[FFmpeg-soc] [soc]: r553 - in dvbmuxer/muxer_dev: Makefile dvbmuxer.diff mpeg_pes.h mpeg_pes_enc.c mpegtsenc.c

Baptiste Coudurier baptiste.coudurier at smartjog.com
Tue Jul 31 10:50:47 CEST 2007


Hi Xiohui.

realsun wrote:
> Baptiste Coudurier wrote:
>> Hi Xiaohui,
>>
>> realsun wrote:
>>   
>>> Author: realsun
>>> Date: Mon Jul 30 14:50:30 2007
>>> New Revision: 553
>>>
>>> Log:
>>> modified pcr calculation.
>>> generated ts stream still could not played well under vlc.
>>>     
> [...]
>>   
>>> [...]
>>> -        int codec_rate;
>>>          st = s->streams[i];
>>>          ts_st = (MpegTSWriteStream*) st->priv_data;
>>> -
>>> -        if(st->codec->rc_max_rate || ts_st->id==VIDEO_ID)
>>> -            codec_rate= st->codec->rc_max_rate;
>>> -        else
>>> -            codec_rate= st->codec->bit_rate;
>>> -        bitrate += codec_rate;
>>> +        bitrate += st->codec->bit_rate;
>>>     
>> Why aren't you using rc_max_rate ?
>>   
> 
> I have traced the value, when it is VIDEO, the rc_max_rate is 0.
> 

Use -maxrate.

[...]

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312



More information about the FFmpeg-soc mailing list