# Connection with wowza server automatically stop sending frames

**URL:** <https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176>\
**Category:** Wowza Streaming Engine\
**Created:** [April 8, 2013, 9:57am UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176 "2013-04-08T09:57:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunny\_chandel](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sunny\_chandel](https://community.wowza.com/u/sunny_chandel)\
**Post date:** [April 8, 2013, 9:57am UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/1 "2013-04-08T09:57:43Z")

</div>

Hi

I am using wowza server with ffmpeg to publish my screen video.

Following is the command I am using to publish my screen video to server:

ffmpeg -f dshow -i video=“UScreenCapture” -c:v libx264 -b:v 150k -tune zerolatency -analyzeduration 0 -pix\_fmt yuv420p -profile:v baseline -f flv rtmp://xxx.xxx.xx.xx/live/streamname

Problem: Stream automatically stop after 5-7 minutes i.e Publishing of screen frames to wowza server stops after 5 to 7 minutes by its own. Suddenly my CPU usage for ffmpeg process fall to 0 and my connection with wowza server stop sending frames to server (I checked in netlimiter) and screen video stop receiving on receiver end…and whole process of screen sharing terminates here. Every time it stops after in between of 5 to 7 minutes.

I also wrote on UScreenCapture forums but they told me that there are no time limitations on its uses.

Please suggest a solution.

Thanks

---

<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:** [April 8, 2013, 2:24pm UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/2 "2013-04-08T14:24:32Z")

</div>

We recommend using mpeg-ts output with FFmpeg. Take a look at this guide:

[https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)

Then follow this guide to configure Wowza and re-stream the FFmpeg source:

[https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)

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 13, 2013, 12:15pm UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/3 "2013-05-13T12:15:04Z")

</div>

The easiest way is to start the stream in StreamManager or /conf/StartUpStreams.xml with MediaCaster type “rtp-record”

Or you can use HTTPLiveStreamRecord if you want to segmented recording and other options:

[https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord)

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 16, 2013, 11:29am UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/4 "2013-05-16T11:29:34Z")

</div>

You will make a .stream file for each incoming stream. mpegts1.stream, mpegts2.stream. More descriptive names, of course, as long as they each have a .stream extension. Then start each with MediaCaster type “rtp-record”, or use HTTPLiveStreamRecord

Richard

---

<div class="post-metadata">

**Author:** ![sunny\_chandel](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sunny\_chandel](https://community.wowza.com/u/sunny_chandel)\
**Post date:** [April 9, 2013, 12:44pm UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/5 "2013-04-09T12:44:05Z")

</div>

> We recommend using mpeg-ts output with FFmpeg. Take a look at this guide:
> 
> [Use FFmpeg to live stream with Wowza Streaming Engine](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)
> 
> Then follow this guide to configure Wowza and re-stream the FFmpeg source:
> 
> [Publish a live stream from an MPEG-TS encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)
> 
> Richard

Thanks Richard

I studied both the links you provided and make settings on server as written on page.On receiver end I am getting the following message:

Failed to play mpegts.stream; stream not found.

---

<div class="post-metadata">

**Author:** ![sunny\_chandel](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sunny\_chandel](https://community.wowza.com/u/sunny_chandel)\
**Post date:** [May 13, 2013, 4:09pm UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/6 "2013-05-13T16:09:25Z")

</div>

Thanks Richard

I start using mpeg-ts output and it solves my problem.

Can you tell me how can I record this stream because recording is very critical part of this application. I searched on internet about how to record mpeg-ts stream but could not find the solution.Please provide a solution.

Thanks

---

<div class="post-metadata">

**Author:** ![sunny\_chandel](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sunny\_chandel](https://community.wowza.com/u/sunny_chandel)\
**Post date:** [May 14, 2013, 7:03pm UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/7 "2013-05-14T19:03:58Z")

</div>

Hi Richard

I am using ffmpeg to publish my screen video. I have studied following link provided by you that tells how to output mpeg-ts stream:

[https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)

Now Richard Can you tell me how can I specify the stream name in following command so that the output files created in content folder can be recognized with different names:

ffmpeg -f dshow -i video=“UScreenCapture” -c:v libx264 -b:v 150k -analyzeduration 0 -pix\_fmt yuv420p -profile:v baseline -f mpegts udp://xxx.xxx.xx.xxx?pkt\_size=1316

Current every file is saving with name mpegts.stream.flv.(version number is added after underscore). I have changed MediaCaster type to “rtp-record” and streamName to “mpegts.stream” in StartUpStreams.xml

If I use HTTPLiveStreamRecord, It also require a stream name.

Different users will publish their video and I have also to keep the recordings of their videos. How can I distinguish their recordings if I will not have different names for recorded videos.

Thanks

---

<div class="post-metadata">

**Author:** ![sunny\_chandel](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sunny\_chandel](https://community.wowza.com/u/sunny_chandel)\
**Post date:** [May 16, 2013, 11:04am UTC](https://community.wowza.com/t/connection-with-wowza-server-automatically-stop-sending-frames/40176/8 "2013-05-16T11:04:25Z")

</div>

AnyOne??

I am new to streaming concept so that a lot to learn yet…Please help.

Thanks
