Skip to content

Instantly share code, notes, and snippets.

@himynamesdave
Last active November 7, 2022 08:25
Show Gist options
  • Save himynamesdave/6220ed9b3ab29770c9a5c9019da470e7 to your computer and use it in GitHub Desktop.
Save himynamesdave/6220ed9b3ab29770c9a5c9019da470e7 to your computer and use it in GitHub Desktop.
Google Spatial Media Telemetry Injector Print mp4 Structure
import os, sys, copy
from pathlib import Path
path = os.path.dirname(sys.modules[__name__].__file__)
path = os.path.join(path, '..')
sys.path.insert(0, path)
from spatialmedia import mpeg as mpeg4_container
filename = sys.argv[1]
with open(filename, "rb") as f:
m = mpeg4_container.load(f)
m.print_structure()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment