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.

DM365 gstreamer rtspsrc problem

Hi all,

I use gstreamer rtsp server's test-launch to implement a rtsp server :

./test-launch ' filesrc location=/root/Desktop/targetfs/usr/share/ti/data/videos/Step_into_Liquid_720_d1.transcoded.mp4 ! qtdemux name=d d.video_00 !queue ! rtph264pay pt=96 name=pay0 d.audio_00 ! queue ! rtpmp4apay pt=97 name=pay1 '

Step_into_Liquid_720_d1.transcoded.mp4  info:

 video : h264 main profile 4.1 15fps

audio: aac 48KHz

Then I play this stream on my DM365 board:

 gst-launch -vvv --gst-debug="TIDmaiVideoSink:5" \
 rtspsrc location="rtsp://192.168.1.10:8554/test" name=rtsp \
 protocols=0x00000002 ! \
 rtph264depay byte-stream=true ! queue ! 'video/x-h264,framerate=15/1,width=720,height=576' ! \
 TIViddec2 padAllocOutbufs=FALSE ! \
 queue ! TIDmaiVideoSink videoStd=1280x800_60 videoOutput=LCD  displayDevice="/dev/video2" useUserptrBufs=true numBufs=4

1280x800_60 is a videoStd name added by myself.

The stream is played very quickly  and  will stop in a while, 

the decoder  output an error: ERROR: from element /GstPipeline:pipeline0/GstTIViddec2:tividdec20: fatal bit error

I print 64bytes of every piece of data recieved in TIViddec2's chain function and compare it when I play the file as an local file.

The result shows that rtspsrc lost some packets.

I use DVSDK4.x on DM368 platform.

Can anyone help me? Thanks.

 

 

 

  • Hi,

    If there is error in transmission, it can result in fatal error and decoding to stop. For such case, we suggest you to do a XDM_RESET control call, seek to the next IDR or I frame and start decoding again.

    regards

    Yashwant

  • Hi Yashwant,

    I encounter sunch problem when I play a rtsp video stream.

    The reason that causes the decoder error is the rtspsrc lost some packet.

    I just use the rtspsrc in DVSDK4.02, when I set --gst-debug-level=2 , the gstrtpjitterbuffer will give lost packet information.

    Why? Have TI tested  the rtspsrc plugin?

    The information of video that I used to test is:

     D1@15fps 2mbps H264

    Can you help to try on your side ? Thank in advance.

     

  • Hi Yashwant,

    I encounter such problem when I play a rtsp video stream.

    The reason that causes the decoder error is the rtspsrc lost some packet.

    I just use the rtspsrc in DVSDK4.02, when I set --gst-debug-level=2 , the gstrtpjitterbuffer will give lost packet information.

    Why? Have TI tested  the rtspsrc plugin?

    The information of video that I used to test is:

     D1@15fps 2mbps H264

    Can you help to try on your side ? Thank in advance.

     

  • In TI, we use IPNC which has RTPS streaming. The decoder is VLC/ffmpeg player  in that case. In case of packet loss, we see it correcting itself at next I frame.

    regards

    Yashwant