Skip to content

Commit

Permalink
support audio formats (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natkeeran authored and dannylamb committed Feb 8, 2019
1 parent 8276680 commit d81724e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Homarus/cfg/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ homarus:
- video/mp4
- video/x-msvideo
- video/ogg
- audio/x-wav
- audio/mpeg
- audio/aac
default: video/mp4
mime_to_format:
valid:
- video/mp4_mp4
- video/x-msvideo_avi
- video/ogg_ogg
- audio/x-wav_wav
- audio/mpeg_mp3
- audio/aac_m4a
default: mp4

fedora_resource:
Expand Down
2 changes: 1 addition & 1 deletion Homarus/src/Controller/HomarusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function convert(Request $request)
$args = $request->headers->get('X-Islandora-Args');
$this->log->debug("X-Islandora-Args:", ['args' => $args]);

$cmd_string = "$this->executable -i $source $cmd_params -f $format -";
$cmd_string = "$this->executable -i $source $args $cmd_params -f $format -";
$this->log->debug('Ffempg Command:', ['cmd' => $cmd_string]);

// Return response.
Expand Down

0 comments on commit d81724e

Please sign in to comment.