diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-30 22:18:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-30 22:18:44 +0100 |
| commit | 2ed188232e575e42d13cbc3aaab3b055c7ff26af (patch) | |
| tree | ab6dd9c137d35f13714cdc72bb215966439c3bad /hacks | |
| parent | b62cc4a8ced62d0d23da5a66494236be2822be79 (diff) | |
Some more pts timing analysis.
Diffstat (limited to 'hacks')
| -rw-r--r-- | hacks/check_packets.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hacks/check_packets.py b/hacks/check_packets.py index f8075db47..22d2aa434 100644 --- a/hacks/check_packets.py +++ b/hacks/check_packets.py @@ -13,8 +13,10 @@ def handle(frame): if frame['media_type'] == 'video': if last_video_pts is not None and frame['pkt_pts_time'] <= last_video_pts: print 'Out of order video frame %f (%d) is same as or behind %f (%d)' % (frame['pkt_pts_time'], frame['pkt_pts'], last_video_pts, last_video) - else: - print 'OK frame %f' % frame['pkt_pts_time'] + elif last_video_pts is not None: + print 'OK frame %f %f %f' % (frame['pkt_pts_time'], frame['pkt_pts_time'] - last_video_pts, 1 / (frame['pkt_pts_time'] - last_video_pts)) + else: + print 'OK frame %f' % (frame['pkt_pts_time']) last_video = frame['pkt_pts'] last_video_pts = frame['pkt_pts_time'] |
