mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
Standardize some magic bytes to identify a brotli stream #87
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jrmuizel on GitHub (Jan 15, 2016).
This would be very useful for dealing with something like .tar.br fies.
@eustas commented on GitHub (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 commented on GitHub (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
@catlee commented on GitHub (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 commented on GitHub (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 commented on GitHub (Oct 27, 2018):
Hi, could you add the signature to the
filetool?It looks like you need to add it here:
c7d910ee88/src/compress.cand here:
c7d910ee88/magic/Magdir/archiveI created a separate ticket for this #727
@jason-sachs commented on GitHub (Nov 4, 2020):
This issue was closed in Oct 2016. What was the resolution?
@pavelloz commented on GitHub (Nov 24, 2021):
Im also interested in detecting brotli archives in a convenient way.
@matijaskala commented on GitHub (Jan 16, 2022):
I've written a wrapper program around brotli and have been using it locally on my system for quite some time
@simonmittag commented on GitHub (Jan 23, 2022):
has this ever been implemented? identifying binary streams without relying on external headers (HTTP) is commonplace functionality
@ross-spencer commented on GitHub (Aug 20, 2025):
Looking around (and testing this locally) there doesn't seem to be any resolution, yet multiple workflows rely on basic magic capability, my own use case, digital preservation and archiving where we need to identify file formats and understand their intellectual payload.
Can this issue be reopened?