gstreamer alsasrc with 6 channel

Nicolas Dufresne nicolas at ndufresne.ca
Fri Feb 17 03:20:14 UTC 2017


Le mercredi 15 février 2017 à 22:31 -0800, nagendra sarma a écrit :
> the pipeline used
> gst-launch-1.0  -v alsasrc device=hw:0,0 num-buffers=1  !
> audio/x-raw,rate=48000,channels=6,depth=16,width=16 ! filesink
> location=/tmp/test.pcm

Jus a note that you have .10 specifics in your caps. In GStreamer 1.0,
depth and width fields no longer exists and is replaced with format=.
What is likely happening is that alsasrc picks another format, which
then looks like corrupted data. Try the following instead:

gst-launch-1.0 alsasrc device=hw:0,0 num-buffers=1 ! audio/x-raw,rate=48000,channels=6,format=S16LE ! filesink location=/tmp/test.pcm

Note that you could use wavenc before filesink to create a raw file
playable by normal media players.

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170216/2e3e7992/attachment.sig>


More information about the gstreamer-devel mailing list