Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mpeg2] Re: Only _one_ TS recording possible
Hi,
There seems to be a problem with the calculation of
the Bitrate for Transport Stream.
Setting the TransportRate to
P->TransportRate = vidrate+RateArray[kfir->Params.AudioBitRate] * 1000;
does not seem to be correct and leads to incorrect ts pcr
fields. The windows driver does not have a fixed relation
between BitRate and TransportRate. With the following change,
the problem went away. Not sure, if this change solves your
problem.
/*
* Rate of Transport Stream
* if choosen too low, ts pcr fields are wrong
* is there any formula for minimal transport stream rate?
* a factor of 1.15 seems to work for
* bitrates at least between 0.8 to 4.5 MBit/s
*/
P->TransportRate = ((P->BitRate+RateArray[P->AudioBitRate] * 1000) * 115) / 100 + 80000;
Juergen Weiss
--
Juergen Weiss | Universitaet Mainz, Zentrum fuer Datenverarbeitung,
weiss@uni-mainz.de| 55099 Mainz, Tel: +49(6131)39-26361, FAX: +49(6131)39-26407
Home |
Main Index |
Thread Index