transcoding gop

This commit is contained in:
shimon
2022-08-07 09:59:42 +03:00
parent e8c96e8452
commit f2fbdf8a7c
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -29,7 +29,6 @@ echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<?php endforeach; ?>
<?php foreach ($this->getParam('subtitles', []) as $subtitle):?>
<AdaptationSet group="<?php if (isset($subtitle['id'])): echo $subtitle['id']; endif;?>" contentType="text" lang="<?php if (isset($subtitle['code'])): echo $subtitle['code']; endif;?>" mimeType="text/vtt">
<Role value="main" />
<Representation id="<?php if (isset($subtitle['id'])): echo $subtitle['id']; endif;?>" bandwidth="1000">
<BaseURL><?php if (isset($subtitle['baseUrl'])): echo $subtitle['baseUrl']; endif;?></BaseURL>
</Representation>
+2 -2
View File
@@ -370,10 +370,10 @@ class TranscodingV1 extends Worker
'-r', '24',
'-b_strategy', '1',
'-bf', '3',
'-g', '2'
'-g', '120'
];
$segmentSize = 8;
$segmentSize = 10;
if ($stream === 'dash') {
$dash = $video->dash()