TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-14-2008, 06:16 PM   #1 (permalink)
The Wanderer
 
Join Date: Dec 2008
Posts: 10
Thanks: 0
moiseszaragoza is on a distinguished road
Default ffmpeg work with PHP

does any one know what are the server requayerment for ffmpeg work with php?
moiseszaragoza is offline  
Reply With Quote
Old 12-14-2008, 08:00 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Requirements? There are none as such. FFMPEG must be compiled on the server, and has dependencies of its own which will need to be installed on the server also. Once FFMPEG works over SSH, it will work with PHP. Simply choose a PHP function to execute the FFMPEG commands, such as exec().
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 01-02-2009, 05:07 PM   #3 (permalink)
The Wanderer
 
Join Date: Dec 2008
Posts: 10
Thanks: 0
moiseszaragoza is on a distinguished road
Default

first of all i want to say happy new yrs to every one

i finaly was ebel to get ffmpg installed

What i am doing is making sure i can upload to a directory

PHP Code:

<?php 

function uploadtoDirectory(){
        
$uploaddir     =     '_files/';
            
$uploadfile =     $uploaddir basename($_FILES['file']['name']);
            
#$uploadfile =     $uploaddir . $_SESSION['UserID'] . date("YmdHis"). ".flv";  
            
$filename     =    basename($_FILES['file']['name']);
            
#$filename     =     $_SESSION['UserID'] . date("YmdHis"). ".flv";
            
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) {
            
#    echo "File is valid, and was successfully uploaded.\n";
            
} else {
            
#    echo "Possible file upload attack!\n";
            
}
            
#echo 'Here is some more debugging info:';
            #print_r($_FILES);
            #echo($uploadfile);
            
YorshffmpegWrapper->YorshffmpegWrapper($filename$ffmpeg_path "ffmpeg");
    }


    
$Submit $_POST['Submit'];
    echo(
$submit);
    if(
$Submit!=NULL){
         
uploadtoDirectory();
    }
?>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="760" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>File Lookup </td>
      <td><input name="file" type="file" size="54" title="browse" /> </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Submit" /></td>
    </tr>
  </table>
</form>
but i am missing the part where i interface with FFMPG

i think there might me a problem with this line

YorshffmpegWrapper->YorshffmpegWrapper($filename, $ffmpeg_path = "ffmpeg");
moiseszaragoza is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining your World: All About Constants Wildhoney General 15 01-29-2013 12:32 PM
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
ffmpeg work with PHP moiseszaragoza Javascript, AJAX, E4X 5 12-11-2008 02:05 AM
PHP Compressor Kalle Script Giveaway 8 05-28-2008 12:14 AM
Make html pages work like php sam Tips & Tricks 2 02-09-2007 01:00 PM


All times are GMT. The time now is 12:26 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design