Using WASAPI in GStreamer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using WASAPI in GStreamer

orione1974
I tried the component with:

gst-launch-0.10.exe -v wasapisrc ! filesink location="prv"

Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstWasapiSrc:wasapisrc0.GstPad:src: caps = audio/x-raw-int, width=(int)16, depth=(int)16, rate=(int)8000, channels=(int)1, signed=(boolean)true, endianness=(int)1234
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstWasapiSrcClock
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = audio/x-raw-int, width=(int)16, depth=(int)16, rate=(int)8000, channels=(int)1, signed=(boolean)true, endianness=(int)1234


But in the file "prv" I can see only "NULL" character (zero).

-------------------------------------------------------------------

I tried "gst-launch-0.10 -v audiotestsrc ! wasapisink", but I get a error:

Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps = audio/x-raw-int, width=(int)16, depth=(int)16, rate=(int)8000, channels=(int)1, signed=(boolean)true, endianness=(int)1234
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstWasapiSink:wasapisink0.GstPad:sink: caps = audio/x-raw-int, width=(int)16, depth=(int)16, rate=(int)8000, channels=(int)1, signed=(boolean)true, endianness=(int)1234
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstWasapiSink:wasapisink0: Could not write to resource.
Additional debug info:
gstwasapisink.c(241): gst_wasapi_sink_render (): /GstPipeline:pipeline0/GstWasapiSink:wasapisink0:
IAudioRenderClient::GetBuffer () failed: AUDCLNT_E_BUFFER_SIZE_ERROR
Execution ended after 33002000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstWasapiSink:wasapisink0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...

-------------------------------------------------------------------

What's I'm wrong?