# RTP live stream debugging

**URL:** <https://community.wowza.com/t/rtp-live-stream-debugging/38579>\
**Category:** Wowza Streaming Engine\
**Created:** [May 18, 2012, 4:23am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579 "2012-05-18T04:23:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hatcher](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Paul\_Hatcher](https://community.wowza.com/u/Paul_Hatcher)\
**Post date:** [May 18, 2012, 4:23am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/1 "2012-05-18T04:23:44Z")

</div>

Hello,

I’m having a lot of problems trying to do debug something that should be very simple.

I have two RTP sources that I am streaming into Wowza as “live” inputs. I have the sdp descriptions for both in my content directory and as far as I can tell both incomming RTP streams are near identical. I’ve followed the simple tutorial here [https://www.wowza.com/docs/how-to-set-up-live-streaming-using-a-native-rtp-encoder-with-sdp-file](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-a-native-rtp-encoder-with-sdp-file).

Problem I have is that one stream works and one stream doesn’t. I can’t figure out what the difference is between the two. It’s starting to drive me crazy!

I don’t even have the streams running at the same time. Application A works, and application B doesn’t but to me the outputs are near identical. I’ve done packet tracing with Wireshark and used the RTP analyser.

So, in Wowza I have enabled debug logging. With the stream that works, I can see Wowza start to read the RTP packets off the network ok, like this ( a snap at the start)

2012-05-18 12:28:39 BST comment server DEBUG 200 - rtcp[trackID=1:60] {80 c8 00 06 cd f6 09 a7 83 aa b6 24 06 e9 78 d4 } - - - 190.778 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-05-18 12:28:39 BST comment server DEBUG 200 - RTCPPACKETTYPE\_SR[trackID=1]: base:2209003044027 rtp:129155 - - - 190.779 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-05-18 12:28:39 BST comment server DEBUG 200 - RTCPPACKETTYPE\_SDES: 1 - - - 190.779 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-05-18 12:28:39 BST comment server DEBUG 200 - RTCPPACKETTYPE\_SDES: val: [CNAME=pricklefish.my.tv](http://CNAME=pricklefish.my.tv) - - - 190.779 - - - - - - - - - - - - - - - - - - - - - - - - -

When I have the stream that doesn’t work as input all I see in the debug log is the RTP input timing out and continually resetting. In any other circumstance I’d say the ports were incorrect. But I’ve checked and double checked and the ports are correct. The log times out on the input like this.

2012-05-18 12:28:37 BST comment server INFO 200 - RTPMediaCaster.streamTimeout[5569009:PBSLive/_definst_:myStream4.sdp]: timeout:12000 diff:12005 reason:101 - - - 189.214 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-05-18 12:28:37 BST comment server INFO 200 - RTPMediaCaster.resetConnection[5569009:PBSLive/_definst_:myStream4.sdp]: - - - 189.214 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-05-18 12:28:37 BST comment server INFO 200 - RTPMediaCaster.closeRTPSession[5569009:PBSLive/_definst_:myStream4.sdp] - - - 189.215 - - - - - - - - - - - - - - - - - - - - - - - - -

So is there any way I can get more detailed logging on the RTP input, at the socket level even, so I can at least check that data is going into Wowza.

Regards,

bobster

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [May 18, 2012, 3:45am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/2 "2012-05-18T03:45:27Z")

</div>

Are you able to play the non-working stream with VLC? If not then it probably won’t work with Wowza. You have to figure out a working stream URI.

If you have a valid .sdp file you should be able to open it in the VLC GUI.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 18, 2012, 2:35pm UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/3 "2012-05-18T14:35:39Z")

</div>

You can get better info, or at least easier to read info by reverting to INFO debug level, then adding this property to the Application.xml /MediaCaster Properties list:

```auto
<Property>
 <Name>debugRTSPSession</Name>
 <Value>true</Value>
 <Type>Boolean</Type>
</Property>

```

Are you using StreamManager? If so, with sdp announce you do not use StreamManager.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 20, 2012, 11:42pm UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/4 "2012-05-20T23:42:58Z")

</div>

It is one or the other. If the encoder supports sdp announce you should not be using StreamManager. You should see a publish event in Wowza when you start the encoder and publish the stream.

Richard

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [May 18, 2012, 4:31am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/5 "2012-05-18T04:31:40Z")

</div>

Tools: vlc, ffmpeg with debug options, a packet sniffer. Does the source stream play in any way?

---

<div class="post-metadata">

**Author:** ![Paul\_Hatcher](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Paul\_Hatcher](https://community.wowza.com/u/Paul_Hatcher)\
**Post date:** [May 18, 2012, 6:25am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/6 "2012-05-18T06:25:16Z")

</div>

> Are you able to play the non-working stream with VLC? If not then it probably won’t work with Wowza. You have to figure out a working stream URI.
> 
> If you have a valid .sdp file you should be able to open it in the VLC GUI.

Thanks for the reply. Yes I’ve tried this by opening the sdp file (The SDP announcements don’t seem to get picked up in VLC) and the working stream is ok, the non working stream is not ok. So maybe this points to a source streaming/framing problem.

Are there any tools to available to give me any hints as to what might be wrong?

Bobster

---

<div class="post-metadata">

**Author:** ![Paul\_Hatcher](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Paul\_Hatcher](https://community.wowza.com/u/Paul_Hatcher)\
**Post date:** [May 19, 2012, 12:21am UTC](https://community.wowza.com/t/rtp-live-stream-debugging/38579/7 "2012-05-19T00:21:59Z")

</div>

Richard,

Yes I am using stream manager. I have to start the live streeams manually. I’m using the technique in the simple tutorial link above.

I started another thread about not using the stream manager and just picking up the SDP announce here.

> [@Live streaming and SAP/SDP announcements](http://community.wowza.com/t/-/38574):
>
> Hello, Forgive me if this has been covered before but I can’t get it to work. I have a live H264 RTP stream of audio and video that I am generating from my application. Together with this stream I am also making SAP/SDP announcements on 224.2.127.254:9875. I have managed to set up a live stream in Wowza to play out my RTP stream. But in order to do this I had to save the SDP information into a file in [install-dir]/content/myStream.sdp. Then I had to go to the stream manager and click on [sta…

But at the moment this is not my major problem.

Bobster
