Skip to content

Commit

Permalink
Add Opus to sound sample descriptions
Browse files Browse the repository at this point in the history
That should enable injecting metadata into spherical videos with spatial audio encoded using Opus (in the MP4 container, with the  '-strict -2' option).
  • Loading branch information
mgorzel authored Feb 22, 2019
1 parent 9a2ce8f commit 05ca4c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spatialmedia/mpeg/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
TAG_ALAW = b"alaw"
TAG_LPCM = b"lpcm"
TAG_MP4A = b"mp4a"
TAG_OPUS = b"Opus"

SOUND_SAMPLE_DESCRIPTIONS = frozenset([
TAG_NONE,
Expand All @@ -70,6 +71,7 @@
TAG_ALAW,
TAG_LPCM,
TAG_MP4A,
TAG_OPUS,
])

CONTAINERS_LIST = frozenset([
Expand Down

0 comments on commit 05ca4c2

Please sign in to comment.