Thank you very much for your detailed response. I apologize for any confusion, but could you provide a more in-depth explanation on a couple of points?
How can I configure sync=0 for a specific module within the pipeline or for the entire pipeline?
On my Jetson device, when I run $ sudo jetson_clocks, I don’t see any output. Additionally, when I execute:
$ sudo jetson_clocks --help
Maximize jetson performance by setting static max frequency to CPU, GPU and EMC clocks.
Usage:
jetson_clocks.sh [options]
options,
--show display current settings
--fan set PWM fan speed to maximal
--store [file] store current settings to a file (default: ${HOME}/l4t_dfs.conf)
--restore [file] restore saved settings from a file (default: ${HOME}/l4t_dfs.conf)
run jetson_clocks.sh without any option to set static max frequency to CPU, GPU and EMC clocks.
I still don’t fully understand how to enable the properties for nvv4l2h265enc.
Additionally, here is the result from inspecting the plugin:
$ gst-inspect-1.0 nvv4l2h265enc
...
maxperf-enable : Enable or Disable Max Performance mode
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
...
insert-vui : Insert H.265 VUI(Video Usability Information) in SPS
flags: readable, writable
Boolean. Default: false
Yes, I ran the tests and have the results. The flags mentioned here had no effect on my system’s performance. After extensive testing, I found a partial solution: I reduced the bitrate from the default of 4000000 to 1000000.
This change improved the rest of the process, reducing latency significantly, though some latency remains.
If you have any other ideas for improvement, I’d be happy to test and implement them. Thank you!
insert-aud : Insert H.265 Access Unit Delimiter(AUD)
flags: readable, writable
Boolean. Default: false
insert-sps-pps : Insert H.265 SPS, PPS at every IDR frame
flags: readable, writable
Boolean. Default: false
And try smaller IDR interval:
idrinterval : Encoding IDR Frame occurance frequency
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 256
I will conduct more detailed testing later, as I currently have many other tasks. I will provide an update on the results as soon as the testing is complete.