Video streaming really a very awesome and a very new type of technology ,we experience at Webkul. Every time million’s of user around the world open the YouTube but you know how these video sites work .There is a lot of technologies on streaming media , we will explain some of them :
So how this video streaming works .Mainly you can stream your data on two standard protocols
Helper Media(Video Player):
For a normal site you can stream your media(video) over HTTP but the main disadvantage with HTTP is stateless ,HTTP is a stateless protocol and HTTP don’t know about the state of the helper(Helper means video player ) . There are so many free open source video player but we at webkul are using Flowplayer .
Flow player is really an awesome video player ,you can easily customize and mold as per your need. There are so many conditions for making a streaming a video site like
1- You are using a hosting web space
2-You are using a dedicated server
3- others 😉
Actually there are some software for the encoding and decoding of your media file . Generally all the video player(flow player) supports .flv extension for streaming , means you can not stream your .AVI or .DAT extension with video player like flow-player . so thats the reason that you must have a encoding-decoding (conversion) software
This is the very most important aspect for making a video site . If you don’t know how to convert videos in to desired format then its really hard to make a video site
Software Requirement and platform:
There are so many open source software for the video conversion like ffmpeg,mencoder etc. We are using FFMPEG for the video conversion really very handy and easy to use .
we are using Ubuntu (Linux) operating system as a platform for the video site .Ubuntu is simply awesome ,very user friendly , very large community and apt-get is just God 😮
For the Scripting language we are using PHP , I think no need to explain PHP now a days so we can say this “how to make video site using open source“.
Host or Server:
If you are using a hosting account then make sure these softwares are install in your host and if you are having a dedicated server then hureeeeh ,you need not to be worry about anything .
So i think that the basic example it sufficient now starts with mechanism
Video Conversion and Thumbnail Generation:
As previously said we are using Ffmpeg so now how we’ll use ffmpeg with PHP. For all this purpose we are using execfunction . The video conversion commend is
$file : This is the variable for the source media file which you want to convert e.g example.avi.
$image: This the variable for the grabbed thumbnail from the video
For more in thumbnails generation please have a look Here .
Get length of the Video File :
This is also a useful technique , suppose you want to generate more than one thumbnails in specified interval let say you want nine thumbnails of the video . So at this point you must get the length of the video
So now you have have converted FLV file and nine thumbnails with flow-player . I think this is sufficieint data to conquer the world .enjoy 😉
If you don’t want to stream your video in HTTP you can use RTSP+RTP as well for this you have to use streaming server like DSS(darwin streaming server) or RED5 . I’ll suggest to use darwin its open source and handy to use
We are not done yet on the streaming media, if you have any problem or suggestion drop a mail in our mailbox or just put a comment in the commentbox .we’ll respond you as soon as possible thanks …..
Bad Behavior has blocked 109 access attempts in the last 7 days.