Skip to content

Commit

Permalink
TTK-16738: Add multiquality track
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed Dec 11, 2024
1 parent 68f215a commit 3672c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ public function cutAction(Request $request, MultimediaObject $originalmmobject)
$path = Path::create($track->storage()->path()->path());
$this->jobCreator->fromPath($multimediaObject, $path, $jobOptions);

if ('video_broadcastable_trimming' == $profile) {
$jobOptions = new JobOptions('video_broadcastable_dynamic_quality_trimming', $priority, $track->language(), $track->description()->toArray(), $parameters);
$path = Path::create($track->storage()->path()->path());
$this->jobCreator->fromPath($multimediaObject, $path, $jobOptions);
}

$this->documentManager->persist($multimediaObject);
$this->documentManager->flush();

Expand Down
2 changes: 1 addition & 1 deletion Resources/config/encoders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pumukit_hard_video_editor:
target:
video_broadcastable_dynamic_quality_trimming:
generate_pic: false
display: false
display: true
wizard: true
master: false
nocheckduration: false
Expand Down

0 comments on commit 3672c22

Please sign in to comment.