Last active
November 7, 2022 08:25
-
-
Save himynamesdave/6220ed9b3ab29770c9a5c9019da470e7 to your computer and use it in GitHub Desktop.
Google Spatial Media Telemetry Injector Print mp4 Structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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