This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMDXEVM8168
I am trying to capture and stream audio data on DM8168. While searching i got to know that we can capture and stream audio data using gstreamer command so can anyone provide the gstreamer pipeline command to capture analogue and stream audio data on a port.
Hello, I would recommend you to verify the capture with arecord command first. arecord -r 48000 | aplay -D plughw:0,1 refer https://linux.die.net/man/1/arecord Yes, you could use gstreamer for audio capture and stream over network. Here is example that you could try: gst-launch alsasrc num-buffers=-1 ! 'audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)48000, channels=(int)2' ! alsasink device="plughw:0,1" Alsasrc is used for capture alsasink is the audio sink. For network streaming you must replace the alsasink element with udpsink or tcpserversink . If you want to stream encoded file then you must add encoder ! parser before the streaming element. Please note that in EZSDK the gstreamer version is 0.10. Here is one useful command which you could use to check the elements: For example gst-inspect | grep "enc" will print all elements that contains enc But is you use gst-inspect "alsasink" this will print the full information of this element , this includes the properties that you could set. BR Margarita
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Margarita Gashova:
Thanks you very much Margarita,
I executed the command gst-launch alsasrc num-buffers=-1 ! 'audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)48000, channels=(int)2' ! alsasink device="plughw:0,0" and no error is coming for this command but i am unable to find captured audio file.
In reply to Brijesh Gupta:
Hello, If you want to save the audio in file please replace ... ! alsasink with ... ! filesink location=xxx.pcm Alsasink element renders audio samples not save in file. BR Margarita
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry��s largest sales/support staff.