Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Possible Cron timeout on larger video conversion

11 years 3 days ago
  • Matt's Avatar
    Topic Author
  • Matt
  • Offline
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 0
Licenses:
JomSocial Active

I'm trying to increase the size of videos that people can upload to my site. I've successfully managed up to about 38mb, but I know this should be able to be increased to preferably more than double that, hopefully 100mb.

The problem is that when I go past 40mb, I get a Cron error. It's like the process for converting a video from start to finish doesn't complete. Here are some things of note:

  • The video *is* successfully converting and is placed in the \images\video folder
  • The original video is left in the \images\originalvideo folder
  • No thumbnail is produced
  • In the SQL table for videos: duration is 0, the link points to images\originalvideo, status is still locked

If I manual modify the SQL table, to correct the final point in the above list, evey thing is fine and it's like it had been a normal upload.

I get the CRON error emailed to me exactly 2 minutes after it starts, so it's almost as if somewhere the magic 120 seconds limit is kicking in, but I've changed php.ini to have 300 set for max and mysql timeouts to 300. It's also interesting to note, the video is still part way through converting at this point. I'm wondering if it's possible to split the cron job so that the video conversion has enough time to run before what ever the next bit is that would create the thumbnail, set the video as ready, delete the originalvideo file and post the activity stream item.

Attachment failing-videos.JPG not found


Attachment cron-error.JPG not found

Attachments:
11 years 2 days ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Matt,
I have informed to our developer.
Hopefully they can help you with better way.
Thanks

11 years 1 day ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Matt,

If you use video size 38mb everything is working fine right? and you will get trouble if upload more than that size? aha..
I am sure this is server compatibility issue, can you also contact your hosting provider please for this solution.

Thank you

11 years 1 day ago
  • Matt's Avatar
    Topic Author
  • Matt
  • Offline
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 0
Licenses:
JomSocial Active

Well I'm the admin of the server, it's a VPS, so I've got the ability to change any time out values (which I have already increased to 300 seconds for everything I can think of). In my tests it takes 2:30 minutes to create the video file, which is 30 seconds after the cron error (possibly a 120 second time out somewhere).

How do I see the actual script that is called by the cron job? I still think that splitting this in to two would solve the issue. The video happily carries on converting even after the Cron error happens. So I think if there were two Cron scripts: one to trigger the conversion, then one to delete the original file, create thumbnail, set video as ready and post the activity stream, then my issue is solved.

11 years 19 hours ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Matt,

Ehm, if you wanna reparate the cron task you need hack the code for this, do you familiar with php code, right? you can try to hack this file components/com_community/library/cron.php or another solution you can use zencoder from AmazonS3

let me know if you need more assistance.

thank you

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW