[x264-devel] [PATCH] MPEG2 Program Stream output

Kieran Kunhya kieran at kunhya.com
Mon Jan 24 13:15:04 CET 2011


> To test this should be only necessary to replace DTS and
> PTS generation with:
> (unsigned long long
> int)(p_picture->hrd_timing.cpb_removal_time * 90000) and
> (unsigned long long
> int)(p_picture->hrd_timing.dpb_output_time * 90000)
> because the values are stored as double and in seconds.
> 

Yes, it's not 100% perfect but the right numbers will be output if you round to the nearest integer. This is acceptable within the TS spec. 

If you want to do compliant T-STD for example you should let the STB or analyzer buffer correctly. 



More information about the x264-devel mailing list