Video Upload Troubleshooting

by @PHPVibe
9 years ago
56593 Views

Missing uploaded video

Please do your server settings for file uploads as instructed in this tutorial Server settings for large file uploads
If still not working, you’ll need to reduce the chucks on Plupload below your server’s max limit.
In com/com_add.php find (around line 34) :


chunk_size: '5mb',

Change the 5mb value to suit your server’s limits.
NOTE: Best choice is to check and configure the server properly for large file upload!

Video stuck on “processing”

Make sure you have:
– shell_exec() and exec() available on the server.
– Execute permissions on the videocron.php file (chmod 555 or similar).
(most common) the right php bin path for your server under Settings -> FFMPEG Conversion
You should contact your server administrator for your right path if you have no tech knowledge.

Also, to check the conversion and see if the issue resides in the bin path you can run www.yoursite.com/videocron.php in the browser, and check the video in a few minutes.
In some cases FFMPEG is getting killed by the system, for example when the server doesn’t have enough ram or resources for that ffmpeg operation.

Alternative solution to exec/shell_exec:

Set a system cron on your server to fire videocron.php every x minutes.
Consult your host’s documentation on how to set a system cron.

 

Uploaded video not working on PHPVibe; Missing converted video or/and Duration; FFMPEG debug

One of the most common issues when using PHPVibe for the first time is to see that your videos uploaded are not playable.

Do not worry!

Here is what you should do:

IF you don’t have ffmpeg, make sure you turn it off!

Else, if you have ffmpeg installed, and is the right version (1.0+) under Settings -> FFMPEG add you real paths for the ffmpeg command and the php bin.

If all this correct, your new videos should work fine and the thumbnail and duration is extracted + the video is converted to a playable mp4 and shows up properly.

Note: Old videos would need to be recreated.

What happens if this doesn’t fix it?

Download the PHPVibe tester from requirementsand copy a file called test.avi to that folder (read the tester’s instructions).

The tester will output an error, this error is most probably the answer you seek, if you don’t understand it, post it in the the forum for a developer to check it and guide you.

Make sure in ff.php this line:

/*
The ffmpeg command supported by your server
*/$ffmpegmd = "ffmpeg";

is edited to your ffmpeg command. Else it will just return that the ffmpeg executable is not found.

 

See also:

FFMPEG installation for a video script

Choosing and configuring a server for PHPVibe

Server settings for large file uploads

6 Comments

  • if you use nginx as reverse proxy , you may change this value for large (big) file

    Change in Nginx config

    Add following line to http{..} block in nginx config:

    http {
    #…
    client_max_body_size 100m;
    #…
    }

    Note: For very large files, you may need to change value of client_body_timeout parameter. Default is 60s.

  • RODRIGO says:

    HELLO.

    CAN PHPVIBE OR MEDIAVIBE TO UPLOAD THE VIDEOS DIRECT TO YOUTUBE ACCOUNT?

    SO I CAN EMBED THE LINK FROM UPLOADED VIDEO FROM YOUTUBE TO SHOW IN MY WEBSITE.

    I NOT WANT TO LOAD MY WEBHOSTING SERVER WITH FILES.

    • @PHPVibe says:

      Hi,

      There is no feature to upload via the cms to Youtube.
      But it’s faster and easier to just upload to Youtube directly and then paste the link in the cms.

  • David Turner says:

    Not creating Thumbnails? Where can I find trouble shooting on this topic?

    • @PHPVibe says:

      Hi,

      Check your ffmpeg log in the admin panel.
      Upgrade the ffmpeg if it fails or modify the creation command in videocron.php to fit your ffmpeg version.

Leave a Reply to @PHPVibe Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.