Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTK-16738: Add multiquality track #22

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading