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.

RTSP Streaming using DM3730 processor

Other Parts Discussed in Thread: DM3730

Hi,

We are working on DM3730 based BeaglexM Board. We are new gstreamer and DSP.

We installed DVSDK 4.01 in BeaglexM Board.

We were able to play local video & audio file using gstreamer

gst-launch filesrc location=$filename ! qtdemux name=demux demux.audio_00 ! queue max-size-buffers=8000 max-size-time=0 max-size-bytes=0 ! TIAuddec1 ! alsasink demux.video_00 ! queue ! TIViddec2 padAllocOutbufs=TRUE ! TIDmaiVideoSink videoStd=720p_60 videoOutput = AUTO numBufs=5

We tried to play through network stream using RTSP protocol:

Server side is VLC streaming in RTSP mode.

Client side I am using DM3730 based BeaglexM Board.

Command used to receive  and play is

gst-launch-0.10 rtspsrc -v location=rtsp://192.168.10.1:5544/stream ! decodebin ! autovideosink

We were able to watch video on DVI interface but it is very slow, since the load is on ARM processor.

How could we used TI DSP codec's for playing  RTSP input stream?

Regards

SudhirKumar

  • Hello,

    Board side:

    You could check for examples here in: TMS320DM3730_Software_Developers_Guide.pdf

    or you could try pipeline similar to this:

    gst-launch -v rtspsrc location=rtsp://172.24.136.242:5544/test ! rtph264depay  ! h264parse ! TIViddec2 padAllocOutbufs=TRUE ! queue ! tidisplaysink2

    on server side:

    Are you sending decoded video stream via rtsp?

    If you send decoded video stream this will explain low fps and arm load.

    Best regards,

    Margarita



  • Hi,

    Thanks for the support.

    Server Side:

    We are using VLC player to stream "davincieffect_h264_aac.mp4" file using RTSP protocol.

    Board Side:

    We had tried the below command as per your suggestion.

    gst-launch -v rtspsrc location=rtsp://192.168.10.1:5544/stream ! rtph264depay ! h264parse ! TIViddec2 padAllocOutbufs=TRUE ! queue ! tidisplaysink2

    We got the following error:

    erroneous pipeline: no element "tidisplaysink2"

    So we installed latest ti-gstreamer trunk using svn checkout, compiled and installed in the target file system.

    After installation we got the following error

    erroneous pipeline: no element "h264parse"

    So we removed "h264parse" and entered the following command:

    gst-launch -v rtspsrc location=rtsp://192.168.10.1:5544/stream ! rtph264depay ! TIViddec2 padAllocOutbufs=TRUE ! queue ! tidisplaysink2

    Now we are to play the RTSP stream on DVI interface of Beagle-xM Board.

    But the video playing for only few (approximately 50-70 seconds) seconds and then terminating showing the follow message.

    Got EOS from element "pipeline0".
    Execution ended after 70456939698 ns.

    Help us in resolving this issue.

    Should we need any timing constraints to the gstreamer pipeline?

    Regards,

    SudhirKumar Reddipalli











  • Hello,

    I said similar pipeline In previous post.

    ========================

    You could check for examples here: TMS320DM3730_Software_Developers_Guide.pdf.

    In chapter: Running GStreamer pipelines there is example  how to decode *.mp4 video.

    This is a pipeline  that decodes 720P MP4 video. Base your pipeline on this one and adjust it for RTSP.

    target # gst-launch filesrc location=/usr/share/ti/data/videos/davincieffect_h264_aac.mp4 \
    ! qtdemux name=demux demux.audio_00 ! queue max-size-buffers=8000 max-size-time=0 \
    max-size-bytes=0 ! TIAuddec1 ! alsasink demux.video_00 ! queue \
    ! TIViddec2 padAllocOutbufs=TRUE ! queue ! tidisplaysink2 -v

    =======================

    In the same document, in chapter: Running GStreamer, pipelines is noted:

    NOTE:tidisplaysink2 is an experimental sink and intended to replace TIDmaiVideoSink. For more information run gst-inspect tidisplaysink2 on target to see various properties.

    =======================

    At:

    "

    But the video playing for only few (approximately 50-70 seconds) seconds and then terminating showing the follow message.

    Got EOS from element "pipeline0".
    Execution ended after 70456939698 ns.

    "

    You are streaming davincieffect_h264_aac.mp4.

    Is the entire video file has been played or you get EOS before the end of the video file?

    Could you check how long is the video?

    And is it  played that long with vlc on the host?

    Thank you,

    Best Regards,

    Margarita

  • Hello,

    Thanks for the support.

    We are able to display the stream using UDP Stream.

    gst-launch -v udpsrc uri="udp://192.168.10.10:5544" ! mpegtsdemux ! h264parse ! TIViddec2 padAllocOutbufs=TRUE ! queue ! tidisplaysink2

    Regards

    SudhirKumar