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.

Problem with displaying streamed video

Hello!

I want to stream mpegts over the ethernet. I use a gstreamer-pipeline from a Ubuntu PC on the streaming end (actually I want to use vlc later), and on the client, DM368, I perform the following pipeline:

gst-launch udpsrc uri="udp://192.168.1.255:5005/255"  caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)33" ! rtpmp2tdepay ! queue ! mpegtsparse ! queue ! mpegtsdemux ! queue ! mpeg4videoparse ! queue ! TIViddec2 displayBuffer=true engineName=codecServer codecName=mpeg4dec framerate=24000/1001 ! queue ! tidisplaysink2 video-standard=auto display-output=component sync=false -vvv --gst-debug=2

I get the following behavior:

After some seconds, when the buffer is filled, I get the 1st image of my video (with false colors), and after this, I get some blocks in the picture and the video becomes unreadable and stops.

Thanks for any help in advance!

Gustav

PS:Maybe the following part of the log might be helpful:

 

/GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yu
v, format=(fourcc)NV12, framerate=(fraction)24000/1001, width=(int)1280, height=
(int)720
[B                     |                                                      ]
[RW                    |                                                      ]
[R-W                   |                                                      ]
[R--W                  |                                                      ]
[R---W                 |                                                      ]
[R----W                |                                                      ]
[R-----W               |                                                      ]
[R------W              |                                                      ]
[R-------W             |                                                      ]
[R--------W            |                                                      ]
[R---------W           |                                                      ]
[R----------W          |                                                      ]
[R-----------W         |                                                      ]
[R------------W        |                                                      ]
[R-------------W       |                                                      ]
[R--------------W      |                                                      ]
[R---------------W     |                                                      ]
[R----------------W    |                                                      ]
[R-----------------W   |                                                      ]
[R------------------W  |                                                      ]
[R-------------------W |                                                      ]
[R--------------------W|                                                      ]
[R=====================W                                                      ]
[R=====================|W                                                     ]
[R=====================|=W                                                    ]
[R=====================|==W                                                   ]
[R=====================|===W                                                  ]
[R=====================|====W                                                 ]
/GstPipeline:pipeline0/GstQueue:queue4.GstPad:sink: caps = video/x-raw-yuv, form
at=(fourcc)NV12, framerate=(fraction)24000/1001, width=(int)1280, height=(int)72
0
/GstPipeline:pipeline0/GstQueue:queue4.GstPad:src: caps = video/x-raw-yuv, forma
t=(fourcc)NV12, framerate=(fraction)24000/1001, width=(int)1280, height=(int)720

/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20.GstPad:sink: caps = vid
eo/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)24000/1001, width=(int)12
80, height=(int)720
[ R=====================|====W                                                ]
[ R=====================|====W                                                ]
[  R=====================|===W                                                ]
[   R=====================|==W                                                ]
davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 1280,
 layer.pix_fmt.width = 720,
 layer.pix_fmt.height = 480,
 layer.pix_fmt.sizeimage =1382400
davinci_v4l2 davinci_v4l2.1: pixfmt->width = 720,
 layer->layer_info.config.line_length= 1280
[    R=====================|=W                                                ]
[    R=====================|==W                                               ]
/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: device = "/dev/video2"

/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: video-standard = "480p
"
/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: display-output = "comp
onent"
/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: queue-size = 3
/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: mmap-buffer = FALSE
/GstPipeline:pipeline0/GstTIDisplaySink2:tidisplaysink20: dma-copy = TRUE
[    R=====================|===W                                              ]
[     R=====================|==W                                              ]
[      R=====================|=W                                              ]
[       R=====================|W                                              ]
[        R=====================W                                              ]
[         R--------------------W|                                             ]
[         R=====================W                                             ]
[         R=====================|W                                            ]
[         R=====================|=W                                           ]
[         R=====================|==W                                          ]
[         R=====================|===W                                         ]
[         R=====================|====W                                        ]
[          R=====================|===W                                        ]
[          R=====================|====W                                       ]
[           R=====================|===W                                       ]
[            R=====================|==W                                       ]
[             R=====================|=W                                       ]
[             R=====================|==W                                      ]
[              R=====================|=W                                      ]
[               R=====================|W                                      ]
[                R=====================W                                      ]
[                R=====================|W                                     ]
[                 R---------------------W                                     ]
[                 R=====================|W                                    ]
[                 R=====================|=W                                   ]
[                 R=====================|==W                                  ]
[                 R=====================|===W                                 ]
[                 R=====================|====W                                ]
[                 R=====================|=====W                               ]
[                  R=====================|====W                               ]
[                   R=====================|===W                               ]
[                    R=====================|==W                               ]
[                     R=====================|=W                               ]
[                     R=====================|==W                              ]
[                      R=====================|=W                              ]
[                       R=====================|W                              ]
[                        R=====================W                              ]
[                        R=====================|W                             ]
[                        R=====================|=W                            ]
[                        R=====================|==W                           ]
[                        R=====================|===W                          ]
[                        R=====================|====W                         ]
[                        R=====================|=====W                        ]
[                         R=====================|====W                        ]
[                          R=====================|===W                        ]
0:00:12.007229848  2271   0x140f00 ERROR        GstTIDmaiBufTab gsttidmaibuftab.
c:163:gst_tidmaibuftab_get_buf: Failed to get a buffer from the GstTIDmaiBufTab
object
0:00:12.008165640  2271   0x140f00 WARN               TIViddec2 gsttividdec2.c:1
622:gst_tividdec2_decode_thread:<tividdec20> error: failed to get a free contigu
ous buffer from BufTab

ERROR: from element /GstPipeline:pipeline0/GstTIViddec2:tividdec20: failed to ge
t a free contiguous buffer from BufTab

Additional debug info:
gsttividdec2.c(1622): gst_tividdec2_decode_thread (): /GstPipeline:pipeline0/Gst
TIViddec2:tividdec20
Execution ended after 11301481385 ns.