video and audio streaming over RTP

video and audio streaming over RTP

This question has suggested answer(s)

I'm trying to stream audio and video:

gst-launch -v gstrtpbin name=rtpbin \
v4l2src always-copy=FALSE ! dmaiaccel ! queue ! dmaienc_mpeg4 ! rtpmp4vpay ! rtpbin.send_rtp_sink_0 \
rtpbin.send_rtp_src_0 ! udpsink port=5000 host=10.83.81.14 ts-offset=0 name=vrtpsink \
alsasrc ! queue ! audioconvert ! mulawenc ! rtppcmupay ! rtpbin.send_rtp_sink_1 \
rtpbin.send_rtp_src_1 ! udpsink port=5002 host=10.83.81.14 ts-offset=0 name=artpsink

but the audio stream stops when the video stream starts.

Do I mistake the pipeline or is a dmai encoder problem?

thank you

Andrea

All Replies
  • Hi Andrea,

    i'm doing the same tests (with similar pipes) but i see that the problem is the audio stream: the audio streaming consume 97% of CPU. Do you have the same problem??

    Audio pipeline is:

    on Leopard:

    gst-launch alsasrc ! queue ! audioconvert ! mulawenc ! rtppcmupay ! udpsink host=192.168.100.126 port=5000

    on host pc:

    gst-launch -v udpsrc port=5000 caps="application/x-rtp" ! rtppcmudepay ! mulawdec ! alsasink

    In this way i receive audiostrem, but there is the problem of CPU consuption.

    Tomorrow i will finish the tests and i will be more precise.

    Regards

    Lorenzo

  • Hi,

    I'm trying to stream audio and video too, but same result ..

    thanks for help

    Jean

  • I'm trying this pipes, tehy work but i get a lot of feedback in the reception,

    any ideas?

  • What do you mean with feedback? Can you receive audio and video streams in your pc?

    Could you explain your setup? SDK version, pipeline used, leopardboard 355 or 365...

    because I cant' receive audio stream :-(

    thank you

    Andrea

  • Hi Andrea,

    With feedback I mean noise feedback in the reception, ie, my computer. For this I'm using RR SDK running the pipelines posted above by Lorenzo (by now I'm not too much in the efficiency). By the other hand I'm performing audio and video stream separately (I think it's known issue that isn't able to do both at the same time).

    With GStreamer Daemon and gst-client seems to be easier to perform audio and video stream at the same time, check www.youtube.com/RidgeRunEngineering. I'm not pretty sure if Leopard an RR SDK for Leopard has support for this.

    BTW, I'm using this pipelines for video streaming

    Leopard

    gst-launch v4l2src always-copy=FALSE ! dmaiaccel ! queue ! dmaienc_mpeg4 ! udpsink host=192.168.1.110 port=5000

    Host:designsomething.org/.../751.aspx

    gst-launch-0.10 -v udpsrc port=5000 caps="video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, framerate=(fraction)1001/30000, width=(int)640, height=(int)480, codec_data=(buffer)000001010000012000845d4c28a021e0a21f" ! ffdec_mpeg4 ! xvimagesink

    Regards

  • Andrea,

    This is caused by a conflicting DMA channel configuration. But I don't know how to fix it.

    But you can have a look at

    DM355SDK840402/kernel/linux-2.6.29/Documentation/DMA-mapping.txt

    for DMA mapping.