Archive

Archive for April 12, 2010

AVS Video-Thumbs Directory Limit Problem

April 12, 2010 2 comments

Hi,

On Linux a directory can contain maximum 31998 sub-directories this causes a problem for Adult Video Scripts thumbs generation system. AVS uses the following format to create the thumbs: /media/videos/tmb/VIDEO_ID/1.jpg… There are two solution for this
problem:

  1. Change the filesystem to EXT4 or ReiserFS (ReiserFS is the recommend filesystem for small files (think video thumbs), however CentOS/Fedora/RHEL dont support ReiserFS by default).
  2. Change the AVS video thumb directory structure to something like /media/videos/tmb/YEAR-MONTH/VIDEO_ID/. This method requires a lot of code modifications. The thumb generation function has to be modified, same applies to the templates (the thumb display code has to be modified).

I have successfuly used the first method to host more than 200.000 videos.

Follow

Get every new post delivered to your Inbox.