Jump to content

Recommended Posts

when iam executing this command through exec its not working where as its working through command line

and this is the problem only for wmv files suggest what can be the problem.

 

                                    $file_ext= strtolower($file_ext_Arr[count($file_ext_Arr)-1]);  

  $fileid = md5(uniqid(time(), 1));                                                

                                            $src = "system/cache/videos/". $fileid.".".$file_ext;

  $dest="system/cache/videos/".$fileid;

 

  // echo "ffmpeg -i $src -ar 22050 -ab 32 -f flv  -acodec mp3 -s 320x240  $dest.flv";

Link to comment
https://forums.phpfreaks.com/topic/90144-ffmpeg-problem-for-wmv/
Share on other sites

simply say

my source file is 11.wmv and destination is dest.flv

 

when i say

exec(echo "ffmpeg -i 11.wmv  -ar 22050 -ab 32 -f flv  -s 320x240  dest.flv";) through php it is creating  afile od 0 size

 

where as when i type the same through command it is creating coorectly what can be the  problem

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.