rtspsrc: has different CPU load for its latency
Describe your issue
rtspsrc has much CPU usage when it has lower latency
Expected Behavior
- Merely expected that same CPU usage for any latency value of rtspsrc
Observed Behavior
- pipeline has much CPU load than the one which have 1000ms of latency, about 1.5 times higher
Setup
- Operating System: Windows 10 version 21H1 (OS build 19043.2364)
- Device: PC
- Device name DESKTOP-2L506SG
- Processor Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 GHz
- Installed RAM 32.0 GB
- System type 64-bit operating system, x64-based processor
- GStreamer Version: 1.22.3, 1.22.4
- Command line:
latency=0:
gst-launch-1.0 rtspsrc location="rtsp://xxx.xxx.xxx.xxx:xxxx" latency=0 drop-on-latency=true buffer-mode=0 protocols=4 short-header=true ! rtph264depay ! h264parse ! fakesink sync=true
latency=1000:
gst-launch-1.0 rtspsrc location="rtsp://xxx.xxx.xxx.xxx:xxxx" latency=1000 drop-on-latency=true buffer-mode=0 protocols=4 short-header=true ! rtph264depay ! h264parse ! fakesink sync=true
Steps to reproduce the bug
- Press Win+R to run cmd
- type the pipelines above and compare the CPU usage of both on Task Manager
How reproducible is the bug?
Always
Additional Information
- I've tried to profile those pipelines to see which points have much CPU usage, but cannot afford any pipeline tools on windows.
Edited by Son Seunggwan