3.1. directory structure

yaVDR takes advantag of multiple services and methods to create a directory structure that supports the merging of local hard disks and remote shares into one file system.

Locally, music, videos and pictures are stored in directories underneath'/srv/. They are published the network via NFS and SAMBA im Netzwerk. The recordings of VDR are stored in '/srv/vdr/video.00 und will be exported as recordings via Samba (see table below)

Table 3.1. Standard directories for local multimedia files in yaVDR

Category Path NFS SAMBA

Pictures

/srv/picture

/srv/picture

picture

Music

/srv/audio

/srv/audio

audio

Videos

/srv/video

/srv/video

video

Recordings

/srv/vdr/video.00 [a]

/srv/share/vdr

recordings

[a] When there are several video.xx directories, they are exported analogue to this: /srv/vdr/video.01, /srv/vdr/video.02 etc.


3.1.1. Avahi Mounter

The Avahi mounter is a Python script that is listening for Avahi messages about network shares. If there is an appropriate service configuration for the particular message, the Python script will mount the network share automatically together with the local media to the /media/<category>/<location of files>. yaVDR 0.5 does this automatically on your computer for all local standard directories.

If you plan to use a combination of local and remotely mounted files for VDR plugins or XBMC, it is recommended to use /media/<Category>/ as the standard directory.

The example below shows a directory structure underneath /media/ on a yaVDR 0.5 system, where directories from another computer (also yaVDR 0.5) named "VDR" are mounted automatically. As shown, all local multimedia files are linked into the directory /local/:

Output of tree. 

/media
├── Picture
│   ├── local -> /srv/picture
│   └── VDR
├── cdrom
├── Music
│   ├── local -> /srv/audio
│   └── VDR
├── Record
├── Other
└── Video
    ├── local -> /srv/video
    └── VDR

/srv/vdr/video.00/
└── VDR

3.1.2. Mouting NFS Shares

There are several options to mount NFS shares in yaVDR. How to set up a server that announces shares per Avahi Mounter tat they are automatically mounted is explained in this articl on the yavdr.org web site. Directories that contain recordings can also set up in the web frontend in the section Network.