https://github.com/oldes/rebol-ebml
EBML (Extensible Binary Meta Language) Rebol codec
https://github.com/oldes/rebol-ebml
codec ebml ebml-parser matroska rebol webm
Last synced: 2 months ago
JSON representation
EBML (Extensible Binary Meta Language) Rebol codec
- Host: GitHub
- URL: https://github.com/oldes/rebol-ebml
- Owner: Oldes
- License: mit
- Created: 2024-07-10T12:52:01.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-20T18:17:01.000Z (10 months ago)
- Last Synced: 2025-03-09T18:02:02.639Z (2 months ago)
- Topics: codec, ebml, ebml-parser, matroska, rebol, webm
- Language: Rebol
- Homepage:
- Size: 421 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Oldes/Rebol-EBML/actions/workflows/main.yml)
[](https://app.gitter.im/#/room/#Rebol3:gitter.im)# Rebol/EBML
EBML (Extensible Binary Meta Language) codec for [Rebol3](https://github.com/Oldes/Rebol3) (version 3.17.1 and higher)
## Usage
```rebol
import ebml ;; import the module
data: load %source.mkv ;; decode some data
save %temp.mkv data ;; encode data back to file
```
It is possible to use `encode`/`decode` functions like:
```rebol
data: encode 'ebml [
Info: [
MuxingApp: "libebml2 v0.21.3 + libmatroska2 v0.22.3"
WritingApp: "mkclean 0.9.0 u from Lavf57.83.100"
DateUTC: 2024-07-10T11:29:13
]
]
probe data
;== #{
;1549A966DA4D80A76C696265626D6C322076302E32312E33202B206C69626D61
;74726F736B61322076302E32322E335741A26D6B636C65616E20302E392E3020
;752066726F6D204C61766635372E38332E3130304461880A4D315499011A00}probe decode 'ebml data
;== [
; Info: [
; MuxingApp: "libebml2 v0.21.3 + libmatroska2 v0.22.3"
; WritingApp: "mkclean 0.9.0 u from Lavf57.83.100"
; DateUTC: 10-Jul-2024/11:29:13
; ]
;]
```