Wowza Community

Connection with wowza server automatically stop sending frames

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

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

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

Richard

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

Richard

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

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

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

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.

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

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

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

AnyOne??

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

Thanks