mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 05:51:01 +00:00
7d3ab342d2
Audio decoder element structure is based in `gst-plugin-lewton` (a lewton based Vorbis decoder created by @slomo) The element assumes correctly parsed input from `flacparse`. Implementation details: * Claxon returned frames does not contain audio channels interleaved, the reorganization of the channels is done by the element. * Claxon output buffers are always Vec<i32>, mapping to the correct type (depending on the audio format) is also done by the element. Mono s16 and stereo_s32 test are provided. Complete pipelines to test are: ``` gst-launch-1.0 -v souphttpsrc location=https://archive.org/download/MLKDream/MLKDream.flac ! queue2 ! flacparse ! flacdec ! audioconvert ! autoaudiosink gst-launch-1.0 -v audiotestsrc ! audio/x-raw, format=S16LE, layout=interleaved, rate=44100, channels=1 ! audioconvert ! flacenc ! flacparse ! claxondec ! autoaudiosink ``` Fixes #71
25 lines
824 B
TOML
25 lines
824 B
TOML
[package]
|
|
name = "gst-plugin-claxon"
|
|
version = "0.1.0"
|
|
authors = ["Ruben Gonzalez <rgonzalez@fluendo.com>"]
|
|
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugin-rs"
|
|
license = "MIT/Apache-2.0"
|
|
description = "Claxon FLAC Decoder Plugin"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
glib = { git = "https://github.com/gtk-rs/glib" }
|
|
gstreamer = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gstreamer-audio = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gstreamer-check = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
claxon = { version = "0.4" }
|
|
byte-slice-cast = "~0.3.4"
|
|
atomic_refcell = "0.1"
|
|
|
|
[lib]
|
|
name = "gstclaxon"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[build-dependencies]
|
|
gst-plugin-version-helper = { path="../gst-plugin-version-helper" }
|