George2
George2

Reputation: 45771

video server supporting Http

I want to setup a video on demand server which support Http protocol. It is like Youtube, which hosts a lot of videos, and end users could play them from browser (by using Flash or Html 5).

Two quick questions,

thanks in advance, George

Upvotes: 1

Views: 2280

Answers (2)

Scott Stensland
Scott Stensland

Reputation: 28285

another approach is to use HTTP Live Streaming - HLS - the web server is simply a standard httpd server - video/audio is preprocessed on server side into a set of bitrate playlists. The heavy lifting logic is on the client side to retrieve the media as a series of 6 second files, based on bandwidth appropriate playlist ... bonus points for a client which auto calibrates for optimum bandwidth

So :

  • use files not memory
  • there are open source HLS segmenter (ffmpeg)

Upvotes: 1

Jesse Chisholm
Jesse Chisholm

Reputation: 4026

If you just want to have an HTML page that links to your video files - no problem, but most browsers will download the entire file before you system even considers playing it.

If you want to stream the files (like YouTube and others do) then you aren't actually using HTTP for the video itself. HTTP is used to get the information about the stream so your player can stream and play directly without having to download the entire file first.

Streaming video uses RTSP (or some other streaming protocol) for the audio and video data.

The closest HTTP protocol can get to "streaming" video is to use Server-Push of individual image frame with each frame flagged to replace the previous frame. Not all browsers can handle this directly, but might need an ActiveX control or Java Applet. The original QuickTime did this before the streaming protocols were implemented at the servers.

re: how does YouTube deal with big video file

I suspect they are on disk until they are needed. Moved into memory only as needed. Flushed from memory when no longer needed.

re: is there an open source video server for my purpose

YES! Check out http://www.videolan.org/

-Jesse

Upvotes: 1

Related Questions