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.

  • TI Thinks Resolved

TMDXEVM8168: Problem in audio capturing and streaming in dm8168

Prodigy 90 points

Replies: 3

Views: 118

Part Number: TMDXEVM8168

Hi,

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.

Thanks,

Brijesh Gupta

  • 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

  • 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. 

    Thanks,

    Brijesh

  • 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

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.