Wowza Community

Mediacache and SMIL

How can i live stream from mediacache.

I’m trying make youtube livestreaming from amazon S3.
I read this article : https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache, and do it step by step.

But now i don’t know how to smil file can connect with mediacache to livestream.

Pls help me!

Thanks.

1. This is my smil file
<?xml version="1.0" encoding="UTF-8"?> 
<smil title=""> 
<head></head> <body>
 <stream name="stream10"></stream> 
<playlist name="pl2" playOnStream="stream10" repeat="true" scheduled="2019-11-21 18:31:00"> 
<video length="-1" src="http://10.184.192.212:1935/mediacache/_definst_/mp4:amazons3/9.mp4" start="0">
</video> 
</playlist>
 </body> 
</smil><br>

Thank you for sharing what article you followed and some code @cao son, that is very helpful. The next step to take is to use StreamPublisher to access those streams with the smil file and MediaCache:

https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher

If you wish to use a smil file with Media Cache you should create a smil file in the same location as your VOD files and reference the files in the smil file as a relative link.

Then when you construct your playback URL you can use the Mediacache prefix and add the smil file to the end just as you would with any other smil file reference, e.g.

rtmp://[wowza-ip]/[app-name]/[mediacache-prefix]/smil:videos.smil

(You should enter a prefix such as “amazons3/”)

Thank for replying me. I solved it.

Excellent to hear! Thank you for letting me know.