V4l2 streaming issue with high resolution on VIM3

Which system do you use? Android, Ubuntu, OOWOW or others?

Khadas VIM3 4GB

Which version of system do you use? Please provide the version of the system here:

kernel : 5.15
Ubuntu : 22.04
Python : 3.10.12

Please describe your issue below:

I’m creating V4L2 Pipeline through python script for accessing IP camera through its RTSP link.
everything working fine when camera is on low resolution ie. 1280x720. When i switch camera resolution to 2688x1520 stream is lagging.Is there any solution for this issue.I want smooth streaming with detections through model over it.

@Louis-Cheng-Liu eagerly waiting for your reply

Hello @176gauravsharma ,

Have you used link by wifi? Suggest you using a faster more stable connection method like notwork inferface.

@Louis-Cheng-Liu the task which im performing required board and camera on LAN network and i’m doing the same.

Hello @176gauravsharma ,

Will the screen struck? Only delayed?

its lagging only delayed

Hello @176gauravsharma ,

Could you provide the the way of reproduction?

create device: /dev/video40
gst_cmd = f"gst-launch-1.0 -v rtspsrc location="{stream_url}" latency=0 ! "
f"rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! "
f"video/x-raw,width=640,height=360 ! v4l2sink device={video_device}"
provide rtsp link at stream_url place
@Louis-Cheng-Liu

You use the software decoding plugin so it will reduce the performance, could you try to use the hardware decoding plugin?

pipeline used on VIM3 4GB kernel : 5.15 Ubuntu : 22.04:
f’gst-launch-1.0 rtspsrc location=“{stream_url}” protocols=udp latency=100 ! ’
f"rtph264depay ! h264parse ! amlv4l2h264dec ! videoconvert ! "
f"videoscale ! video/x-raw,format=YUY2 ! v4l2sink device={video_device}"

logs given in image please refer @Louis-Cheng-Liu

Please use v4l2h264dec.

Pipeline used:
f’gst-launch-1.0 rtspsrc location=“{stream_url}” protocols=udp latency=100 ! ’
f"rtph264depay ! h264parse ! v4l2h264dec ! videoconvert ! "
f"videoscale ! video/x-raw,format=YUY2 ! v4l2sink device={video_device}"

for log view screenshot below