Welcome Guest, Not a member yet? Register   Sign In
Local/Live Problem
#1

(This post was last modified: 02-14-2016, 11:28 PM by Chandini.)

This is My local Code is Working fine In Local 

PHP Code:
$ffmpeg    "C:/ffmpeg/bin/ffmpeg";
$videoFiles "http://www.fdm.co.in/wannahelp/assets/chat_posts/sample.mp4";
$imageFile "video_thumb/12.jpg";
$size "120x90";
$getFromSecond 5;
$cmd "$ffmpeg -i $videoFiles -an -ss $getFromSecond -s $size $imageFile";
if (!
exec($cmd))
{
echo 
"thumb created"
}
else
{
echo 
"error getting";

This is My Server File In CI : 
PHP Code:
$ffmpeg FCPATH.'assets/ffmpeg/bin/ffmpeg';
 
      $videoFiles FCPATH.'assets/chat_posts/sample.mp4';
 
      $imageFile "public_html/wannahelp/assets/chat_posts/siva.jpg";
 
      $size "120X90";
 
      $getFromSecond 5;
 
      $cmd "$ffmpeg -i $videoFiles -an -ss $getFromSecond -s $size $imageFile";
//echo ini_get("disable_functions");
 
      //exec($cmd);
 
      if(!exec($cmd))
 
      {
 
      $s "created";
 
      }else
 
      {
 
      $s "Not created";
 
      
Out put Getting Same In Local and Live But video Thumbanail Is Not created in live .... In localhost Thumbnail Is created & working Fine .. Help Me
Manikanta
Reply


Messages In This Thread
Local/Live Problem - by Chandini - 02-14-2016, 11:26 PM
RE: Local/Live Problem - by skunkbad - 02-15-2016, 12:17 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 01:17 AM
RE: Local/Live Problem - by Diederik - 02-15-2016, 01:04 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 01:39 AM
RE: Local/Live Problem - by skunkbad - 02-15-2016, 09:12 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 10:49 PM
RE: Local/Live Problem - by skunkbad - 02-16-2016, 12:19 AM
RE: Local/Live Problem - by Chandini - 02-16-2016, 02:19 AM
RE: Local/Live Problem - by siburny - 02-16-2016, 05:07 PM
RE: Local/Live Problem - by Chandini - 02-16-2016, 10:03 PM
RE: Local/Live Problem - by Chandini - 02-16-2016, 11:23 PM
RE: Local/Live Problem - by skunkbad - 02-17-2016, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB