rtph265pay: add "send VPS/SPS/PPS with every key frame" mode
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Fri, 15 Jan 2016 15:56:59 +0000 (15:56 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Fri, 15 Jan 2016 15:57:41 +0000 (15:57 +0000)
commit6f8f82164ac7028a220f44066f90a7dd39d53b2e
treedc9b32ecda5746a4c29a5809733ce8d571ae284c
parent31a7ad77b66a6af1212b2a68b6d17a086c3a7bda
rtph265pay: add "send VPS/SPS/PPS with every key frame" mode

It's not enough to have timeout or event based VPS/SPS/PPS information
sent in RTP packets. There are some scenarios when key frames may appear
more frequently than once a second, in which case the minimum timeout
for "config-interval" of 1 second for sending VPS/SPS/PPS isn't enough.
It might also be desirable in general to make sure the VPS/SPS/PPS is
available with every keyframe (packet loss aside), so receivers can
actually pick up decoding immediately from the first keyframe if
VPS/SPS/PPS is not signaled out of band.

This commit adds the possibility to send VPS/SPS/PPS with every key frame.
This mode can be enabled by setting "config-interval" property to -1. In
this case the payloader will add VPS, SPS and PPS before every key (IDR)
frame.

https://bugzilla.gnome.org/show_bug.cgi?id=757892
gst/rtp/gstrtph265pay.c