Wowza Community

live streaming files located directly on server

hello,

Im new to wowza streaming engine and am wondering if I will be able to live stream mp4 video files located directly on the server with wowza? I see it supports vod but we dont archive our videos so vod is not an option.

Hello there and welcome to the Wowza support forum.

Generally speaking, Video on demand uses pre-recorded files, like your are describing. Where as “live” streaming uses a feed from an IP or web camera. For example.

You could stream your .mp4 files as VOD streams as is (as long as they are in the /content folder of your Wowza install).

However, you can also stream these recorded mp4 files as live streams if that is what you are trying to do. If this is the case please take a look at this guide:

How to do basic server-side publishing with Stream class streams

If you just want to stream the mp4 files as Video on demand streams please take a look at this guide:

How to set up video on demand streaming

Regards,

Salvadore

The first parameter is the position in the video to start streaming from and the second is the duration to play. In seconds. So in your example, the stream would start 5 seconds into the video, and play for 5 seconds, and since the 3rd parameter is set to “true” it will loop(repeat) that 5 second portion of the video.

You can schedule the stream to play at a certain hour, on a certain day by using this guide. It also explains what the parameters mean:

How to schedule streaming with Wowza Streaming Engine (ServerListenerStreamPublisher)

Regards,

Salvadore

Hello there and welcome to the Wowza support forum.

Generally speaking, Video on demand uses pre-recorded files, like your are describing. Where as “live” streaming uses a feed from an IP or web camera. For example.

You could stream your .mp4 files as VOD streams as is (as long as they are in the /content folder of your Wowza install).

However, you can also stream these recorded mp4 files as live streams if that is what you are trying to do. If this is the case please take a look at this guide:

How to do basic server-side publishing with Stream class streams

If you just want to stream the mp4 files as Video on demand streams please take a look at this guide:

How to set up video on demand streaming

Regards,

Salvadore

Salvadore thanks for the info have one question though. stream1.play(“mp4:sample.mp4”, 5, 5, true); what are the numbers 5,5, representing as far as a start and end? and they in seconds/minutes? what if i wanted it at a certain hour and minute of the day… thanks in advance

Just to add to this…You can locate vod files anywhere to stream them…not only in the content folder.