Skip to content

beachcitiessoftware/rs_gst_custom_audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Gstreamer plugin, which calls a REST-API to process audio samples

Build a debug build with:

cargo build

Build a release build with:

cargo build -r

Test with audiotestsrc:

GST_DEBUG=customaudio:4 RUST_BACKTRACE=full GST_PLUGIN_PATH=./target/debug/ gst-launch-1.0 audiotestsrc ! customaudio ! autoaudiosink
GST_DEBUG=customaudio:4 RUST_BACKTRACE=full GST_PLUGIN_PATH=./target/debug/ gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=1,rate=44100 ! customaudio ! decodebin ! audioconvert ! audioresample ! autoaudiosink

Test with files:

GST_DEBUG=customaudio:4 RUST_BACKTRACE=full GST_PLUGIN_PATH=./target/debug/ gst-launch-1.0 filesrc location=./audio/testing.wav ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=1,rate=44100 ! customaudio ! audioconvert ! audioresample ! wavenc ! queue2 ! filesink location=./audio/converted.wav
GST_DEBUG=customaudio:4 RUST_BACKTRACE=full GST_PLUGIN_PATH=./target/debug/ gst-launch-1.0 filesrc location=./audio/testing.mp3 ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=1,rate=44100 ! customaudio ! audioconvert ! audioresample ! lamemp3enc ! queue2 ! filesink location=./audio/converted.mp3
GST_DEBUG=customaudio:4 RUST_BACKTRACE=full GST_PLUGIN_PATH=./target/debug/ gst-launch-1.0 filesrc location=./audio/testing.flac ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=1,rate=44100 ! customaudio ! audioconvert ! audioresample ! flacenc ! queue2 ! filesink location=./audio/converted.flac

About

Custom GStreamer Audio Plugin in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages