IMX8MP EVK - RTSP streaming results in segmentation fault

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP EVK - RTSP streaming results in segmentation fault

453 Views
lazy12316
Contributor II

Hi all,

I have IMX8MPEVK (6GB) Hardware with imx-image-full yocto image (Kirkstone) in which I am trying to stream camera feed over RTSP. I have a UVC video camera from Tamron. The pipeline I am using is 

 

 

GST_DEBUG=3 gst-variable-rtsp-server -p 8554 -m /obp -u "v4l2src device=/dev/video0 ! imxvideoconvert_g2d ! video/x-raw,width=1920,height=1080,format=BGRx ! vpuenc_h264 ! rtph264pay name=pay0 pt=96"

 

 

I execute this command in terminal and start receiving the stream using VLC. When I stop the pipeline (executing ctrl+c) the process is stopped.  I execute the command again in the terminal and start the receiving command in VLC, I get segmentation fault. 

The terminal output printed is:

root@imx8mpevk:~# GST_DEBUG=3 gst-variable-rtsp-server -p 8554 -m /obp -u "v4l2src device=/dev/video0 ! imxvideoconvert_g2d ! video/x-raw,width=1920,height=1080,format=BGRx ! vpuenc_h264 ! rtph264pay name=pay0 pt=96"
Pipeline set to: ( v4l2src device=/dev/video0 ! imxvideoconvert_g2d ! video/x-raw,width=1920,height=1080,format=BGRx ! vpuenc_h264 ! rtph264pay name=pay0 pt=96 )...
Stream ready at rtsp://127.0.0.1:8554/obp
0:00:11.790913240   908 0xffff9c0039e0 WARN                    v4l2 v4l2_calls.c:530:gst_v4l2_subscribe_event:<v4l2src0> /dev/video0 cannot subscribe V4L2_EVENT_SOURCE_CHANGE event.
0:00:11.790975990   908 0xffff9c0039e0 WARN                    v4l2 v4l2_calls.c:538:gst_v4l2_subscribe_event:<v4l2src0> /dev/video0 cannot subscribe V4L2_EVENT_EOS event.
0:00:11.791000865   908 0xffff9c0039e0 WARN                    v4l2 v4l2_calls.c:545:gst_v4l2_subscribe_event:<v4l2src0> /dev/video0 cannot subscribe V4L2_EVENT_DECODE_ERROR event.
====== VPUENC: 4.6.3 build on Nov  9 2021 07:46:01. ======
        wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Oct 28 2021 01:23:12)
        vpulib: 1.1.1
        firmware: 1.1.1.65535
0:00:11.803380224   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804019473   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804232973   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804501973   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804596973   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804649098   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.804702973   908 0xffff9400cf00 WARN              video-info video-info.c:526:gst_video_info_from_caps: invalid matrix 4 for RGB format, using RGB
0:00:11.823479324   908 0xffff9400cf00 WARN          v4l2bufferpool gstv4l2bufferpool.c:1323:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool0:src> Driver should never set v4l2_buffer.field to ANY
0:00:11.823707574   908 0xffff9400cf00 WARN                 v4l2src gstv4l2src.c:918:gst_v4l2src_create:<v4l2src0> Timestamp does not correlate with any clock, ignoring driver timestamps
0:00:11.831075939   908 0xffff9400cf00 ERROR              videometa gstvideometa.c:242:default_map: plane 0, no memory at offset 0
0:00:11.831148564   908 0xffff9400cf00 ERROR                default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 0
Segmentation fault
root@imx8mpevk:~# 

Can someone please help me out?

Thanks,

Ashish Kumar

 

Tags (2)
0 Kudos
1 Reply

399 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @lazy12316 

1.The first you need check is video interface, you can try other /dev/videoX

2.Try to change the format .Dump the camera information using v4l2-ctl.

0 Kudos