Support Center

Videos not being converted / processed for a long time

There are two sources from which videos on SocialEngine sites can be created: either as links from YouTube and Vimeo, or as files from your local machine. Sometimes, videos uploaded onto your site via your computer don’t get processed or converted properly, and you’ll see a message like “Your video is in queue to be processed - you will be notified when it is ready to be viewed.”, but the video never gets processed. There are a few reasons why this might happen, so let’s take a look at what you can do to troubleshoot the issue.

  1. FFMPEG installation: In order to upload videos from your computer or mobile device, you must first install FFMPEG on your server.

    What is FFmpeg?
    FFmpeg is a free software licensed under the LGPL or GPL depending on your choice of configuration options. It is basically a decoder / encoder, enabling it to convert files from one codec to a another one. This is essential for your site to allow users upload videos from their mobile or computers. Now comes the question “How to get it set-up on your server ?” There are 2 ways to do so:

    a) Compiling a fresh FFmpeg binary of your own
    This method is a bit complex and time consuming that many people do not even think about compiling their own FFmpeg binary. This can also affect some server configurations. So, we recommend getting Static FFMPEG builds on your server.

    b) Static FFmpeg builds
    This is the easiest way to get the latest FFMPEG version running on your server. Unsure how to do it? Follow the instructions provided in the video tutorial provided below.

     
  2. Job Queue: There’s a process on your site called Job Queue that plays an important role in the processing of videos. This job is run via the Task Scheduler. If Task Scheduler does not run frequently, it can block Job Queue and other important processes. To check whether Task Scheduler is running frequently enough (which will result in the success of Job Queue), go to “Admin” > “Settings” > “Task Scheduler” and check when the last time "Job Queue" was successfully run.

    If Job Queue has not run on the site for a long time, then a few settings need to be changed:
    • Go to “Admin” > “Settings” > “Task Scheduler” > “Task Scheduler Settings” and change the “Trigger Method” to either “Socket”/ “Java Script” or “Cron”
      Note: Cron is basically a job scheduler that helps run processes and execute commands at specific dates and times. We use this to schedule recurring tasks. To enable Cron, you’ll first need to get “Crontab” installed and set-up by your server provider. Please contact your server provider for help on accomplishing this task. After that, you can enable Cron on your site from the Admin Panel.
    • Then, change the value of these two fields:
      • "Concurrent Processes" from 2 to 4
      • "Tasks Run per Request" from 2 to 1
  3. Job Queue Error Message: To see if your video has been queued to be processed or not, go to “Admin” > “Task Scheduler” > “Job Queue”. If your video is in process, you’ll see an option to cancel. That means the video is in the queue and will be processed soon. If the video conversion has failed, you’ll see two options: “message” and “restart”. If you click on the “message” link, you’ll see the exact error message that explains why videos on your site are not being converted. The error message will help you determine what to do to fix the problem, such as changing the permissions on directories, increasing memory, etc.

In this article, we've discussed how to install, configure, and ensure FFMPEG is working. We’ve also discussed how to ensure Task Scheduler is running properly and how to troubleshoot with the help of Job Queue Error Messages. If after following these steps, you still have an issue, feel free to contact us anytime!

support@socialengine.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=14386