Hi Guys,
I am having a weird problem about a stream that we are transcoding and recording usin transcoder and dvr addon. After a few days (4 days) of streaming and recording, we start receiving this message in the wowza logs
2013-10-01 14:23:52 CEST comment server WARN 200 - CupertinoPacketHandler.resetStream[SVorigin/_definst_/327][11:6]: Time
codes jumped back in time. - - - 518694.008 - - - - - - - - - -
- - - - - - - - - - - - - - -
2013-10-01 14:23:52 CEST comment server WARN 200 - CupertinoPacketHandler.resetStream[SVorigin/_definst_/327_720p][11:0]:
Timecodes jumped back in time. - - - 518694.046 - - - - - - - - - -
- - - - - - - - - - - - - - -
2013-10-01 14:23:52 CEST comment server WARN 200 - CupertinoPacketHandler.resetStream[SVorigin/_definst_/327_360p][11:0]:
Timecodes jumped back in time. - - - 518694.046 - - - - - - - - - -
- - - - - - - - - - - - - - -
2013-10-01 14:23:59 CEST comment server WARN 200 - DvrPacketHandler.resetStream[][0:11]: Timecodes jumped back in time.
- - - 518701.058 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:23:59 CEST comment server WARN 200 - DvrPacketHandler.handlePacket[SVorigin/_definst_/327]: Tossing packet with excessive duration: {DvrAMFPacket: size:577, type:8, src:53, seq:5574205, absTimecode: 95443718, timecode:6455530, utcTc:1380630229824} -
- - 518701.067 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.handlePacket[]: Timecode out of order [video]: 69319082:88990229 - - - 518703.822 - - - - - - - - - - - -
- - - - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.handlePacket[]: Timecode out of order [video]: 69319082:88990229 - - - 518703.822 - - - - - - - - - - - -
- - - - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.resetStream[][0:11]: Timecodes jumped back in time.
- - - 518703.823 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.resetStream[][0:11]: Timecodes jumped back in time.
- - - 518703.823 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - LiveStreamDvrRecorder.endChunk[SVorigin/_definst_/327_360p/327-564334_360p]: Recalculating video duration by estimating. Was -19667107. Is now 3080. - - - 518703.827 - - - -
- - - - - - - - - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - LiveStreamDvrRecorder.endChunk[SVorigin/_definst_/327_720p/327-564334_720p]: Recalculating video duration by estimating. Was -19667107. Is now 3080. - - - 518703.83 - - - -
- - - - - - - - - - - - - - - - - -
- - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.handlePacket[SVorigin/_definst_/327_360p]: Tossing packet with excessive duration: {DvrAMFPacket: size:259, type:8, src:54, seq:6007694, absTimecode: 95443722, timecode:6455528, utcTc:1380630232590} -
- - 518703.85 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:02 CEST comment server WARN 200 - DvrPacketHandler.handlePacket[SVorigin/_definst_/327_720p]: Tossing packet with excessive duration: {DvrAMFPacket: size:259, type:8, src:55, seq:6007692, absTimecode: 95443722, timecode:6455528, utcTc:1380630232591} -
- - 518703.853 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Received new PMT - - -
518705.693 - - - - - - - - - - - - - - - -
- - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: PMT: Version 26 PCR pid: 0x65 -
- - 518705.694 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x02 PID: 0x65 Video
- - - 518705.694 - - - - - - - - - - - - - - - - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x06 PID: 0x66 -
- - 518705.695 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x03 PID: 0x67 Audio
- - - 518705.695 - - - - - - - - - - - - - - - - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x03 PID: 0x68 Audio
- - - 518705.695 - - - - - - - - - - - - - - - - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x03 PID: 0x69 Audio
- - - 518705.696 - - - - - - - - - - - - - - - - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x06 PID: 0x6f -
- - 518705.696 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x05 PID: 0x73 -
- - 518705.697 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:04 CEST comment server INFO 200 - [SVorigin/_definst_/327]: Stream: Type: 0x86 PID: 0x1fae -
- - 518705.697 - - - - - - - - - - - - - -
- - - - - - - - - - -
2013-10-01 14:24:09 CEST comment server WARN 200 - LiveStreamDvrRecorder.endChunk[SVorigin/_definst_/327/327-564334]: Recalculating audio duration by estimating. Was -19663405. Is now 72. - - - 518711.116 - - - - -
- - - - - - - - - - - - - - - - - -
- -
2013-10-01 14:24:11 CEST comment server INFO 200 - DvrStreamStoreBase.storeChunks[SVorigin/_definst_/327-564334/327-564334.0] : Resetting dvr time from dvr:0/pt:87488284 to dvr:1499976/pt:69324783/utc:1380630249891 - - - 518713.13 - -
- - - - - - - - - - - - - - - - - -
- - - - -
2013-10-01 14:24:25 CEST comment server WARN 200 - LiveStreamDvrRecorder.endChunk[SVorigin/_definst_/327_360p/327-564334_360p]: Recalculating audio duration by estimating. Was -19648103. Is now -26113573. - - - 518727.194 - - -
- - - - - - - - - - - - - - - - - -
- - - -
2013-10-01 14:24:25 CEST comment server WARN 200 - DvrStreamStoreBase.storeChunks[SVorigin/_definst_/327-564334_360p/327-564334_360p.0] : AudioDuration=-26113573 is not positive. Skipping chunks. - - - 518727.194 - - - -
- - - - - - - - - - - - - - - - - -
- - -
2013-10-01 14:24:25 CEST comment server WARN 200 - LiveStreamDvrRecorder.endChunk[SVorigin/_definst_/327_720p/327-564334_720p]: Recalculating audio duration by estimating. Was -19648103. Is now -26113573. - - - 518727.194 - - -
- - - - - - - - - - - - - - - - - -
- - - -
2013-10-01 14:24:25 CEST comment server WARN 200 - DvrStreamStoreBase.storeChunks[SVorigin/_definst_/327-564334_360p/327-564334_360p.0] : Skipping chunk. A/V packet times differ by 19668091 ms, more than allowed 2000 ms. aTime=88988173 vTime=69320082 - -
- 518727.194 - - - - - - - - - - - - - - -
- - - - - - - - - -
This could be a problem of the streams not being align since we are streaming this to wowza (transcoder > nDVR) directly from DVB-T. I can see in the logs that wowza tried to restart the stream but it couldn’t recover. My questions are:
-
Isn’t wowza transcoder addon supposed to produce perfectly aligned audio and video even if the source is not aligned?
-
Why can’t wowza recover as soon as the streams became aligned again? Note: I am just guessing that the source streams became aligned again since as soon as I restart Wowza the streaming goes back to normal.
We have already tried setting the DVR properties to something like this:
<Property>
<Name>dvrPacketSortTime</Name>
<Value>10000</Value>
<Type>Integer</Type>
</Property>
An increase the recive buffer size like this
<RTP>
<IdleFrequency>75</IdleFrequency>
<DatagramConfiguration>
<Incoming>
<ReuseAddress>true</ReuseAddress>
<ReceiveBufferSize>2048000</ReceiveBufferSize>
<SendBufferSize>65000</SendBufferSize>
<!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
<!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
<!-- <TrafficClass>0</TrafficClass> -->
<MulticastTimeout>50</MulticastTimeout>
<DatagramMaximumPacketSize>8192</DatagramMaximumPacketSize>
</Incoming>
But to no avail.
Can you guys suggest any other settings we migh try? How can we make wowza recover from sudden unaligned streams?