[Live-devel] TS stream not resumed correctly after paused
choujs
qiujianshu at cnc-labs.com
Thu Jul 24 17:31:25 PDT 2008
> >I try to use media server to stream my TS file, and found that
>>the stream can not be resumed correctly after paused. That is,
>>when resume, the speed of packet transmit become very slow. I
>>have traced into the code, and found the problem may be in the
>>function MPEG2TransportStreamFramer::doStopGettingFrames().
>>In that function, fTSPacketCount is change to 0, but not fTSPCRCount.
>>Then in MPEG2TransportStreamFramer::updateTSPacketDurationEstimate(),
>>when caculate meanPCRPeriod, the value is always less than 1.0, because
>>fTSPacketCount may less than fTSPCRCount at that time.
>>I think this may be a bug, is it?
>
> Yes, quite possibly.
>
> Does adding
> fTSPCRCount = 0;
> to "MPEG2TransportStreamFramer::doStopGettingFrames()" overcome your problem?
> --
>
I have tried and it seems work well now.
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list