Skip to content

Commit

Permalink
feat(8-channels): support 8 channels (map to norwegian)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Jan 10, 2024
1 parent c2ed979 commit 7c35c1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/vidispine/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ func getEmbeddedAudio(client Client, clip *Clip, languagesToExport []string) (*C
}

if len(shape.AudioComponent) == 8 {
if len(languagesToExport) > 1 {
return clip, fmt.Errorf("found 8 audio components, expected 16")
}

var streams []int
for _, c := range shape.AudioComponent[:2] {
streams = append(streams, c.EssenceStreamID)
Expand All @@ -251,7 +255,6 @@ func getEmbeddedAudio(client Client, clip *Clip, languagesToExport []string) (*C
}

for _, lang := range languagesToExport {

clip.AudioFiles[lang] = &AudioFile{
VXID: clip.VXID,
File: shape.GetPath(),
Expand Down

0 comments on commit 7c35c1d

Please sign in to comment.