描述
How do I detect if the FEC data is being sent with the video data?
解决方案
SMPTE2022-5/6 has a header field that indicates when FEC packets are being sent.
SMPTE2022-1/2 does not have this field.
It is not planned to add this to the VoIP FEC core.
The expectation is that this would be handled at the system level.
One possible way to implement this is to have a packet filter that monitors for incoming FEC packets on each channel.
This can be fed to a watchdog timer which resets every time a new FEC packet arrives.
If no new FEC packets arrive in a specified amount of time (for example, 1 second) then the timer triggers, indicating that the source has stopped sending FEC packets.