• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] trouble with site slow when uploading video - using ffmpeg on

Started by spirog,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

spirogTopic starter

hi i have ffmpeg on and when trying to upload a video my site is so slow. file is .mp4 38mb only ? i have already uploaded a smal file with success only 3 sec long but this 38mb file does not want to upload. max upload on my own server is 1024M i have another ffmpeg video scrip that is working just fine. php 5.5 8mb ram ssd drive and 8 core system. am i missing something. does crons need to be in place for ffmpeg and if so what settings do i give crons in cpanel, what do i set the settings in time ? and what will be the exact line to setup cron in cpanel please if someone can give me the line i would appreciate it.

anyone else ever have this issue that one little video slows down whole site ?

Spiro
  •  

nithushan8

  •  

spirogTopic starter

Quote from: spirog on
hi i have ffmpeg on and when trying to upload a video my site is so slow. file is .mp4 38mb only ? i have already uploaded a smal file with success only 3 sec long but this 38mb file does not want to upload. max upload on my own server is 1024M i have another ffmpeg video scrip that is working just fine. php 5.5 8mb ram ssd drive and 8 core system. am i missing something. does crons need to be in place for ffmpeg and if so what settings do i give crons in cpanel, what do i set the settings in time ? and what will be the exact line to setup cron in cpanel please if someone can give me the line i would appreciate it.

anyone else ever have this issue that one little video slows down whole site ?

Spiro

ive noticed the videos seem to upload - i tested the ffmpeg works with test ff.php but does not seems to add to database or correct file ? anyone can help ? do i need to add /media or /usr/mydomain/public_html/media ? or just media

just a little confused why 1 small 3 sec video uploaded ok but larger 38mb uploads but doesnt find it. PS i changed the admincp section from moderator to another name and followed instructions.
im also running litespeed could this be the issue ? i have option for nginx also installed

centos 7
php 5.5
cPanel
my own server

thanks for answers from anyone who can help - in advance

Spiro
  •  

spirogTopic starter

OK I guess I figured it out. first mistake was i did not setup a category first. went through all setup options in admin section the
I went back and deleted all videos i tried and had uploaded videos went back and deleted all videos thumbs etc. cleared cache adn reuploaded videos and it worked. my settings are /usr/local/bin/php and /usr/local/bin/ffmpeg and 00:00:05

plus in uploads config settings i use this for uploads >> 131072000 bytes

after doing this it seemed to work.

the only issue I notice :

I am trying to debug this further.

We also raised mysql timeout variable as most probably script is leaving open mysql connection in wait mode so if wait timeout is less it won't add data to database once video are encoded, wait timeout is increased from 50 to 5000 now.

However a video I uploaded(mp4) does not have moov atom so it won't start playing unless you download them fully. creates video player spining and waiting etc..

Usually scripts add moov start of file(like clip-bucket) using MP4Box but phpvibe is not doing it.
I added moov atom manually in mp4 file and it started playing instantly.

so my question to @mario is can you add this somehpw some where in script ?

thanks

Spiro
  •  

Marius P.

Hi,

you can edit the ffmpeg command directly under Settings -> FFMPEG and try with -movflags faststart
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)