<div dir="ltr"><br><div class="gmail_attr"><br class="gmail-Apple-interchange-newline">Just leaving it here in case anyone else in future would look for similar answer:</div><div class="gmail_attr"><br></div><div class="gmail_attr">If a h264 elementary (raw) stream contains SEI with some metadata a stream receiving client would need to use, it is possible to access it from AVPacket->data. One needs look for SEI NAL type and then strip it correctly according to specific SEI type (SEI may be present for each frame, at specific frames etc - FFMPEG AVPacket structure seems to combine relevant important items). In case of unregistered user data SEI - </div><div class="gmail_attr">pay attention to/do know upfront payload size to map the data correctly in your program.</div><div class="gmail_attr"><br></div><div class="gmail_attr">In my case it's sufficient to get hands on SEI data, so I didn't do detailed analysis how timestamps are calculated in the process of coming up with final pts for the frame whenever picture timing SEI is present, though there's definitely more to dig through.</div><div class="gmail_attr"><br></div><div class="gmail_attr">Hope it helps some other newbie to FFMPEG. If any of above is misleading/incorrect, please correct me.</div><div class="gmail_attr"><br></div><div class="gmail_attr">BR</div><div class="gmail_attr">Michał</div></div>