AVS Video-Thumbs Directory Limit Problem
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:
- 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).
- 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.
Advertisement
Categories: Adult Video Script
Adult Video Script, avs, directory limit, thumb generation
Hi How can i change to EXT4 and what the procedure to change
It depends on your configuration, however here is what you can do (generally speaking):
1. Create a new partition (ext4 of course).
2. Copy the contents of /media/videos/tmb/ folder to the new partition.
3. Mount the new partition on /WHERE/AVS/IS/INSTALLED/media/videos/tmb/