Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Record multiples streams

  1. #1
    Join Date
    Jun 2011
    Posts
    6

    Default Record multiples streams

    Hi i have an application that broadcast multiples streams to an audience: For example when i want my audience watch a chosen stream i just select it in my administration and it appears to them. What i want to do is to record the streams in just one file in my server, now it records in separated files:

    stream1.flv
    stream2.flv
    stream3.flv
    stream4.flv

    My question is: Is there a way to get what is showing in the audience and record it in just one final file?

  2. #2
    Join Date
    Dec 2007
    Posts
    25,682

    Default

    How are you switching?

    One way would be to wrap the live streams in a Stream class stream and use that for switching. Then record the wrapper stream with LivestreamRecord API.

    This example shows switching from vod to live, but you can use multiple live streams instead:

    http://www.wowzamedia.com/forums/sho...tures/page2#13

    LiveStreamRecord package is here:
    http://www.wowzamedia.com/forums/con...ream-on-demand

    Richard

  3. #3
    Join Date
    Jun 2011
    Posts
    6

    Default

    Thanks for answering!

    It works like this: i have an administration (what we call Director) which receives live signals for 1 to 3 users, each of then has a different stream. We also have one audience user that sees the final result of the broadcasting.
    When the director select one of the 3 users that are broadcasting we change the address in the audience player to the selected user address, for example:

    user 1: rtmp://wowza.mycompany.com.br/mystream/user1.flv (online)
    user 2: rtmp://wowza.mycompany.com.br/mystream/user2.flv
    user 3: rtmp://wowza.mycompany.com.br/mystream/user3.flv

    If the Director selects user2 we change the shared object that contains the address and automatically the audience player access the shared object check that the address has changed and changes the content:

    user 1: rtmp://wowza.mycompany.com.br/mystream/user1.flv
    user 2: rtmp://wowza.mycompany.com.br/mystream/user2.flv (online)
    user 3: rtmp://wowza.mycompany.com.br/mystream/user3.flv

    That's like a live TV broadcasting. What i need is to record what is showing in the audience in a final .flv file so that our clients can use this later.
    Do you think that the solution you've told me can do it?

    Thanks in advance!!!

  4. #4
    Join Date
    Dec 2007
    Posts
    25,682

    Default

    The way I showed you could work, but it is a completely different approach. You are doing the switching in the Flash playback client, as directed by your controller and I presume using netconnect.call methods from the controller to Wowza and client.call methods from Wowza to the playback client.

    In the approach I suggested, you can leverage your controller but it will call switchPlaylist in that example (instead of that bankshot to the client) which will switch streams server-side. The playback client will just subscribe to one stream, and you will use the LiveStreamRecord client to playback that stream and stop and start recording.

    Richard

  5. #5
    Join Date
    Jun 2011
    Posts
    6

    Default

    I'm going to do a test trying to implement the approach you suggested but i will need your help because i don't know much about wowza and java. Is that OK?

  6. #6
    Join Date
    Dec 2007
    Posts
    25,682

    Default

    You can ask questions, and I or someone will try to answer. If you feel you need hands-on help and can hire someone, let me know and I will email a list of independent consultants that can help.

    Richard

  7. #7
    Join Date
    Jun 2011
    Posts
    6

    Default

    Hi Richard

    I've done a sample implementing the approach you've suggested me. It worked but i have some points to clear up my mind. i'd like to manipulate the playlist order for instance if it is possible because now i show the videos in the order i put then into the playlist can i change this order?

  8. #8
    Join Date
    Dec 2007
    Posts
    25,682

    Default

    This example shows some Playlist methods.

    http://www.wowzamedia.com/forums/con...eam-controller

    Richard

  9. #9
    Join Date
    Jun 2011
    Posts
    6

    Default

    Thanks Richard there is just one more problem that i've detected when recording the final result using the LiveStreamRecord package, when i'm broadcasting just recorded videos and switch between then the final result is ok but when i mix recorded videos and live broadcast i have a strange behavior at the final result. The final video result starts playing and shows the first switch but then it doesn't show the others switches, you just realize that occured switches because of the sound of the video and when you move the video progress bar.
    I'd like to know if there is a way to correct this behavior.

    Thanks in advance!

  10. #10
    Join Date
    Dec 2007
    Posts
    25,682

    Default

    It is probably because of some abrupt change in encoding that is not handled well. Each segment doesn't have to be identical, but the closer the better.

    Richard

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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