Wowza Community

How to integrate wowza with a php website?

Hello mate!

I’m newbie to wowza and doing a php video website now, i’m trying to use wowza server as the video host, and i’ve set up an AMI instance on amazon ec2. Now i just want to know 2 things: 1. how to upload video to wowza media server from website. 2. how to get video from wowza server to play on website.

Thanks in advance

Liumy

You can FTP to EC2 instance. The EC2 guide has details, you need to use Active connection mode. Or you can install a web server on the Wowza server and map a web folder to Wowza content folder.

See this tutorial for configuring vod application:

https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming

For playback on your website, JW Player is one option:

https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server

Richard

Liumy,

  1. There is nothing built-in to Wowza, but there are many ways to move files from server to server and client to server. One approach is to just upload to the web server and use MediaCache which allows you to stream from content on a web server.

https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache

  1. All the Tutorials (at top), documentation, guides and examples are here:

https://www.wowza.com/docs/

Browse the tutorials that fit your case, and look at the quickstart guide, examples, addons, etc.

HTML5 video tag is only supported in iOS devices (cupertino streaming) and Safari browser on Mac.

Richard

Liumy,

Wowza only supports cupertino streaming involving HTML5 video tag, only to iOS devices and Safari on Mac OSX

Richard

Take a look at this example:

https://www.wowza.com/docs/how-to-take-a-single-frame-snapshot-of-a-live-stream-for-thumbnail-creation-modulecreatesnapshot

Richard

Liumy,

Wowza does not have any file transcoding capabilities.

Richard

Wowza is not aware of new files when you FTP a file to Wowza content folder. So, no, thumbnails are not created. You can do it after the file is uploaded with this

https://www.wowza.com/docs/how-to-take-a-single-frame-snapshot-of-a-live-stream-for-thumbnail-creation-modulecreatesnapshot

Richard

No, Wowza is also unaware of files being uploaded by php script

Richard

Mukesh,

It is used to transcode and transrate live streams. Take a look at this guide to vod encoding:

https://www.wowza.com/docs/how-to-encode-video-on-demand-content

Richard

Hi,

You can find the listed codecs that will be transcoded by Wowza below under the Decoding section,

http://www.wowza.com/media-server/specifications

Jason

Hello Richard,

Thanks for your help!!

  1. i have 2 seperate instances on amazon, one is AMI have wowza media server installed, another has web server installed, is it possible to write code uploading videos from web server to the wowza server in 2 instances?

  2. i’ve taken a look at the guide, my requirement is to make the video playable on both desktop and mobile, so i used a html5 video player now, is there any guide for that?

meanwhile as i know there’re different video formats for different browsers, such as mp4,ogv,webm, when uploading videos to wowza server, how to make it transcode the videos to these different formats?

Thanks very much

Liumy

Hello Richard,

For 2, as i know, firefox, chrome and IE9 all supports html5 video tag except ios devices, and i’ve tested.

The problem is these browsers supports different video formats, such as firefox supports .ogv, chrome supports .mp4, IE9 supports .webm.

In that case, do you have some suggestions or tutorials to help?

Thanks!!!

Liumy

Hello Richard,

Thanks for your clarifications.

I have one requirement to create thumbnails when uploading video to wowza server, does wowza have such capability?

Thanks

Liumy

Hello Richard,

After reading the transcoder tutorial, i think the transcoder is not what i want, my requirement is that after user uploads a video to wowza server, transcoder automatically encodes that video to different formats such as .mp4, .webm, .flv.

Can you pls give me further explanations?

Thanks

Liumy

ok, thanks!

From what i’ve learned from tutorials, seems wowza also can’t create thumbnails when uploading videos to wowza server, there seems to be only capabilities to create thumbnails when calling the stream.

is that true?

Thanks

I don’t use ftp to upload files, instead we use php to move files to wowza, in that case, is there any automatic method or settings to create thumbnails?

Thanks

Hi,

Can you please tell me if Wowza does not have any file transcoding capabilities, then what is the purpose of the Wowza Transcoder AddOn?

Regards,

Mukesh

Hi Richard,

Thanks for you prompt reply.

According to the user guide:

"Ingests a non-H.264 video and non-AAC/MP3 audio media stream and converts it to a set of H.263 or H.264 AAC adaptive bitrate media streams

"

Does this mean wowza can convert any type of video Codec such as VP8/Theora and any type of Audio codec such as MP3/Vorbis?

Regards,

Mukesh