cancel
Showing results for 
Search instead for 
Did you mean: 

Using STM32MP135F-DK Trying to stream camera over network

Ezvan
Associate

Hello,

 

I'm Trying to stream camera over network(ubuntu), using the procedure from STM wiki. But couldn't able to stream.

When I run command in STM32MP135F-DK board, I get the following 
root@stm32mp13-disco:~# GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 ! encodebin profile="image/jpeg" ! rtpjpegpay
! udpsink host=192.168.23.93 port=5000
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.324857791 4805 0x1e8150 WARN v4l2 gstv4l2object.c:4531:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
0:00:00.353511875 4805 0x1e8150 WARN v4l2 gstv4l2object.c:4531:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
0:00:00.361027041 4805 0x1e8150 WARN v4l2bufferpool gstv4l2bufferpool.c:848:gst_v4l2_buffer_pool_start:<v4l2src0:pool0:src> Uncertain or not enough buffers, enabling copy thresd
0:00:00.981334500 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
Redistribute latency...
0:00:01.111192125 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.241411875 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.370019084 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.497754292 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.623118250 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.753952000 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.874790542 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:01.995544667 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:02.116329292 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer
0:00:02.237511417 4805 0x1e8118 WARN default gstexiftag.c:1895:gst_tag_list_to_exif_buffer_with_tiff_header: Failed to create exif buffer

 

And when I run the command in ubuntu, I could get the following 

$ gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name=JPEG ! rtpjpegdepay ! jpegparse ! decodebin ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayGBM\)\ gldisplaygbm0";
Setting pipeline to PLAYING ...
New clock: GstSystemClock

 

And the network connection is established. Checked using the ping command. Can any help me resolve it..?

 

Thanks,

Ezvan

2 REPLIES 2
Joe WILLIAMS
ST Employee

Hi Ezvan

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

Regards

Joe

STMicro Support

Hello Joe,

Missed to add a point, When I try to set up the camera subsystem first: I get the below error.

 

# media-ctl -d /dev/media0 --set-v4l2 "'ov5640 1-003c':0[fmt:JPEG_1X8/640x480@1/15 field:none]"
Unable to setup formats: Invalid argument (22)

Ezvan_1-1732607969287.png

Thanks,

Ezvan.