Skip to content

Commit bb356ac

Browse files
committed
created utils.mkl module
1 parent 69ec7fc commit bb356ac

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/ffmpegio/utils/mkl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from os import path
2+
import xml.etree.ElementTree as ET
3+
4+
5+
def read_schema():
6+
return ET.parse(path.join(path.dirname(__file__), "ebml_matroska.xml"))

tests/test_utils.mkl.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from ffmpegio.utils import mkl
2+
3+
4+
if __name__ == "__main__":
5+
tree = mkl.read_schema()
6+
root = tree.getroot()
7+
for child in root:
8+
print(child.tag, child.attrib)

0 commit comments

Comments
 (0)