Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Jul 15, 2024
1 parent 4a5d7fe commit 21e181d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion application/controllers/Beltdrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public function processAWSBatchJob($fileObjectId) {

// set scratchspace to include fileobject
$this->config->set_item("scratchSpace", $this->config->item("scratchSpace") . "/" . $fileObjectId);

$fileHandler = $this->filehandler_router->getHandlerForObject($fileObjectId);

if(!$fileHandler) {
Expand Down
6 changes: 4 additions & 2 deletions application/models/Transcoder_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ public function extractMetadata() {
if(!$this->checkLocalAndCopy()) {
return JOB_POSTPONE;
}


exec("ls -l " . $this->config->item("scratchSpace"), $output);
var_dump($output);
exec("ls -l " . $this->fileHandler->sourceFile->getPathToLocalFile(), $output);
var_dump($output);
$phpvideotoolkit_media = new \PHPVideoToolkit\FfmpegProcess("ffprobe", $this->videoToolkitConfig);
$raw_data = $phpvideotoolkit_media->setInputPath($this->fileHandler->sourceFile->getPathToLocalFile())
->addCommand('-show_streams')
Expand Down
2 changes: 1 addition & 1 deletion docker-php.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
docker-compose exec apache php "$@"
docker compose exec apache php "$@"

0 comments on commit 21e181d

Please sign in to comment.