mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
b062f63ec3
This new crate consists of two elements, jsongstenc and jsongstparse Both these elements can deal with an ndjson based format, consisting for now of two item types: "Buffer" and "Header" eg: {"Header":{"format":"foobar"}} {"Buffer":{"pts":0,"duration":43,"data":{"foo":"bar"}}} jsongstparse will interpret this by first sending caps application/x-json, format=foobar, then a buffer containing {"foo":"bar"}, timestamped as required. Elements further downstream can then interpret the data further. jsongstenc will simply perform the reverse operation.
36 lines
945 B
TOML
36 lines
945 B
TOML
[package]
|
|
name = "gst-plugin-json"
|
|
version = "0.6.0"
|
|
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]
|
|
license = "LGPL-2.1-or-later"
|
|
edition = "2018"
|
|
description = "Rust JSON Plugin"
|
|
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
|
|
|
|
[dependencies]
|
|
glib = { git = "https://github.com/gtk-rs/gtk-rs" }
|
|
once_cell = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = { version = "1.0", features = ["raw_value"] }
|
|
|
|
[dependencies.gst]
|
|
git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|
features = ["v1_12"]
|
|
package="gstreamer"
|
|
|
|
[lib]
|
|
name = "gstrsjson"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[build-dependencies]
|
|
gst-plugin-version-helper = { path="../../version-helper" }
|
|
|
|
[dev-dependencies.gst-check]
|
|
git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|
package="gstreamer-check"
|
|
|
|
[features]
|
|
# GStreamer 1.14 is required for static linking
|
|
static = ["gst/v1_14"]
|
|
|