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.

AM62A7-Q1: video display failed with RTSP source

Part Number: AM62A7-Q1

Tool/software:

Dear Champs,

My customer is trying to display H.264 video in AM62A SK EVM with RTSP source from PC by referring below FAQ, but failed to display.

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1461875/faq-sk-am69-how-to-run-gstreamer-pipeline-with-rtsp-source 

Their target is to streaming H.264 video streams through RTSP from PC to AM62A SK EVM, and decode it in AM62A SK EVM and display it through monitor connected to AM62A SK EVM, but failed with below log.

Could you please check below log and let me know how they can achieve it?

~~~~~~~~

1. HW decoder

root@am62axx-evm:~# GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.2.1:8554/test latency=0 proxy-id=None proxy-pw=None ! rtph264depay wait-for-keyframe=1 ! video/x-h264, stream-format=avc ! h264parse ! v4l2h264dec ! kmssink sync=false

Setting pipeline to PAUSED ...

Pipeline is live and does not need PREROLL ...

Progress: (open) Opening Stream

Pipeline is PREROLLED ...

Prerolled, waiting for progress to finish...

Progress: (connect) Connecting to rtsp://192.168.2.1:8554/test

0:00:20.683569050  1412 0xffff7c000b70 ERROR                default gstrtspconnection.c:1156:gst_rtsp_connection_connect_with_response_usec: failed to connect: Could not connect to 192.168.2.1: Socket I

/O timed out

0:00:20.683697610  1412 0xffff7c000b70 ERROR                rtspsrc gstrtspsrc.c:5419:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Timeout while waiting for server response)

0:00:20.683767140  1412 0xffff7c000b70 WARN                 rtspsrc gstrtspsrc.c:8364:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to connect. (Timeout while waiting for server response)

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.

Additional debug info:

/usr/src/debug/gstreamer1.0-plugins-good/1.22.12/gst/rtsp/gstrtspsrc.c(8364): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:

Failed to connect. (Timeout while waiting for server response)

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

0:00:20.684122185  1412 0xffff7c000b70 WARN                 rtspsrc gstrtspsrc.c:8450:gst_rtspsrc_open:<rtspsrc0> can't get sdp

0:00:20.684242805  1412 0xffff7c000b70 WARN                 rtspsrc gstrtspsrc.c:6408:gst_rtspsrc_loop:<rtspsrc0> we are not connected

Freeing pipeline ..

2. SW decoder

root@am62axx-evm:~# GST_DEBUG=3 gst-launch-1.0 rtspsrc location= rtsp://192.168.2.1:8554/test ! application/x-rtp, media=video, encoding-name=H264, clock-rate=90000 ! rtph264depay ! h264parse ! avdec_h264 ! videorate ! videoconvert ! queue ! autovideosink

Setting pipeline to PAUSED ...                                                                                                                                                                            

[ 2136.174843] kauditd_printk_skb: 5 callbacks suppressed                                                                                                                                                

[ 2136.174855] audit: type=1006 audit(2143.604:21): pid=1426 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1                                                                

[ 2136.192365] audit: type=1300 audit(2143.604:21): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffeaa1f878 a2=4 a3=1 items=0 ppid=1 pid=1426 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0

sgid=0 fsgid=0 tty=(none) ses=4 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" key=(null)                                                                                                      

[ 2136.218720] audit: type=1327 audit(2143.604:21): proctitle="(systemd)"                                                                                                                                

[ 2136.832874] audit: type=1006 audit(2144.264:22): pid=1423 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=5 res=1                                                                  

[ 2136.845028] audit: type=1300 audit(2144.264:22): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffe03c58a8 a2=4 a3=1 items=0 ppid=1 pid=1423 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0

sgid=0 fsgid=0 tty=tty7 ses=5 comm="(weston)" exe="/usr/lib/systemd/systemd-executor" key=(null)                                                                                                          

[ 2136.871115] audit: type=1327 audit(2144.264:22): proctitle="(weston)"                                                                                                                                  

MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)                                                                                                                                

libEGL warning: egl: failed to create dri2 screen                                                                                                                                                        

warning: queue 0xffffa4000be0 destroyed while proxies still attached:                                                                                                                                    

  xdg_wm_base@7 still attached                                                                                                                                                                            

  wl_seat@6 still attached                                                                                                                                                                                

  wl_subcompositor@5 still attached                                                                                                                                                                      

  wl_compositor@4 still attached                                                                                                                                                                          

  wl_registry@2 still attached                                                                                                                                                                            

Pipeline is live and does not need PREROLL ...                                                                                                                                                            

Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";                                                        

Progress: (open) Opening Stream                                                                                                                                                                          

Pipeline is PREROLLED ...                                                                                                                                                                                

Prerolled, waiting for progress to finish...                                                                                                                                                              

Progress: (connect) Connecting to rtsp://192.168.2.1:8554/test                                                                                                                                            

0:00:22.379761960  1420 0xffff88000d60 ERROR                default gstrtspconnection.c:1156:gst_rtsp_connection_connect_with_response_usec: failed to connect: Could not connect to 192.168.2.1: Socket I

/O timed out                                                                                                                                                                                              

0:00:22.379893260  1420 0xffff88000d60 ERROR                rtspsrc gstrtspsrc.c:5419:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Timeout while waiting for server response)      

0:00:22.379929730  1420 0xffff88000d60 WARN                 rtspsrc gstrtspsrc.c:8364:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to connect. (Timeout while waiting for server response)          

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.                                                                                          

Additional debug info:                                                                                                                                                                                    

/usr/src/debug/gstreamer1.0-plugins-good/1.22.12/gst/rtsp/gstrtspsrc.c(8364): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:                                                    

Failed to connect. (Timeout while waiting for server response)                                                                                                                                            

ERROR: pipeline doesn't want to preroll.                                                                                                                                                                  

0:00:22.380299545  1420 0xffff88000d60 WARN                 rtspsrc gstrtspsrc.c:8450:gst_rtspsrc_open:<rtspsrc0> can't get sdp                                                                          

Setting pipeline to NULL ...                                                                                                                                                                              

0:00:22.380360130  1420 0xffff88000d60 WARN                 rtspsrc gstrtspsrc.c:6408:gst_rtspsrc_loop:<rtspsrc0> we are not connected                                                                    

warning: queue 0xffffa4027f20 destroyed while proxies still attached:                                                                                                                                    

  xdg_wm_base@16 still attached                                                                                                                                                                          

  wl_seat@14 still attached                                                                                                                                                                              

  wl_subcompositor@13 still attached                                                                                                                                                                      

  wl_compositor@11 still attached                                                                                                                                                                        

  wl_registry@17 still attached                                                                                                                                                                          

Freeing pipeline ...

~~~~~~~~~~

Thanks and Best Regards,

SI.