GNOME Bugzilla – Bug 550230
A plug-in "openalsrc" for capture audio using OpenAL
Last modified: 2011-05-23 12:32:01 UTC
I just create a plug-in which use OpenAL to capture audio. I test it only under windows. It works correctly.
I have some bug to fix, I will upload it later.
very nice
It work correctly with this option. gst-launch --gst-plugin-path=..//bin/debug openalsrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg But I have no idea why it failed with this option: gst-launch --gst-plugin-path=..//bin/debug openalsrc ! adder name=mix ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg filesrc location=c:/test.ogg ! oggdemux ! vorbisdec ! audioconvert ! mix. Error message: OIL: ERROR liboilcpu.c 135: (): No t estamping function. This is kinda bad. Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstAudioSrcClock ERROR: from element /pipeline0/openalsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2165): gst_base_src_loop (): /pipeline0/openalsrc0: streaming task paused, reason not-negotiated (-4) Execution ended after 125000000 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline ...
Created attachment 117776 [details] gstopenalsrc.c
Created attachment 117777 [details] gstopenalsrc.h
Created attachment 117779 [details] gstopenalsrc.c fix a crash problem of DEBUG string format typo. This typo cause a crash: GST_DEBUG_OBJECT(osrc, "Read samples : %s", samples);
I think it fail because there are different format between audio file and openalsrc. I move audioconvert to front of adder, it works. G:\Programming\radio\lib\gstopenalsrc\gst>gst-launch --gst-plugin-path=..//bin/debug openalsrc ! audioconvert ! adder name=mix ! vorbisenc ! oggmux ! filesink location=test.ogg filesrc location=c:/test.ogg ! oggdemux ! vorbisdec ! audioconvert ! mix.
Could you attach the openalsrc as a patch against gst-plugins-bad git please, including configure checks for openal?
*** This bug has been marked as a duplicate of bug 615615 ***
I'm sorry, it has been a long time I haven't touch GStream, also, I have no environment to test it for now. I will see is there any chance I have spare time to test it with latest code base and make the git patch.
commit 0e596670ef607044c09f28bb46174edeba90e7ed Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon May 23 14:14:09 2011 +0200 openal: Add new openalsrc element Based on patches by Victor Lin <bornstub@gmail.com> Fixes bug #550230.