null ); /** * * @var string */ protected $binary_name = 'MoovRelocator'; /** * * @var string */ protected $binary = '/usr/bin/php'; /** * * @param system_file $origine * @param string $dest * @return system_file */ protected function process(system_file $origine, $dest) { $mp4_file = $origine->getPathname(); $moovrelocator = moov_relocator::getInstance(); $ret = $moovrelocator->setInput($mp4_file); if ($ret !== true) throw new Exception('File format not ok'); $ret = $moovrelocator->setOutput($dest); if ($ret !== true) throw new Exception('File output error'); $ret = $moovrelocator->fix(); if ($ret !== true) throw new Exception('Error while fixing'); return $this; } }