• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Video not converting (suPHP)

Started by yafe3,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yafe3Topic starter

Hi
Its been 3 weeks my script not converting other video formats only mp4 works fine I believe its hosting issue but they are trying to do something and I get tired from waiting any guidance from you guys so I can solve this problem or at least tell them how to fix it  I already told them we need latest ffmpeg version they told me they have old version and new version so put in the path to the new version ffmpeg but stil not converting. ..
And if I added webm.3gp. Forma is this gonna be converted ?
  •  

PHPVibe A.

Hi, you describe an ffmpeg problem.
PHPVibe works with ffmpeg 1.0+ , and if you have older you can change the ffmpeg command under ffmpeg settings (we do not know anything about the old ffmpeg, but google can help).

http://www.phpvibe.com/uploading-not-working-on-phpvibe-missing-video-ffmpeg-debug/

stiffhd

I Have the Latest FFMPEG on my VPS and ONLY convert MP4. I Tested on PHP Melody, ClipBucket and AdultVideoScript and VOALA, Everything works WELL, converted ALL Formats with NO PROBLEM (MP4, AVI, MKV, 3GP, MPG, RM, RMVB...) So, the BUG is on PHPVibe. What can i do for resolve this ? (i already test on 3 different vps and the issue persist). STOP trying to put the blame on our VPS or FFmpeg in trouble when the real error is in PHPVIBE. I'm not a NOOB, Currently it only converts uploaded videos in MP4 format.
  •  

Marius P.

Wait a second.

QuoteCurrently it only converts uploaded videos in MP4 format.


This is exactly how it's meant to be. Converts to one final mp4 file and you can alter the command sent to ffmpeg under settings -> ffmpeg conversion.
From your first post you understand it converts from, and not to, my colleague was just trying to help you.
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!
  •  

stiffhd

You got it wrong. I know that the final file is MP4. The problem is that it only is CONVERTING CORRECTLY, when I upload video in mp4 or avi FORMAT. If i send video or MKV RMVB, converting just never and still hangs, is multiplying the video and after a day, sending two videos that do not convert, they turn into over 1000 videos "processing". The Vibe is VERY bugged, Here never worked :/
  •  

Marius P.

It works for thousands, so let's not jump to conclusions.
This depends on your server's exec function, it seems it triggers in a loop.
What's your php handler?
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!
  •  

stiffhd

Actually is on suPHP Handler. He must necessarily be in DSO to function properly? I wanted to work the conversion of MKV and other formats in addition to MP4 and AVI. One thing, during my tests I tried adding the "videocron" as Cronjob in CPANEL and curiously converting MKV video to MP4 worked BUT videos have multiplied, rather than jumping conversion, were being CONVERTED again and again with every step of CRON. The Remaining works well, just missing it even to be 100% here. Would you help me PLEASE ?
  •  

Marius P.

Hi,

videocron.php should only trigger once, and should not be a system cron.
It's triggered in lib/upload-ffmpeg.php
$command = $binpath." -cli -f ".ABSPATH."/videocron.php";
exec( "$command > /dev/null &", $arrOutput );



Now depending on your environment it may need some extra setup on server side.


Usually just chmoding videocron.php to 0555 does the job, but also you need the good path to your php bin under ffmpeg settings.


I don't use suPHP since I've find it problematic in many ways, but you should check your logs, may give a clue on what's going on.
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!
  •  

stiffhd

There, I followed his advice and put CHMOD the "videocron.php" 0555. Fortunately the video sent in MKV format was convetido quickly (before the video was just processing and did not end ever) BUT he multiplied the converted video in more than 100 videos, take a look: http://saldaomania.com/videos/browse/
  •  

Marius P.

That's what -cli should prevent in the exec command.
Unfortunately I have close to zero server knowledge, you may wanna discuss this with a server admin.
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!
  •  

stiffhd

Thanks for all your help! I reviewed the folders BIN FFmpeg and PHP, I applied the 555 in videocron.php and now IS 100%;-) Finally! : D
  •  

Similar topics (7)