# Streaming Live from the pre-recorded videos using Wowza media server

**URL:** <https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589>\
**Category:** Wowza Streaming Engine\
**Created:** [November 29, 2012, 3:14am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589 "2012-11-29T03:14:16Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [November 30, 2012, 3:50am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/21 "2012-11-30T03:50:44Z")

</div>

I have done all the changes that you asked me to do and the video is playing fine, but when i added the video file in the [install-dir]content folder and changed the video file name in the [install-dir]/content/streamschedule.smil,then its taking too long to play and infact it didn’t play at all.So please tell me the significance of scheduling the video files if they don’t play in time.

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [November 30, 2012, 5:54am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/22 "2012-11-30T05:54:04Z")

</div>

Richard, i don’t think that there is issue with the date/time format because earlier when i was doing this with the default video i.e sample.mp4 provided in the wowza i don’t see any issues but as i added a new video file of the same format(mp4) in the same folder where earlier sample.mp4 was present i am not able to stream live. So please suggest that why it is not working with the newly added video files.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [November 30, 2012, 6:44am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/23 "2012-11-30T06:44:30Z")

</div>

Yes, the video is working fine as a vod stream in Wowza example Flash player.

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 3, 2012, 3:07am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/24 "2012-12-03T03:07:12Z")

</div>

Hi

I have restarted the wowza and again tested the playback of the scheduled stream in Wowza example player,but still the stream didn’t play .So i am sending you the /conf,/logs and schedule.smil file.

You can download the above files from here:

[http://www.mediafire.com/?16z1cc1lhkd71td](http://www.mediafire.com/?16z1cc1lhkd71td)

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 3, 2012, 5:07am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/25 "2012-12-03T05:07:09Z")

</div>

One more thing i want to ask that if i make the changes in the smil file while the video is playing live, then how and when the changes are going to be reflected.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 3, 2012, 5:29am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/26 "2012-12-03T05:29:24Z")

</div>

ok, now its playing fine, but can you please tell me that if i make the changes in the smil file while the video is playing live, then how and when the changes are going to be reflected.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 3, 2012, 5:56am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/27 "2012-12-03T05:56:14Z")

</div>

I have replaced the jar file from the wowza module collection and added the code in Application.xml but not bale to get the buttons and textinput below the the video display.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 4, 2012, 3:02am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/28 "2012-12-04T03:02:03Z")

</div>

From the below link given by Richard:

[https://www.wowza.com/docs/how-to-control-stream-class-streams-dynamically-modulestreamcontrol](https://www.wowza.com/docs/how-to-control-stream-class-streams-dynamically-modulestreamcontrol)

I have replaced the jar file from the wowza module collection and added the code in Application.xml but can anyone of you tell me that what i need to do with the StreamClassControl.zip folder as i am not able to get the buttons below the video display in the modified version of Wowza Live Player.

Please Suggest.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 4, 2012, 5:06am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/29 "2012-12-04T05:06:37Z")

</div>

Richard

I have earlier mentioned also that after the changes and entering the URL , the video is playing fine **but the buttons you are talking about in the link that has been given are not showing on the screen.**

**And Please tell me if i am mistaken coz i have just replaced the jar file and made changes in the application.xml but did nothing with the StreamClassControl.zip.**

**so do i need to do something more.if you need then i can send you the /conf and /logs folder also along with the schedule.smil file.**

**Amit**

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 4, 2012, 6:33am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/30 "2012-12-04T06:33:52Z")

</div>

Richard

I am able to connect to a running stream, but **not able to play a new item on the playlist not in the same stream which was running successfully to which i connected to and not with the new stream as well.**

So you please tell me that when i add the stream and playlist then where do they get added as i am not seeing any changes in the schedule.smil file.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 4, 2012, 7:55am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/31 "2012-12-04T07:55:04Z")

</div>

**Richard as you say this tool affects running streams but in my case it is not even affecting the running streams** and also if it doesn’t make any changes to the schedule.smil file then where does it make changes so that it affects the running stream.

please send me the link for 3 pages of questions and answers concerning this tool.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 4, 2012, 10:50am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/32 "2012-12-04T10:50:27Z")

</div>

Richard

Could you please tell me that how the different numbers used in the start and length are used for.

And secondly, if we have a video file of about 45 minutes or more then would it will play fine on wowa or do we need to compress it.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 5, 2012, 3:36am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/33 "2012-12-05T03:36:24Z")

</div>

> Richard
> 
> Could you please tell me that how the different numbers used in the start and length are used for.
> 
> And secondly, if we have a video file of about 45 minutes or more then would it will play fine on wowa or do we need to compress it.
> 
> Amit

Richard

Apart from what i have asked you above , please tell me that **how can i schedule my videos in the schedule.smil file for a week** such that if in a day a particular video is scheduled in a time range then it will only play in that interval.

Because now whats happening like if i schedule a video at 4 am and if i started the wowza server at 6 am also then the video plays…

So please suggest that **how can i diferentiate between different videos based on the time interval ?**

**How can i set the end time of the video in the .smil file ?**

**Amit**

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 5, 2012, 8:58am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/34 "2012-12-05T08:58:45Z")

</div>

Richard

please reply staright to my question , don’t give me the entire link to read through.

If a class (eg -video file) is schedule at suppose 5:00 am on stream1 for today and if we restart the Wowza media server and connect to the stream1 at 9:00 am , then still the video plays at the start up.So please tell me how can that be avoided so that the video once played at the scheduled time will not play again.

otherwise there would be no use of scheduling.

As in real time there would be many videos to be scheduled at different intervals.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 5, 2012, 9:17am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/35 "2012-12-05T09:17:15Z")

</div>

**# What is the Application.xml /StreamType?**

**stream type is set as live…**

For playback i am using the stream name set in the schedule.

One more thing is there any restriction on the jumber of playlist that can be played on a stream as if i add more than two playlist on a single stream then i am not able to connect to the stream.

Please tell me that the length=50 or length=5 or some other numbers…what do they suggest ?

As i am really screwed up now with this…

Please download the /conf and /logs from the below link :

[http://www.mediafire.com/?ks6hyiw3hfff2b1](http://www.mediafire.com/?ks6hyiw3hfff2b1)

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 6, 2012, 4:52am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/36 "2012-12-06T04:52:39Z")

</div>

Richard !

Maula.mp4 is inside the content folder.

**You didn’t said anything on that is there any restriction on the number of playlist that can be played on a stream ?**

Please reply to that how can i make a video to play only at scheduled time once, like if a video is scheduled at 5 am today and if i restart the wowza server at 7 am then the video should not play at all.

Richard please read carefully what i have written…

please see the below smil file…

**Here if i set the time to 1800 for p3 then after startup it plays and also if i set the time to 1300 and restart the wowza then also it plays first . So it appears really unpredictable behavior. So, whats is the logic going on.** and all the video files are inside the content folder…

Please explain.

Amit

---

<div class="post-metadata">

**Author:** ![amit\_tyagi](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@amit\_tyagi](https://community.wowza.com/u/amit_tyagi)\
**Post date:** [December 6, 2012, 7:05am UTC](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589/37 "2012-12-06T07:05:23Z")

</div>

Richard

I have already asked you to read carefully…

#, **(By Richard )if you schedule a stream in the past it will start when Wowza start**

(Me )but if there are multiple videos in the stream each of which is scheduled in the past then which one of them play first…???

**In the Below Smil file, if i set the time to 1800 for p3 then after startup it plays first and also if i set the time to 1300 for p3 and restart the wowza then also it plays first .**

Now please read slowly and try to understand what i am asking …

So thats why there is unpredictability because the time is not affecting it , it keeps on playing at first irrespective of the time…

Amit

[Previous page](https://community.wowza.com/t/streaming-live-from-the-pre-recorded-videos-using-wowza-media-server/39589.md?page=1)
