Skip to content

Commit

Permalink
refactor to quiet the output and see if it works
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Jul 15, 2024
1 parent 3372c2a commit dcd542b
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions application/models/Transcoder_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public function __construct()
));

// spin ffprobe to force us to pull the container
$phpvideotoolkit_media = new \PHPVideoToolkit\FfmpegProcess("ffprobe", $this->videoToolkitConfig);
$raw_data = $phpvideotoolkit_media->setInputPath("/tmp/emptyfile")
->addCommand('-show_streams')
->addCommand('-show_format')
->addCommand('-print_format', "json")
->addCommand('-v', "quiet")
->execute()
->getBuffer();
// $phpvideotoolkit_media = new \PHPVideoToolkit\FfmpegProcess("ffprobe", $this->videoToolkitConfig);
// $raw_data = $phpvideotoolkit_media->setInputPath("/tmp/emptyfile")
// ->addCommand('-show_streams')
// ->addCommand('-show_format')
// ->addCommand('-print_format', "json")
// ->addCommand('-v', "quiet")
// ->execute()
// ->getBuffer();


$this->load->helper("file");
Expand Down
2 changes: 1 addition & 1 deletion docker/commands/blender
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/blender:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/blender:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/convert
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --platform linux/x86_64 --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest convert "$@"
docker run --quiet --platform linux/x86_64 --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest convert "$@"
2 changes: 1 addition & 1 deletion docker/commands/cziutils
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/cziutils:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/cziutils:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/exiftool
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --platform linux/x86_64 --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/exiftool:latest "$@"
docker run --quiet --platform linux/x86_64 --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/exiftool:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/ffmpeg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/ffmpeg:latest ffmpeg "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/ffmpeg:latest ffmpeg "$@"
2 changes: 1 addition & 1 deletion docker/commands/ffprobe
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/ffmpeg:latest ffprobe "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/ffmpeg:latest ffprobe "$@"
2 changes: 1 addition & 1 deletion docker/commands/gnuplot
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/gnuplot:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/gnuplot:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/identify
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest identify "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest identify "$@"
2 changes: 1 addition & 1 deletion docker/commands/meshlab
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/meshlab:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/meshlab:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/mogrify
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest mogrify "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest mogrify "$@"
2 changes: 1 addition & 1 deletion docker/commands/montage
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest montage "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/imagemagick:latest montage "$@"
2 changes: 1 addition & 1 deletion docker/commands/nxsbuild
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/nxsbuild:latest "$@"
docker run --quiet --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/nxsbuild:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/ocrmypdf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest ocrmypdf "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest ocrmypdf "$@"
2 changes: 1 addition & 1 deletion docker/commands/pdfinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest pdfinfo "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest pdfinfo "$@"
2 changes: 1 addition & 1 deletion docker/commands/pdftotext
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest pdftotext "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest pdftotext "$@"
2 changes: 1 addition & 1 deletion docker/commands/r-lang
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/r-lang:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/r-lang:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/rtibuild
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/rtibuild:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/rtibuild:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/shrinkpdf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest shrinkpdf "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/pdfutils:latest shrinkpdf "$@"
2 changes: 1 addition & 1 deletion docker/commands/spatial
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/spatial:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/spatial:latest "$@"
2 changes: 1 addition & 1 deletion docker/commands/tarrific
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/tarrific:latest "$@"
docker run --quiet --memory=8g --rm -i -v /scratch:/scratch ghcr.io/umn-elevator/tarrific:latest "$@"

0 comments on commit dcd542b

Please sign in to comment.