Added comments for main variables in new conversion class
This commit is contained in:
parent
516e22637a
commit
e9b05cc9e3
1 changed files with 31 additions and 0 deletions
|
@ -12,20 +12,51 @@
|
||||||
|
|
||||||
class ffmpeg {
|
class ffmpeg {
|
||||||
|
|
||||||
|
# stores path for ffmepg binary file, used for basic conversion actions
|
||||||
private $ffmpegPath = '';
|
private $ffmpegPath = '';
|
||||||
|
|
||||||
|
# stores path for ffprobe binary file, used for video meta extraction
|
||||||
private $ffprobePath = '';
|
private $ffprobePath = '';
|
||||||
|
|
||||||
|
# stores path for mediainfo, also used for video meta exraction
|
||||||
private $mediainfoPath = '';
|
private $mediainfoPath = '';
|
||||||
|
|
||||||
|
# stores number of maximum allowed processes for ffmpeg
|
||||||
private $maxProsessesAtOnce = '';
|
private $maxProsessesAtOnce = '';
|
||||||
|
|
||||||
|
# stores filename of video being currently being processed
|
||||||
private $fileName = '';
|
private $fileName = '';
|
||||||
|
|
||||||
|
# stores directory of video file currently being processed
|
||||||
private $fileDirectory = '';
|
private $fileDirectory = '';
|
||||||
|
|
||||||
|
# stores directory where output (processed / converted) file is to be stored
|
||||||
private $outputDirectory = '';
|
private $outputDirectory = '';
|
||||||
|
|
||||||
|
# stores directory to save video conversion logs
|
||||||
private $logsDir = LOGS_DIR;
|
private $logsDir = LOGS_DIR;
|
||||||
|
|
||||||
|
# stores name of file that should be used for dumping video conversion log
|
||||||
private $logFile = '';
|
private $logFile = '';
|
||||||
|
|
||||||
|
# stores path to temporary directory where file stay before they are moved
|
||||||
|
# either to conversion qeue or final destination
|
||||||
private $tempDirectory = TEMP_DIR;
|
private $tempDirectory = TEMP_DIR;
|
||||||
|
|
||||||
|
# stores path to conversion lock file which is used to check if more processes
|
||||||
|
# are allowed at a time or not
|
||||||
public $ffmpegLock = '';
|
public $ffmpegLock = '';
|
||||||
|
|
||||||
|
# stores settings for generating video thumbs
|
||||||
private $thumbsResSettings = '';
|
private $thumbsResSettings = '';
|
||||||
|
|
||||||
|
# stores settings for 16:9 ratio conversion
|
||||||
private $res169 = '';
|
private $res169 = '';
|
||||||
|
|
||||||
|
# stores settings for 4:3 ratio conversion
|
||||||
private $resolution4_3 = '';
|
private $resolution4_3 = '';
|
||||||
|
|
||||||
|
# stores basic ffmpeg configurations for processing video
|
||||||
private $ffmpegConfigs = '';
|
private $ffmpegConfigs = '';
|
||||||
|
|
||||||
function __construct($ffmpegParams) {
|
function __construct($ffmpegParams) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue