diff --git a/cmd/cmaf-ingest-receiver/app/channel.go b/cmd/cmaf-ingest-receiver/app/channel.go index 40c2ef8..58dafac 100644 --- a/cmd/cmaf-ingest-receiver/app/channel.go +++ b/cmd/cmaf-ingest-receiver/app/channel.go @@ -180,7 +180,7 @@ func (ch *channel) addInitDataAndUpdateTimescale(stream stream, init *mp4.InitSe ch.addTrData(r) switch sampleEntry { - case "avc1", "hvc1", "mp4a", "stpp", "wvtt": + case "avc1", "hvc1", "mp4a", "stpp", "wvtt", "ac-3", "ec-3": // OK case "evte": // Event stream. Don't add to MPD or contentinfo, but keep the segments. // TODO. Handle event streams for SCTE-35 events and other cases diff --git a/cmd/livesim2/app/asset.go b/cmd/livesim2/app/asset.go index ebde6f4..ba1a5a3 100644 --- a/cmd/livesim2/app/asset.go +++ b/cmd/livesim2/app/asset.go @@ -706,6 +706,8 @@ func (r RepData) sampleDur() uint32 { switch { case strings.HasPrefix(r.Codecs, "mp4a.40") && r.MediaTimescale == 48000: return 1024 + case (strings.HasPrefix(r.Codecs, "ac-3") || strings.HasPrefix(r.Codecs, "ec-3")) && r.MediaTimescale == 48000: + return 1536 default: return 0 }