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

Standardize some magic bytes to identify a brotli stream #298

Closed
jrmuizel opened this issue Jan 15, 2016 · 9 comments
Closed

Standardize some magic bytes to identify a brotli stream #298

jrmuizel opened this issue Jan 15, 2016 · 9 comments

Comments

@jrmuizel
Copy link

This would be very useful for dealing with something like .tar.br fies.

@eustas
Copy link
Collaborator

eustas commented Jan 18, 2016

Unfortunately, there is no magic bytes for brotli.
In future brotli streams will be wrapped in some framing format which will have magic bytes that could be used to identify it.

@eustas eustas closed this as completed Jan 18, 2016
@eustas
Copy link
Collaborator

eustas commented Jan 18, 2016

Mark Adler helped us much with proof-testing brotli and refining specification.
Here is his framing format proposal:
https://github.com/madler/brotli/blob/master/br-format-v3.txt

Signature in hexadecimal (four bytes):

ce b2 cf 81

@catlee
Copy link

catlee commented Jan 19, 2016

That's very helpful, thank you!

Do you have any idea when the new framing could be introduced? And how to transition content and clients over to the new format?

@dsnet
Copy link
Contributor

dsnet commented Jan 20, 2016

A framing or file format of some type sounds great.

Is there a process through which people are peer reviewing how the new framing format is being designed?

Has any thought been given to possibly re-using a "framing" format like the XZ file format where brotli is just one of the filter chains that can be used?

@stokito
Copy link

stokito commented Oct 27, 2018

@jason-sachs
Copy link

This issue was closed in Oct 2016. What was the resolution?

@pavelloz
Copy link

pavelloz commented Nov 24, 2021

Im also interested in detecting brotli archives in a convenient way.

@matijaskala
Copy link

I've written a wrapper program around brotli and have been using it locally on my system for quite some time

@simonmittag
Copy link

has this ever been implemented? identifying binary streams without relying on external headers (HTTP) is commonplace functionality

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

9 participants