Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_script_tag() is malfunctioning #1

Open
phillijw opened this issue Sep 6, 2023 · 2 comments
Open

create_script_tag() is malfunctioning #1

phillijw opened this issue Sep 6, 2023 · 2 comments

Comments

@phillijw
Copy link

phillijw commented Sep 6, 2023

I'm running into an issue with the following code. You can see that it's inserting an 0x02 and 0x08 where it shouldn't (see the right side of the diff). The left side is the correct output.

custom_payload = FLVObject()
custom_payload["audioBandwidth"] = struct.pack(">d", 64000.0)
custom_payload["audioChannels"] = struct.pack(">d", 1.0)
custom_payload["audioFrequency"] = struct.pack(">d", 48000.0)
custom_payload["channelId"] = struct.pack(">d", 0.0)
payload = create_script_tag('onMetaData', custom_payload, 0)

image

@phillijw
Copy link
Author

phillijw commented Sep 6, 2023

# Here there's always a byte with the value of 0x02,

There is some code which references this 0x02 and I'm wondering if it's kind of a bug or a hack to make youtube work?

@phillijw phillijw closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
@phillijw phillijw reopened this Sep 6, 2023
@phillijw
Copy link
Author

phillijw commented Sep 6, 2023

See this issue: wulczer/flvlib#3

You should've forked this repo instead of copy and pasting it. Makes merging really difficult :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant