I'm experiencing an issue when using large videos with CPG. When you click on the item in the album, it takes a very long time for the page to load. Sometimes the page doesn't load at all, and ends up in a fatal error (see below). If the page does finally load (~25 seconds later), the video plays fine. It's just getting the page to load initially that seems to be the hang up. Other media on the site loads very quickly, it's just the large videos the cause the page load lag issue. These are very large videos we're talking about (several gigs). These are long 60fps full HD resolution files. Their file sizes can get quite large (5-10gb).
If the page loading times out, these are the two messages I have received...Fatal error: Maximum execution time of 30 seconds exceeded in /home/********/themes/curve_dark/theme.php on line 292
-and-Fatal error: Maximum execution time of 30 seconds exceeded in /home/********/include/functions.inc.php on line 5490
For theme.php, the line it gets stuck on (292) is...
if ($width == '-1') $width = $CONFIG['picture_table_width']
For functions.inc.php, the line it gets stuck on (5490) is...
$size = getimagesize($image);
Now, I'm no developer, and I hardly read PHP, but it looks to me like both of these lines are related to trying to determine image dimensions. Looks to me like CPG is trying to churn through the file to determine its dimensions, but since these file sizes are so large, I'm guessing it's taking the server a large amount of time to churn through the file. I suspect it is likely unable to determine the resolution anyway, since it is not actually an image file (maybe I'm wrong?). If this is the case, it seems it would be helpful for CPG to detect if the file extension is one associated with a video, and if so to bypass the process of trying to determine its dimensions. ...then again, maybe I'm way off course and it's something completely different. I differ to the experts on this one.
I've setup an example of my issue here: http://www.pictureshome.com/thumbnails.php?album=1
This is a fresh install of CPG, with only two files in an album. One is an image, the other a large video. You will see the significant performance difference between loading the two pages, and occasionally (I suspect based on server load at the time) you will get a fatal error, timing out after 30 seconds.
Thank you all for your time. I appreciate your help.