[skip ci] Fix bug in dash storyboard

This commit is contained in:
Brahim Hadriche committed 2025-09-07 11:56:10 -04:00
1 parent 232af471f4
commit 9aa8bc4031
2 files changed
+8 -8

No files matched your search

+6
View File
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Bug in dash storyboard
## [0.41.8] - 2025-09-07
### Fixed
@@ -219,12 +219,6 @@ class DashManifest
continue for
end if
templateUrl = storyboard.templateUrl
if templateUrl.Instr("$M") = -1
LogWarnNoTelemetry("Invalid storyboard url: url does not contain $M:", templateUrl)
continue for
end if
storyboardWidth = storyboard.storyboardWidth
storyboardHeight = storyboard.storyboardHeight
storyboardCount = storyboard.storyboardCount
@@ -240,12 +234,12 @@ class DashManifest
end if
end if
intervalInSeconds = interval \ 1000
intervalInSeconds = interval / 1000.0
' YouTube template uses the var $M for tile pages
' DASH-IF uses $Number$ in the SegmentTemplate
' https://dashif.org/docs/DASH-IF-IOP-v4.3.pdf
url = templateUrl.replace("$M", "$Number$")
url = storyboard.templateUrl.replace("$M", "$Number$")
tilesPerPage = storyboardWidth * storyboardHeight
duration = tilesPerPage * intervalInSeconds