PDA

View Full Version : change attachment limit for video play longer than 2 minutes


ShawneyJ
09-15-2014, 10:55 AM
hi, i wasnt sure what to actually title this thread. but my issue im facing is i can not get a video to play more than 2 minutes.

i have created a html5 video/audio player for attachments for vb4. so when uploading a .mp3 or .mp4 the media player shows and plays whats in the uploaded attachments.

everything is fine with mp3, but when trying to play the mp4 video, it stops playing after just under 2 minutes.

1 minute videos play fine. but anything over 2 minutes cuts off while watching.

is this a attachments limit issue or something i can edit in attachment.php to fix this please?

i created the same mod for vb3 and the mp4 video cuts off as-well.

i have my upload limit to the max, and mp4 videos fully upload to the correct file size in attachment.
even the video shows 3:45 in length of time, but still cuts off just before 2 mins.

just wondering if anyone has ran into an issue like this?

thanks.

EDIT: ok so this has to do with the max file upload size in mysql yes?
as soon as i moved all file attachments to be stored in Directory folder. i re-uploaded the mp4 attachment and everything came good.

if this is to do with mysql, im guessing its something i cant change without accessing the root server yeah?
anyways, when i release this i know to tell users to store attachments in a folder. ;)

Lynne
09-15-2014, 04:21 PM
I was gonna say that this sounds like it has to do with your server limits (whether mysql or php), not with vbulletin limits. It sounds like you figured that out. And yes, if you don't have access to change those values, you would need to talk to your host about them.

ShawneyJ
09-15-2014, 10:42 PM
hi Lynne, thanks. it shouldn't be php because my php.ini limit is set at 1024mb.
i do have access to the root so i will have a look around in there later. thanks.

Zachery
09-15-2014, 11:38 PM
What is the php max_execution_time ?

if the file doesn't fully download before the phptimeout occurs, then you don't be able to download the full attachment.

ShawneyJ
09-16-2014, 12:03 AM
hi mate. yep ok cool thanks. max_execution_time is only 120.
can i ask what it should be please?
thanks.

Lynne
09-16-2014, 04:24 PM
120 is 2 minutes. Try increasing it to 240 (4 minutes) and see if that makes a difference. You will need to restart apache after changing the php.ini file.