Display FPS and lantecy

Hello!

I’m currently able to stream the volumetric video on a local network. But wanted to display the current fps values and latency on the screen. Is this possible? Or to save them to a .txt or .csv file.

Thanks!

Hi @Rengo,

You can use this method to retrieve the current frame rate of the camera: Camera.getCurrentFPS()

And regarding the latency or ping? Is there any way?

Are you using the Local Streaming module of the ZED SDK or something different?

Local Streaming module

You can use the system time and the frame timestamp to estimate the latency, but sender and receiver must be time synchronized.

You can use PTP to synchronize the time clocks:

I’ll look into that! Thanks :slight_smile:

Hello again!
I’m trying to connect my 2 pcs and got this responses from ethtool -T enp3s0:

  • PC 1
Time stamping parameters for enp3s0:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

  • PC 2
Settings for enp3s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full
	                                     100baseT/Half 100baseT/Full
	                                     1000baseT/Full
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Auto-negotiation: on
	master-slave cfg: preferred slave
	master-slave status: slave
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
netlink error: Operation not permitted
	Link detected: yes

I’m pretty sure this means PC1 does not have the requirements to use this tool right? It has an NVIDIA GeForce GTX 1060.

If approach does not work is there any alternative?

Follow up questions:

  1. Where should I set my camera resolution? On the sender or receiver device? (Or on both)?

  2. The same for H264/H265. Where should I set it?

  3. Is there a way to save the point cloud from the spatial mapping?

@Myzhar @mattrouss Could you help me out?

The sender controls the camera settings concerning resolution and framerate.

The sender controls the compression settings

This example provides you with the required information:

Thank you, got it to work :slight_smile:

Could you just hit me back with this?

PTP support is provided by the hardware of the ethernet controller.
Not all the ethernet controllers provide this feature.

It does not depend on the GPU card model.

So is there any other approach?

Unfortunately, PTP is the only method to obtain sub-millisecond system clock synchronization.

If it’s a desktop PC you can add an expansion ethernet board with PTP capabilities.

1 Like

Just to close the thread, I was able to synchronize the PC clocks using NTP.
I’ve followed this link and seems to be working fine! :slight_smile:

1 Like