# Stream stops unexpectedly after 1-2 mins

**URL:** https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154
**Category:** Wowza Streaming Engine
**Created:** [May 13, 2013, 7:52am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154 "2013-05-13T07:52:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Hussan\_Choudhry](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@Hussan\_Choudhry](https://community.wowza.com/u/Hussan_Choudhry)
#### Post date: [May 13, 2013, 7:52am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/1 "2013-05-13T07:52:52Z")

</div>

Hi,

We are using ffmpeg to encode our rtmp to many different bit rate streams, it all works perfectly however after 1-2 minutes I get the following error message and the stream stops. Does anyone know how I can fix this?

INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[sd\_outgoing/_def inst_/projectnutrition\_90p]: Destroy live stream packetizer: cupertinostreamingp acketizer

INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[sd\_outgoing/_def inst_/projectnutrition\_480p]: Destroy live stream packetizer: cupertinostreaming packetizer

INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[sd\_outgoing/_def inst_/projectnutrition\_180p]: Destroy live stream packetizer: cupertinostreaming packetizer

INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[sd\_outgoing/_def inst_/projectnutrition\_360p]: Destroy live stream packetizer: cupertinostreaming packetizer

INFO session comment 1748466651 client connectionClosed [1748466651] pingtimeout

---

<div class="post-metadata">

### Author: ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)
#### Post date: [May 13, 2013, 8:26am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/2 "2013-05-13T08:26:25Z")

</div>

It sounds like you are having network problems based on the pingtimout statement. What is your encoder configuration? Do you have enough upload bandwidth available to accomodate the published streams? Are you using wireless or any type of cellular carrier network infrastructure? How does the workflow perform when you send a single stream?

-Tim

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [May 14, 2013, 4:27pm UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/3 "2013-05-14T16:27:45Z")

</div>

Hi,

Check the CPU usage while the issue is occurring to see if it’s CPU issue.

You can lower the bitrates of each stream and if that doesn’t work reduce the amount of transcodes FFmpeg is doing.

Jason

---

<div class="post-metadata">

### Author: ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)
#### Post date: [May 14, 2013, 6:34am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/4 "2013-05-14T06:34:51Z")

</div>

Hi,

You seem to have answered your own question here. If you do not use ffmpeg it works fine, if you do it doesnt. It suggests that either CPU or network is an issue and by using FFMPEG it is driving one or both to the point where your PC can not stay connected.

Andrew.

---

<div class="post-metadata">

### Author: ![Hussan\_Choudhry](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@Hussan\_Choudhry](https://community.wowza.com/u/Hussan_Choudhry)
#### Post date: [May 14, 2013, 6:05am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/5 "2013-05-14T06:05:26Z")

</div>

Hi, I’m not sure it is a network based error because if I stream without encoding via ffmpeg it keeps running perfectly. Even when I run a simple ffmpeg command to transcode the video to h.264 I get the same error. I am basically capturing and broadcasting my webcam to wowza, ffmpeg transcodes this and servers it back to wowza. I have increased the java heap size and I still get the same problem, can you please advice how to proceed!

---

<div class="post-metadata">

### Author: ![Hussan\_Choudhry](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@Hussan\_Choudhry](https://community.wowza.com/u/Hussan_Choudhry)
#### Post date: [May 14, 2013, 7:34am UTC](https://community.wowza.com/t/stream-stops-unexpectedly-after-1-2-mins/39154/6 "2013-05-14T07:34:48Z")

</div>

Oh ok, is there anything you would recommend looking at to fix this?
