Skip to content

How can I get the sidedata of type SEI_UNREGISTERED and convert it to a byte array or string object? #1682

Answered by david6096
david6096 asked this question in 1. Help
Discussion options

You must be logged in to vote

I'v gotten it!

data = frame.side_data.get(av.sidedata.sidedata.Type.SEI_UNREGISTERED)
if data is not None:
   buf = bytes(data)
   s1 = buf[16:].decode("utf-8")
   print(s1)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WyattBlue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant