English « Yacs handbook « Content management «
How to create a media server at home?
Add YACS to one computer of your local area network, the share film and music files.
This page explains setup and configuration details to do exactly that.
Initially, the local area network installed at home was aiming to share the ADSL resource to the Internet. Naturally this need has evolved over time. At some point, we have collectively considred to share videos at home.
The basic idea is really straightforward. We would like to specialize one of the existing computers in the storage of big files, and to ease access from other computer to this data. Moreover, the solution has to adapt to very simple building blocks, such as Windows XP Family Edition and ordinary WiFi infrastructure. Of course, following explanations also apply to Unix and Linux computers. Thanks to network standards, this will also work with a mix of Windows and Unix boxes. I suppose Mac would support this equally well, but I had no occasion to test this yet.
Our global need comes from the irruption of digital media files everywhere. In this page, I will show you how YACS may be used to share some homebred videos derived by my father from old Super 8 films made when I was a baby...
As a starting point, imagine you have a computer, plus some very big MPEG files to share. How to proceed?
To make it fast, I have selected to install EasyPHP, a free software package that combines the three elements mentioned, plus additional interesting tools such as phpMyAdmin.
After the installation, the Apache configuration file has been changed to reflect the internal network address (e.g.,
Then the content of the most recent YACS archive has been copied to the computer, and the setup script has been triggered as usual. The alfresco has been selected as-is.
A cover page has been prepared, to list web resources used daily at home, and Martin, who is 8, also asked me to add a beautiful drawing of some rabbit.
At this stage the computer in the living room has been turned to a web site managed by YACS.
Then, again from the Control Panel, select the configuration panel for skins, and ensure that collections are displayed at the home page. Done!
At this stage everything becomes very simple, as proven by following screen captures. Basically, from the home page, you are only two or three clicks away from on-demand entertainment.
The server provides a playlist to the browser, which is transmitted to the adequate software.
VLC, Winamp, and the Windows Media Player are all able to stream the file and to render the film continuously.
This design is very efficient, since it allows for an immediate start of the film, even across a low-cost infrastructure.
The only constraint is to have enough bandwidth between the server and the rendering workstation. From experience you will need more than one megabit per second effective throughput.
In such cases video on demand does not work, and the file has to be transferred before playing it. Guess what? YACS also support this mode of sharing films.
While browsing some list of films, click on the disk icon and save the file.
At the end of the download, start the player of your choice, like VLC, Winamp or even Windows Media Player.
Of course, this is less funny than with video on demand, because of the transfer delay, but at least YACS adapts to the underlying infrastructure.
Moreover, there are also these occasions were you do need to copy files. For example my children were tempted to show their friends how beautiful I was when I was a baby... ::)
The basic idea is really straightforward. We would like to specialize one of the existing computers in the storage of big files, and to ease access from other computer to this data. Moreover, the solution has to adapt to very simple building blocks, such as Windows XP Family Edition and ordinary WiFi infrastructure. Of course, following explanations also apply to Unix and Linux computers. Thanks to network standards, this will also work with a mix of Windows and Unix boxes. I suppose Mac would support this equally well, but I had no occasion to test this yet.
Our global need comes from the irruption of digital media files everywhere. In this page, I will show you how YACS may be used to share some homebred videos derived by my father from old Super 8 films made when I was a baby...
As a starting point, imagine you have a computer, plus some very big MPEG files to share. How to proceed?
YACS setup
YACS has been developed in PHP. Also, it relies on a MySQL back-end, and sits behind a web server.To make it fast, I have selected to install EasyPHP, a free software package that combines the three elements mentioned, plus additional interesting tools such as phpMyAdmin.
After the installation, the Apache configuration file has been changed to reflect the internal network address (e.g.,
192.168.0.50) and to serve the selected directory (e.g., F:\public).Then the content of the most recent YACS archive has been copied to the computer, and the setup script has been triggered as usual. The alfresco has been selected as-is.
A cover page has been prepared, to list web resources used daily at home, and Martin, who is 8, also asked me to add a beautiful drawing of some rabbit.
At this stage the computer in the living room has been turned to a web site managed by YACS.
Creation of a collection
From the Control Panel, select the module for collections. Then open the related configuration panel.Then, again from the Control Panel, select the configuration panel for skins, and ensure that collections are displayed at the home page. Done!
Video on demand
To access a shared film, all that is required is a connected computer and a web browser. The network address of the server has to be typed explicitly (e.g.,http://192.168.0.50). Once the home page has been displayed, save its address in your favorites or bookmarks, and you won't have to retype it again.At this stage everything becomes very simple, as proven by following screen captures. Basically, from the home page, you are only two or three clicks away from on-demand entertainment.
The server provides a playlist to the browser, which is transmitted to the adequate software.
VLC, Winamp, and the Windows Media Player are all able to stream the file and to render the film continuously.
This design is very efficient, since it allows for an immediate start of the film, even across a low-cost infrastructure.
The only constraint is to have enough bandwidth between the server and the rendering workstation. From experience you will need more than one megabit per second effective throughput.
Download on demand
It may also happen that streaming just does not work. At home, the limited reach of the WiFi network does not allow enough bandwidth from some bedrooms.In such cases video on demand does not work, and the file has to be transferred before playing it. Guess what? YACS also support this mode of sharing films.
While browsing some list of films, click on the disk icon and save the file.
At the end of the download, start the player of your choice, like VLC, Winamp or even Windows Media Player.
Of course, this is less funny than with video on demand, because of the transfer delay, but at least YACS adapts to the underlying infrastructure.
Moreover, there are also these occasions were you do need to copy files. For example my children were tempted to show their friends how beautiful I was when I was a baby... ::)
- djsail on Jul. 27 2006 - #
- I was wondering whether anyone could post the config file they used for this project as mine doesn't seem to be working. If someone could daniel.o.james@btinternet.comthis to me I would be grateful!!

- GnapZ on Jul. 27 2006 - #
- Djsail : Hello and welcome in the Yacs world.
To use yacs as a local intranet media server, the better way is to use collections.
In collections, you have to give the local path to access files (i.e /home/media/music/) and the network path (i.e /music) defined in your apache settings if this folder is not in the yacs path.
Becarefull of the rights to access theses files.
If you make a photo collection, you will be able to see them one by one or as a slideshow.
If you make a music collection, you will be able to listen one song or to load all the folder. This function launch a media player and works fine with VLC (VideoLanClient).
If you want a video collection, you will see the movies in VLC media player or download them to another computer.
Tell us what did you want to do, the path of the files and the path of yacs ?










