Page 1 of 1

Implementing file audio, video server.

Posted: Thu Jun 07, 2007 2:27 am
by Midgard
Hi,

I have a new project on my hands and I have some issues with this.

It is a management system for a label company and it needs to be finished in 2 months.
It will be for about 80.000 mp3 and I don’t now exact haw many movies.

For the hard-ware I have split the problem in two parts, one is the server with php and the database – dual xeon, and the file server/servers that will handle all the data, with 7 TB, for the start.

I started to design the database and also draw the php layers for the system.

I have to make a system that will allow the management team to create their audio play list and then lissen a predefined time for the mp3’s.They don’t want to listen for the song “on the browser” (embed flash player or other players…), but when they select a song I will send them a stream with the predefined time for the audio file. With what application they will hear it not my concern.

It is the same for the video section, I have to open a stream for the file to be vied but not save

I don’t now haw to implement the security and the interaction - stream issue.

Please give me some hints.

I will begin after 15 June with server tests. If some one is interested I will show the results. I estimated for start a 20.000 row for one table and another 10.000 – 15.000 row entries for other tables with join information’s.

Xdebug and CacheGrind - http_load -> Just started to learn about this: D

Posted: Fri Jun 08, 2007 2:44 pm
by Begby
I don't know an answer to your question but are you sure 2 months is realistic timeframe for this? It sounds like a pretty big project even for a very seasoned php coder.

Posted: Sat Jun 09, 2007 1:10 am
by Cabal
I think Begby does have a point to be honest.


Will your customer/employer be able to install and remove Apache plugins?

If this is possible then you should use something like the IBM Web Service Streaming Engine for Apache. This is secure and then all you would need to do would be have PHP dish out links to Apache's 'stream' content and away you go.

If you don't, my best bet would be using PHP's readfile() method in conjunction with stream files:

For example,

Winamp's shoutcast stream format is a .pls which is essentially a URL saved in plaintext format pointing to where the streamable radio content is held.

Hope this helps you.

James Ravenscroft

Posted: Sun Jun 10, 2007 12:52 pm
by Ollie Saunders
Can you explain in more detail what the system will need to do please.

Posted: Mon Jun 11, 2007 2:53 am
by Midgard
The system is intended to deliver video and audio files to the user, with the possibility of purchasing the content.
If you are a regular user and you want to listen a audio files it will allow you for a specific tine ( 30 sec. ), with the video files will watch the trailers.
When you buy your product you will be capable to dawn-load the file or listen live the full content.

I just spoke with the management, they want a flash player to be embedded in the site, do I need a streaming server for that ?
With the mp3 files the same.

This is what i have to build.

All the company back-end – CMS system is in my hands. I have 2 more exams to take and I will be free to concentrate on this project :D.
If we will need a streaming server :

With the CMS system I am not a novice, with the streaming issue it is a first.
I start digging on the web (after the Cabal answer - thank you!!! ), and discovered also the apple open source application for streaming Darwin Streaming Server.
I will begin with the IBM solution, if it is needed.

Thanks !