unable to get all box data
Closed this issue · 2 comments
jiujitsu commented
Hello, I apologize in advance if this is user error and not a bug. The mp4 file in question is: here
My code:
boxes = Box.parse_stream(open('init.mp4', 'rb'))
[box for box in boxes]
Gives output:
['offset', 'type', 'major_brand', 'minor_version', 'compatible_brands', 'end']
However when I use mp4dump (not pymp4 cli) I see the full box data. Am I doing something wrong?
beardypig commented
Did you solve this?
Random-Code-Guy commented
Did you solve this?
i am trying to get the box and box type using pymp4 using the following
boxes = Box.parse_stream(io.BytesIO(data))
for box in boxes:
if box.type == b"senc":
print("found")
but all i get is string dosent have type error and i dont see a lot of documentation on this project and how it can be used apart from a few examples