Results 1 to 4 of 4

Thread: live video in schedule streaming with live source

  1. #1
    Join Date
    Sep 2009
    Posts
    6

    Question live video in schedule streaming with live source

    Hi
    I have been working on schedule streaming via this guide:

    http://www.wowza.com/forums/content....amPublisher%29

    I have it working for ondemand files without any issues. I can't however get it to work with live streams.

    How do I format the smil to add a live stream? I have just tried adding the application name and rtmp://localhost/ucbtv1/ucbtv1 but this don't seem to work.

    My smil is currently:

    <smil>
    <head>
    </head>
    <body>

    <stream name="lftctv"></stream>

    <playlist name="pl1" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:00">
    <video src="mp4:MOS_HouseAnthemsv16.mp4" start="0" length="10"/>
    <video src="mp4:MoS_VIP_FLAT_Fire_preview.mp4" start="0" length="10"/>
    <video src="mp4:MOS_30s_PRORES.mp4" start="0" length="10"/>
    </playlist>

    </body>
    </smil>

    Im assuming the live source needs to be on the same box.

    Thank you for your help.

  2. #2
    Join Date
    Jun 2012
    Posts
    723

    Default

    Hi,

    You will need to make sure that this particular live stream is already published on this particular application. Assuming that your application is called "ucbtv1" and the live stream published to this application is called "myStream", then your streamschedule.smil file would look something like this:
    <smil>
    <head>
    </head>
    <body>
    
    <stream name="lftctv"></stream>
    
    <playlist name="pl1" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:00">
    <video src="mp4:MOS_HouseAnthemsv16.mp4" start="0" length="10"/>
    <video src="mp4:MoS_VIP_FLAT_Fire_preview.mp4" start="0" length="10"/>
    <video src="mp4:MOS_30s_PRORES.mp4" start="0" length="10"/>
    </playlist>
    <playlist name="pl2" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:30">
    <video src="mp4:myStream" start="-2" length="300"/>
    </playlist>
    
    </body>
    </smil>
    Setting the start="-2" parameter would mark this stream as a live stream. Having this in place, at the scheduled time, the live stream will play back for 300 seconds, and then move to the next playlist item.

    You can also have this:
    <smil>
    <head>
    </head>
    <body>
    
    <stream name="lftctv"></stream>
    
    <playlist name="pl1" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:00">
    <video src="mp4:MOS_HouseAnthemsv16.mp4" start="0" length="10"/>
    <video src="mp4:MoS_VIP_FLAT_Fire_preview.mp4" start="0" length="10"/>
    <video src="mp4:MOS_30s_PRORES.mp4" start="0" length="10"/>
    <video src="mp4:myStream" start="-2" length="300"/>
    </playlist>
    </body>
    </smil>
    This would play back the 3 video files for 10 seconds each, and them switch to the live stream for another 300 seconds. Since the playlist is set to "repeat", after the 300 seconds of live, the playlist will start from the beginning.

    Zoran
    Last edited by zoran_u; 03-06-2015 at 03:34 AM.

  3. #3
    Join Date
    Sep 2009
    Posts
    6

    Default

    Quote Originally Posted by zoran_u View Post
    Hi,

    You will need to make sure that this particular live stream is already published on this particular application. Assuming that your application is called "ucbtv1" and the live stream published to this application is called "myStream", then your streamschedule.smil file would look something like this:
    <smil>
    <head>
    </head>
    <body>
    
    <stream name="lftctv"></stream>
    
    <playlist name="pl1" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:00">
    <video src="mp4:MOS_HouseAnthemsv16.mp4" start="0" length="10"/>
    <video src="mp4:MoS_VIP_FLAT_Fire_preview.mp4" start="0" length="10"/>
    <video src="mp4:MOS_30s_PRORES.mp4" start="0" length="10"/>
    </playlist>
    <playlist name="pl2" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:30">
    <video src="mp4:myStream" start="-2" length="300"/>
    </playlist>
    
    </body>
    </smil>
    Setting the start="-2" parameter would mark this stream as a live stream. Having this in place, at the scheduled time, the live stream will play back for 300 seconds, and then move to the next playlist item.

    You can also have this:
    <smil>
    <head>
    </head>
    <body>
    
    <stream name="lftctv"></stream>
    
    <playlist name="pl1" playOnStream="lftctv" repeat="true" scheduled="2011-02-25 09:00:00">
    <video src="mp4:MOS_HouseAnthemsv16.mp4" start="0" length="10"/>
    <video src="mp4:MoS_VIP_FLAT_Fire_preview.mp4" start="0" length="10"/>
    <video src="mp4:MOS_30s_PRORES.mp4" start="0" length="10"/>
    <video src="mp4:myStream" start="-2" length="300"/>
    </playlist>
    </body>
    </smil>
    This would play back the 3 video files for 10 seconds each, and them switch to the live stream for another 300 seconds. Since the playlist is set to "repeat", after the 300 seconds of live, the playlist will start from the beginning.

    Zoran
    Thank you for the quick response. The ucbtv1 is a seperate application on the server which is a live edge application pulling from our ingest. Does that mean you need to send a feed directly to the application under a different name? For example lftc/mystream instead of pointing to another application?

    The application I have the playlist working on is called lftc.

  4. #4
    Join Date
    Jun 2012
    Posts
    723

    Default

    Yes, the stream needs to be published to the application that is running the scheduler.
    You can either use the "ModuleDuplicateStreams" to duplicate your stream on the scheduler application, or use a .stream file to publish the same live stream on the "lftc" application as well.

    Zoran

Similar Threads

  1. Re-streaming UDP source to YouTube Live
    By Artstar in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 01-23-2014, 03:23 AM
  2. Doing Live Streaming using Schedule file, but rtmp won't play at all
    By stormsec in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 1
    Last Post: 01-20-2014, 05:08 AM
  3. Can I bypass it request sdp file? source is VLC Live source
    By alantang888 in forum Live Streaming and Encoder Discussion
    Replies: 0
    Last Post: 11-06-2012, 10:31 AM
  4. Live and mp4 streaming schedule
    By krisisdnbdjmx in forum Live Streaming and Encoder Discussion
    Replies: 33
    Last Post: 09-25-2012, 05:07 AM
  5. broadcast multiple video files source as one live?
    By paymok in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 02-25-2012, 07:34 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
  •