I am currently working with a standard def MPEG-2 encoder. The encoder is PC-based hardware, which outputs MPEG-2 transport stream (UDP or RTP), which is readily decodable by VLC. I would like to insert a time code into the stream, from system time, which could be decoded or extracted by VLC, the ultimate goal being that video frames would correspond with "time-stamping". Initial thoughts are: inserting time code in packet headers or inserting as a non-standard PID. The concern, of course, is the decode/extraction part.
Is there any way VLC could decode or extract an inserted time-stamp, based on the above methods of insertion? Any other potential methods to insert and decode/extract?