Hi Ankur,

Sorry, I misread thinking you wanted to apply the frame rate at the slave. I 
now understand that you are asking how to set the frame rate as the grandmaster.

Greg

From: Ankur Sharma <[email protected]>
Sent: May 14, 2021 2:34 PM
To: Greg Armstrong <[email protected]>
Cc: [email protected]
Subject: Re: [Linuxptp-users] SMPTE-2059 Frame Rate 50Hz

@Dennis, You are right. I am referring to the use of a PTP management TLV to 
set various Synchronization Metadata (SM) fields for the video stream. There is 
a field in this metadata header which is "System Frame Rate". By default it is 
set to 29.97 Hz. However, I am not sure how to configure PTP4L to change it to 
50Hz.

@Greg, If I understand correctly, there is no configuration parameter for PTP4L 
to configure this value? I would like to avoid changing this value in the code 
for now. If there is a way to configure this parameter through ptp4l.conf or 
command line, that would be great.

On Fri, May 14, 2021 at 7:34 AM Greg Armstrong 
<[email protected]<mailto:[email protected]>> wrote:
Hi Ankur,

I don’t think you would set this up via ptp4l but via the PHC to set a periodic 
output (PTP_PEROUT_REQUEST). Below would be an example for 50Hz.

     perout_request.start.sec = ts.tv_sec + 1;
     perout_request.start.nsec = 0;
     perout_request.period.sec = 0;
     perout_request.period.nsec = 20000000;
     if (ioctl(fd, PTP_PEROUT_REQUEST, &perout_request)) {
           pr_err("PTP_PEROUT_REQUEST");
           return -1;
     }

Greg

From: Ankur Sharma <[email protected]<mailto:[email protected]>>
Sent: May 5, 2021 4:18 PM
To: 
[email protected]<mailto:[email protected]>
Subject: [Linuxptp-users] SMPTE-2059 Frame Rate 50Hz

Hi,

Related to the SMPTE-2059 profile, Can anyone guide/suggest on how we can set 
the System Frame Rate of 50hz with PTP4L?

Regards,
Ankur


--
ankurandy
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to