Separate out encoding.py as multicodec ?
See original GitHub issueThe encoding.py
code seems a lot like multicodec implementation, should we separate it out ? so that it can be used in py-ifps too ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
multiformats/multicodec: Compact self-describing codecs ...
The code of a multicodec is usually encoded as unsigned varint as defined by ... The validate.py script can be used to validate...
Read more >codecs — Codec registry and base classes — Python 3.11.1 ...
The joined output of calls to the encode() / decode() method is the same as if all the single inputs were joined into...
Read more >How to enable Multi Codec Support for OTT ... - Bitmovin
By encoding your videos using a multi-codec approach you can double the quality while still reducing your bandwidth consumption and ...
Read more >Video Codecs and Encoding: Everything You Should Know
Encoding involves compressing video data for delivery and storage. This requires the help of video codecs like H.264, H.265, AV1, and VP9.
Read more >Basics of Video Encoding: Everything You Need to Know
These blocks are encoded somewhat separately, which leads to ... There are ways around this by adding a filter that smooths out these...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I like the idea, but reviewing the current
multicodec
spec it seems the currentencoding.py
only handles the “how do I decode data with the given type” part; it doesn’t actually provide a multicodec parser yet. My suggestion would therefore be to start an independent project that provides a fullmulticodec
implementation (optionally based onencoding.py
). Once it reaches the level of maturity required to be usable on it’s own (particularly by thepy-ipfs
project), we can then integrate it into this project and (possibly) make it an officialipfs
project (at least I would do some lobbying towards that goal).I’ve looked at https://github.com/multiformats/py-multicodec (now existing multicodec implementation in Python) and it doesn’t look like
encoding.py
at all. Leading me to believe that this was some kind of misunderstanding here. If anything,encoding.py
(or rather the library written by @fredthomsen) seems to more closely resemble what https://github.com/ipld/py-ipld-dag would like to achieve if it contained any code. With recent changesencoding.py
is now hardly more than a glorified JSON parser and even before that there wasn’t much to “separate out” in the first place. This will therefor be closed, open a new issue if you think that you can provide a replacement forencoding.py
but for now we’ll stick to the required JSON and byte stream handling.