Results 1 to 2 of 2

Thread: Switching live streams accurately

  1. Default Switching live streams accurately


    I have 2 live streams, currently two still images streamed by ffmpeg. I have compiled this example and made the small modification to get switches between the 2 live streams every 10 seconds.

    My problem is that even though I am seeing the switches accurately logged every 10 seconds, in my player (using the test players on this site) I am seeing unpredictable switch times. It is sometimes 70s, sometimes 30s, sometimes just a quick blink for 1s, and so on. I assume this is related to the chunking and player buffering, however I would like to get a solution which allows me to switch from one live stream to an other in a precisely timed way.

    Is there any way to fix this approach?

    What does "setStartOnPreviousKeyFrame" mean, the term "previous" refers to what point in time?

    Why is it necessary that this example keeps calling "" in the loop?

    Any help is appreciated, thanks!

  2. #2



    The simpler approach which should work better for you situation is to use play listing , so you put both streams into a playlist and switch between them. You can see how this works here


    The source code is found in the module collection. You will need to add your own switching calls, but you can do this by calling next on the active playlist.


Similar Threads

  1. Problem Switching HLS Streams
    By bighenry in forum Wowza Transcoder
    Replies: 9
    Last Post: 02-28-2014, 10:21 AM
  2. Replies: 3
    Last Post: 02-21-2014, 06:40 AM
  3. Switching an httpSession between streams
    By robw21 in forum General Forum
    Replies: 0
    Last Post: 06-19-2012, 09:41 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