[vlc-devel] [vlc-commits] TS demux: set PCR for all programs

Rafaël Carré funman at videolan.org
Thu Jul 17 11:24:22 CEST 2014


On 07/17/14 02:59, Francois Cartegnie wrote:
>> Unconditionally use the PTS/DTS as PCR, which fixes automatically
>> lack of PCR.
> 
>> +        es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
>> +                pid->i_owner_number, p_block->i_pts);
> 
> You can't do that "as-is". That was the root of many problems on other
> demuxers.
> PCR must be set to the lowest DTS among continuous tracks.
> 
> "as is" will introduce those problems:
> - Audio shutdown with 2Sec jitter
> - Missing track(s) if jitter > buffering and duration < buffering
> - Erroneous progress time
> - Erroneous start time/stop time

What about selecting only one ES? (i.e. the first present)



More information about the vlc-devel mailing list