Store
Community Documentation

v3 Knowledgebase

Video thumbnail hack for consideration for new sites

Core hack for consideration:I wanted to have some other thumbnails to work with in my templates, and was worried about having my users uploading videos, without a more future proof approach to layout. So, to have multiple thumbnails generated at the time of movie sharing (ala youtube) and the following lines of code:Around line 217 : in video/include/service/grab.class.php
replace:
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_120'));
with:
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_50'));
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_75'));
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_100'));
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_120'));
@copy(PHPFOX_DIR_CACHE . $sTempImage, sprintf($sImageLocation, '_150'));Cons:
1. You end up using a little more than twice the drive space versus just having the single thumbnail
2. Core hacks are a pain
3. Using this on an open site is less helpful because it doesn't retroactively effect previously entered files
4. If you are using ffmpeg and video conversion, you will need to hunt down the ffmpeg section and hack those settings there
Pros:
1. The expanded thumbnail collect give you more elbow room when designing your site.