Results 1 to 8 of 8

Thread: Connection with wowza server automatically stop sending frames

  1. #1
    Join Date
    Apr 2013
    Posts
    13

    Default 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

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    We recommend using mpeg-ts output with FFmpeg. Take a look at this guide:
    http://www.wowza.com/forums/content....rver-(MPEG-TS)

    Then follow this guide to configure Wowza and re-stream the FFmpeg source:
    http://www.wowza.com/forums/content....based-encoder)

    Richard

  3. #3
    Join Date
    Apr 2013
    Posts
    13

    Default Stream not found on receiver end

    Quote Originally Posted by rrlanham View Post
    We recommend using mpeg-ts output with FFmpeg. Take a look at this guide:
    http://www.wowza.com/forums/content....rver-(MPEG-TS)

    Then follow this guide to configure Wowza and re-stream the FFmpeg source:
    http://www.wowza.com/forums/content....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.

  4. #4
    Join Date
    Apr 2013
    Posts
    13

    Default

    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

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    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:
    http://www.wowza.com/forums/content....eStreamRecord)

    Richard

  6. #6
    Join Date
    Apr 2013
    Posts
    13

    Default

    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:
    http://www.wowza.com/forums/content....rver-(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
    Last edited by sunnychandel; 05-16-2013 at 12:20 AM.

  7. #7
    Join Date
    Apr 2013
    Posts
    13

    Default

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

    Thanks

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    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

Similar Threads

  1. automatically start and stop receiving source by wowza
    By vcogha in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 10-13-2014, 05:07 AM
  2. Start and Stop streams automatically
    By alpexdigital in forum Wowza Streaming Server Java API
    Replies: 4
    Last Post: 05-14-2014, 03:19 AM
  3. How to stop sending conecctions from origin to edges
    By mdiaz00147 in forum General Forum
    Replies: 2
    Last Post: 11-15-2013, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •