PHP Classes

So how do we use it, example app

Recommend this page to a friend!

      FFMPEG in PHP Video  >  All threads  >  So how do we use it, example app  >  (Un) Subscribe thread alerts  
Subject:So how do we use it, example app
Summary:show it
Messages:2
Author:Okokoh Benjamin Ekuma
Date:2016-02-22 08:34:49
 

 


  1. So how do we use it, example app   Reply   Report abuse  
Picture of Okokoh Benjamin Ekuma Okokoh Benjamin Ekuma - 2016-02-22 08:34:49
So how do we use it, example app, thankas

  2. Re: So how do we use it, example app   Reply   Report abuse  
Picture of Mostafa Abd-El-Hamid Mostafa Abd-El-Hamid - 2016-02-22 12:25:20 - In reply to message 1 from Okokoh Benjamin Ekuma
First of all, please download ffmpeg library which will be suitable to your system (Windows/Linux)

Second, get to know the path of the executable file in Windows ffmpeg.exe in Windows or ffmpeg.sh in LINUX

Third, you need to use the function and class as follows:

In your file that will output the video:

<?php

use \SaveFile\From;

require 'WebCamera.php';

\SaveFile\From\WebCamera::__init("FileName.mpg", "/Directory/Of/Putput/Path/To/Be/Combined/To/File/Name", "/Path/To/FFMPEG/File", "/Web/Camera/Driver/Name/From/ControlPanel/Or/Devices/List/In/Linux");