CBR output data fluctuates between 0-30 packets using UDP/RTP in IMX8MM

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

CBR output data fluctuates between 0-30 packets using UDP/RTP in IMX8MM

2,025 Views
Udhay_
Contributor III

I am using imx8mm with ar0521 sensor and it is streaming great and setting 1mbps constant bitrate in gstreamer for examples(vpuenc_h264=1024) but when we check RTP data using Wireshark  fluctuates between 0-30 packets

please let me know if anyone worked on this

I am attaching snapshot of output data rate and you can see the data fluctuates 20 to 30 packets in timing

0 Kudos
Reply
3 Replies

2,021 Views
giraffe508
Contributor IV

Hi, It seems that you are experiencing fluctuations in the output data rate when using the i.MX8MM with the AR0521 sensor and GStreamer. To help you resolve this issue, I suggest you try the following steps:

  1. Ensure that you are using the latest firmware and software for the i.MX8MM and AR0521 sensor. You can find the latest releases and updates on the i.MX Processors Knowledge Base.
  2. Check if there are any known issues or limitations with the specific combination of i.MX8MM and AR0521 sensor. You can search for related discussions on the i.MX Community.
  3. Adjust the GStreamer pipeline settings, such as the buffer size, queue length, and leaky settings. This can help in managing the fluctuations in the output data rate. You can refer to the GStreamer documentation for more information on pipeline settings.
  4. Consider using a different encoder plugin in GStreamer, such as omxh264enc or x264enc, to see if the issue persists with different encoders.
  5. Monitor the system resources, such as CPU and memory usage, during the streaming process. If the system is under heavy load, it may cause fluctuations in the output data rate. You can use tools like top or htop to monitor the system resources.

By following these steps, you should be able to identify the cause of the fluctuations and find a suitable solution. If you still face issues, please provide more details about your GStreamer pipeline and any relevant logs or error messages.

Kind Regards,

0 Kudos
Reply

2,016 Views
Udhay_
Contributor III

@giraffe508 Thank you for immediate response

i am using updated kernel and drivers and changed length,queue and buffer size in gstreamer also

my pipeline

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,format=UYVY ! videoconvert ! vpuenc_h264 bitrate=1024 gop-size=10 quant=30 ! rtph264pay ! udpsink host=192.168.10.11 port=9001

is there anything i need to change in my pipeline?

I am having any error or issue but i want to find out why packets are missing if you check time.png image you can see the time column it is fluctuates 0.0033,0.0066 but why is that happening?

Tags (1)
0 Kudos
Reply

2,003 Views
giraffe508
Contributor IV

The caused issue could be due to any reasons for example, Network conditions, Buffering and latency, GStreamer plugins and settings, or Hardware limitations

By investigating these aspects and potentially tweaking parameters such as buffer size, network conditions, and GStreamer settings, you can narrow down the potential causes of the fluctuations and missing packets. Additionally, monitoring system resources (CPU, memory, network utilization) during the streaming process may provide insights into any performance bottlenecks.

Let me know if you need specific help.

Regards,

0 Kudos
Reply